/* ============================================================
   Prime Tanki — landing concept
   Design system + components
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --bg: #0b0e11;
  --bg-soft: #0e1114;
  --panel: #14181d;
  --panel-2: #1a1f25;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #eef2f8;
  --muted: #9aa5b2;
  --dim: #6c7684;
  --accent: #f2b301;
  --accent-rgb: 242, 179, 1;
  --accent-deep: #d99a00;
  --gold: #ffd97a;
  --gold-rgb: 255, 217, 122;
  --green: #6ecf9a;
  --red: #ef6a5f;
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1200px;
  --font-display: "Oswald", "Bahnschrift", "Segoe UI Semibold", system-ui, sans-serif;
  --font-body: "Oswald", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --font-mono: "Cascadia Mono", "Consolas", "SFMono-Regular", ui-monospace, monospace;
  /* сцена hero */
  --sky-1: #0d1014;
  --sky-2: #1b1a18;
  --sky-3: #45350f;
  --sky-4: #a17207;
  --sky-5: #f2b301;
  --sun-1: #fffaea;
  --sun-2: #ffdf8a;
  --sun-3: rgba(242, 179, 1, 0.5);
  --sun-glow: rgba(242, 179, 1, 0.22);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.95);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1100px 620px at 50% -12%, rgba(var(--accent-rgb), 0.13), transparent 62%),
    radial-gradient(900px 520px at 92% 8%, rgba(208, 216, 224, 0.05), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.012em;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.005em;
}

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

::selection { background: rgba(var(--accent-rgb), 0.35); color: #fff; }

/* ---------- Layout ---------- */
.container {
  width: min(100% - 40px, var(--maxw));
  margin-inline: auto;
}

.section { position: relative; padding: clamp(56px, 7vw, 104px) 0; }
.section--tight { padding: clamp(36px, 4.5vw, 64px) 0; }
.section--line { border-top: 1px solid var(--line); }

.section__head { max-width: 780px; margin-bottom: clamp(28px, 4vw, 48px); }
.section__head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.h2 { font-size: clamp(28px, 4vw, 46px); text-wrap: balance; }
.h3 { font-size: clamp(19px, 2.2vw, 24px); }

.lead {
  margin-top: 16px;
  font-size: clamp(15px, 1.5vw, 18px);
  color: var(--muted);
  text-wrap: pretty;
}

.muted { color: var(--muted); }
.dim { color: var(--dim); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.accent { color: var(--accent); }
.gold { color: var(--gold); }

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

.skip-link {
  position: fixed;
  top: 10px; left: 50%;
  z-index: 200;
  transform: translate(-50%, -160%);
  padding: 10px 18px;
  border-radius: 8px;
  background: var(--accent);
  color: #160a02;
  font-weight: 700;
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--btn-bg);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease),
    background-color 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: linear-gradient(180deg, #ffd34d, var(--accent-deep));
  color: #190b01;
  box-shadow: 0 14px 34px -14px rgba(var(--accent-rgb), 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn--primary:hover { box-shadow: 0 18px 40px -14px rgba(var(--accent-rgb), 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.45); }

.btn--ghost {
  border-color: var(--line-2);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}
.btn--ghost:hover { border-color: rgba(var(--accent-rgb), 0.65); color: #ffe3a6; }

.btn--gold {
  background: linear-gradient(180deg, #ffd97a, #e0a400);
  color: #1d1302;
  box-shadow: 0 14px 34px -14px rgba(var(--gold-rgb), 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.btn--sm { padding: 11px 18px; font-size: 12.5px; }
.btn--block { width: 100%; }

.btn__icon { width: 18px; height: 18px; flex: 0 0 auto; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.link-arrow svg { width: 16px; height: 16px; transition: transform 0.2s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Chips / tags ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.18s var(--ease);
}
.chip:hover { color: var(--text); border-color: var(--line-2); background: rgba(255, 255, 255, 0.06); }
.chip.is-active {
  border-color: rgba(var(--accent-rgb), 0.65);
  background: rgba(var(--accent-rgb), 0.14);
  color: #ffe6a8;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.tag--accent { border-color: rgba(var(--accent-rgb), 0.5); background: rgba(var(--accent-rgb), 0.12); color: #ffdf9e; }
.tag--gold { border-color: rgba(var(--gold-rgb), 0.5); background: rgba(var(--gold-rgb), 0.12); color: var(--gold); }
.tag--green { border-color: rgba(61, 220, 151, 0.45); background: rgba(61, 220, 151, 0.1); color: var(--green); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: #080b0f;
  border-bottom: 1px solid transparent;
  backdrop-filter: none;
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.site-header.is-scrolled {
  background: #080b0f;
  border-bottom-color: var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 22px;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
}
.brand__mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 6px 14px -6px rgba(0, 0, 0, 0.8);
}
.brand__text {
  display: flex;
  flex-direction: column;
  gap: 5px;
  line-height: 1;
}
.brand__name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.brand__sub {
  font-family: var(--font-display);
  font-size: 8.5px;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--dim);
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav__link {
  position: relative;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--muted);
  transition: color 0.18s var(--ease), background-color 0.18s var(--ease);
}
.nav__link:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.nav__link[aria-current="page"] { color: var(--text); }
.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 2px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.header__actions { display: flex; align-items: center; gap: 10px; }
.header__actions .btn--ghost { padding: 11px 16px; font-size: 12.5px; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px; height: 2px;
  background: var(--text);
  box-shadow: 0 -6px 0 var(--text), 0 6px 0 var(--text);
  transition: transform 0.2s var(--ease);
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(40px, 5vw, 68px) 0 clamp(28px, 4vw, 48px); overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto;
  height: 620px;
  background: radial-gradient(60% 60% at 30% 30%, rgba(var(--accent-rgb), 0.18), transparent 70%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.hero__title {
  font-size: clamp(38px, 6.4vw, 78px);
  text-transform: uppercase;
  letter-spacing: -0.015em;
  line-height: 0.94;
  text-wrap: balance;
}
.hero__title em {
  display: block;
  font-style: normal;
  color: var(--accent);
  text-shadow: 0 0 46px rgba(var(--accent-rgb), 0.45);
}

.hero__lead {
  margin-top: 22px;
  max-width: 30em;
  font-size: clamp(16px, 1.6vw, 18.5px);
  color: #c6ced8;
  text-wrap: pretty;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  margin-top: 22px;
  font-size: 13.5px;
  color: var(--muted);
}
.hero__meta-item { display: inline-flex; align-items: center; gap: 7px; }
.hero__meta-item svg { width: 16px; height: 16px; color: var(--accent); }
.hero__meta-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--line-2); }

.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.hero__quote {
  margin: 34px 0 0;
  padding: 16px 0 0 20px;
  border-left: 2px solid rgba(var(--accent-rgb), 0.6);
  max-width: 32em;
  font-size: 15px;
  color: var(--muted);
  font-style: italic;
}
.hero__quote cite {
  display: block;
  margin-top: 8px;
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}

/* ---------- Hero art ---------- */
.hero-art {
  position: relative;
  aspect-ratio: 1 / 1.06;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  background:
    linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 36%, var(--sky-3) 62%, var(--sky-4) 78%, var(--sky-5) 92%);
  box-shadow: var(--shadow);
  isolation: isolate;
}
.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(80% 60% at 50% 96%, rgba(0, 0, 0, 0.75), transparent 60%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 30%);
  pointer-events: none;
  z-index: 6;
}

.ha-sun {
  position: absolute;
  left: 50%; top: 62%;
  width: 46%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--sun-1) 0%, var(--sun-2) 28%, var(--sun-3) 48%, transparent 70%);
  filter: blur(2px);
  z-index: 1;
}
.ha-glow {
  position: absolute;
  left: 50%; top: 62%;
  width: 130%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--sun-glow), transparent 55%);
  z-index: 0;
}
.ha-ridge {
  position: absolute;
  left: -10%; right: -10%; top: 58%;
  height: 16%;
  background: #181a1d;
  clip-path: polygon(0 62%, 9% 38%, 18% 52%, 27% 30%, 38% 50%, 48% 34%, 58% 52%, 68% 28%, 79% 47%, 89% 33%, 100% 55%, 100% 100%, 0 100%);
  z-index: 2;
}
.ha-ground {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 42%;
  background: linear-gradient(180deg, #141619 0%, #0b0d0f 55%, #06080a 100%);
  z-index: 3;
}
.ha-ground::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), 0.16) 50%, transparent);
  mix-blend-mode: screen;
}

.ha-road {
  position: absolute;
  left: 50%; bottom: -2%;
  width: 62%;
  height: 40%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #1d1f22, #101214);
  clip-path: polygon(46% 0, 54% 0, 100% 100%, 0 100%);
  z-index: 4;
}
.ha-road::after {
  content: "";
  position: absolute;
  left: 50%; top: 0;
  width: 26%;
  height: 100%;
  transform: translateX(-50%);
  background: repeating-linear-gradient(180deg, rgba(255, 214, 120, 0.5) 0 6%, transparent 6% 16%);
  clip-path: polygon(44% 0, 56% 0, 100% 100%, 0 100%);
  opacity: 0.5;
}

.ha-tank {
  position: absolute;
  color: #05070b;
  z-index: 5;
  filter: drop-shadow(0 -1px 0 rgba(255, 205, 110, 0.28));
}
.ha-tank--far {
  left: 44%; top: 60%;
  width: 15%;
  color: #16181b;
  z-index: 4;
}
.ha-tank--near {
  left: -8%;
  bottom: 19%;
  width: 54%;
  color: #06090d;
  z-index: 5;
  filter: drop-shadow(0 -2px 0 rgba(255, 214, 130, 0.6)) drop-shadow(0 -8px 22px rgba(255, 190, 60, 0.18)) drop-shadow(0 16px 30px rgba(0, 0, 0, 0.85));
}

.ha-goldbox {
  position: absolute;
  right: 9%; top: 13%;
  width: 23%;
  z-index: 7;
  filter: drop-shadow(0 12px 30px rgba(255, 200, 60, 0.35));
  animation: float 6s var(--ease) infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50% { transform: translateY(-10px) rotate(1.5deg); }
}

.ha-hud {
  position: absolute;
  left: 18px; bottom: 16px;
  z-index: 8;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 228, 168, 0.75);
}
.ha-hud--top {
  left: auto; right: 18px; top: 16px; bottom: auto;
  align-items: flex-end;
}
.ha-hud span { display: inline-flex; align-items: center; gap: 6px; }
.ha-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px var(--red); animation: blink 1.8s infinite; }
@keyframes blink { 0%, 60% { opacity: 1; } 70%, 100% { opacity: 0.25; } }

/* ---------- Countdown ---------- */
.countdown { margin-top: 26px; }
.countdown__label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
}
.countdown__grid { display: flex; gap: 8px; }
.countdown__cell {
  min-width: 68px;
  padding: 10px 8px 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  text-align: center;
}
.countdown__val {
  display: block;
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #fff;
  line-height: 1.1;
}
.countdown__unit {
  display: block;
  margin-top: 4px;
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}
.countdown.is-done .countdown__val { color: var(--gold); }

/* ---------- Ticker ---------- */
.ticker {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(var(--accent-rgb), 0.1), transparent 26%, transparent 74%, rgba(var(--gold-rgb), 0.1)),
    #0a0d10;
  padding: 13px 0;
}
.ticker__track {
  display: flex;
  align-items: center;
  gap: 36px;
  width: max-content;
  animation: marquee 42s linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #8d99ad;
  white-space: nowrap;
}
.ticker__item::after {
  content: "";
  width: 5px; height: 5px;
  transform: rotate(45deg);
  background: var(--accent);
  opacity: 0.7;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Road / milestones ---------- */
.road {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  counter-reset: road;
}
.roadcard {
  position: relative;
  padding: 24px 22px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(var(--accent-rgb), 0.1), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  overflow: hidden;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.roadcard:hover { border-color: rgba(var(--accent-rgb), 0.45); transform: translateY(-3px); }
.roadcard__num {
  position: absolute;
  right: 8px; bottom: -26px;
  font-family: var(--font-display);
  font-size: 92px;
  font-weight: 700;
  line-height: 1;
  color: rgba(255, 255, 255, 0.05);
  pointer-events: none;
}
.roadcard__rank {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.roadcard__name {
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.roadcard__xp {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}
.bar {
  position: relative;
  height: 6px;
  margin: 16px 0 12px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}
.bar__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w, 0%);
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(var(--accent-rgb), 0.9), var(--gold));
  transition: width 1.1s var(--ease);
}
.bar__fill--muted { background: linear-gradient(90deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.1)); }
.roadcard__time {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
  color: var(--muted);
}
.roadcard__time b { color: #fff; font-family: var(--font-mono); font-weight: 700; }
.roadcard__time s { color: var(--dim); text-decoration-color: rgba(239, 106, 95, 0.6); }

.road__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 26px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  font-size: 13.5px;
  color: var(--muted);
}
.bigfactor {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.bigfactor small { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* ---------- Feature cards ---------- */
.feats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.feat {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #0f1621, #0a0f16);
  overflow: hidden;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.feat::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), 0.7), transparent);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}
.feat:hover { border-color: rgba(var(--accent-rgb), 0.4); transform: translateY(-3px); }
.feat:hover::before { opacity: 1; }

.feat__icon {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border: 1px solid rgba(var(--accent-rgb), 0.35);
  border-radius: 12px;
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent);
}
.feat__icon svg { width: 22px; height: 22px; }
.feat__title { font-family: var(--font-display); font-size: 19px; font-weight: 700; }
.feat__text { font-size: 14.5px; color: var(--muted); }
.feat__link { margin-top: auto; padding-top: 6px; }

/* ---------- Panel / split blocks ---------- */
.split {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}
.split--rev .split__media { order: -1; }

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  padding: clamp(20px, 3vw, 32px);
}
.panel--dark { background: #0e1114; }

.checklist { display: grid; gap: 12px; margin-top: 20px; }
.checklist li { display: flex; gap: 12px; font-size: 14.5px; color: #c6ced8; }
.checklist svg { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 1px; color: var(--green); }

/* ---------- Reaction mini-game ---------- */
.rt { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 18px; align-items: stretch; }
.rt__stage {
  position: relative;
  min-height: 320px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  background:
    radial-gradient(circle at 50% 45%, rgba(var(--gold-rgb), 0.1), transparent 62%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 46px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 46px),
    #080b11;
  overflow: hidden;
  cursor: crosshair;
  user-select: none;
}
.rt__hint {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 8px;
  padding: 24px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  pointer-events: none;
  transition: opacity 0.2s var(--ease);
}
.rt__hint strong { font-family: var(--font-display); font-size: 17px; color: var(--text); display: block; }
.rt__stage.is-running .rt__hint { opacity: 0; }
.rt__box {
  position: absolute;
  width: 58px; height: 58px;
  transform: translate(-50%, -50%);
  cursor: pointer;
  filter: drop-shadow(0 0 16px rgba(var(--gold-rgb), 0.65));
  animation: pop 0.16s var(--ease);
}
@keyframes pop { from { transform: translate(-50%, -50%) scale(0.4); } to { transform: translate(-50%, -50%) scale(1); } }
.rt__flash {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(var(--gold-rgb), 0.35), transparent 45%);
  opacity: 0;
  pointer-events: none;
}
.rt__flash.is-on { animation: flash 0.4s var(--ease); }
@keyframes flash { 0% { opacity: 1; } 100% { opacity: 0; } }

.rt__side { display: flex; flex-direction: column; gap: 14px; }
.rt__stats { display: grid; gap: 10px; }
.rt__stat {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  font-size: 13.5px;
  color: var(--muted);
}
.rt__stat b { font-family: var(--font-mono); font-size: 15px; color: #fff; }
.rt__verdict {
  min-height: 56px;
  padding: 12px 14px;
  border: 1px solid rgba(var(--gold-rgb), 0.35);
  border-radius: 10px;
  background: rgba(var(--gold-rgb), 0.08);
  font-size: 13.5px;
  color: #ffe9b8;
}

/* ---------- Banner ---------- */
.banner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: clamp(22px, 3.4vw, 38px);
  border: 1px solid rgba(var(--accent-rgb), 0.32);
  border-radius: 20px;
  background:
    radial-gradient(90% 200% at 8% 0%, rgba(var(--accent-rgb), 0.16), transparent 58%),
    linear-gradient(180deg, #0f1520, #090d13);
  overflow: hidden;
}
.banner__title { font-family: var(--font-display); font-size: clamp(21px, 2.6vw, 30px); font-weight: 700; text-transform: uppercase; }
.banner__text { margin-top: 8px; max-width: 52ch; font-size: 14.5px; color: var(--muted); }
.banner__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Referral ---------- */
.referral { display: grid; gap: 14px; }
.referral__row { display: flex; gap: 10px; flex-wrap: wrap; }
.referral__row .input { flex: 1 1 200px; }

.input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: #070a10;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.input::placeholder { color: #5a677b; }
.input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.16);
}
.referral__out {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  padding: 12px 14px;
  border: 1px dashed rgba(var(--accent-rgb), 0.4);
  border-radius: 10px;
  background: rgba(var(--accent-rgb), 0.06);
}
.referral__out code {
  font-family: var(--font-mono);
  font-size: 13px;
  color: #ffe6a8;
  overflow-wrap: anywhere;
}

/* ---------- News carousel ---------- */
.carousel { position: relative; }
.carousel__track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 6px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.carousel__track::-webkit-scrollbar { display: none; }

.news {
  flex: 0 0 min(352px, 84%);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #101722, #0a0f16);
  overflow: hidden;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.news:hover { border-color: rgba(var(--accent-rgb), 0.45); transform: translateY(-3px); }
.news__cover {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.news__body { display: flex; flex-direction: column; gap: 10px; padding: 18px; flex: 1; }
.news__meta { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--dim); }
.news__title { font-family: var(--font-display); font-size: 18px; font-weight: 700; line-height: 1.25; }
.news__text { font-size: 13.5px; color: var(--muted); }
.news__more { margin-top: auto; padding-top: 6px; }

.carousel__nav { display: flex; gap: 8px; }
.iconbtn {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  transition: all 0.18s var(--ease);
}
.iconbtn:hover { border-color: rgba(var(--accent-rgb), 0.6); background: rgba(var(--accent-rgb), 0.12); }
.iconbtn:disabled { opacity: 0.35; cursor: default; }
.iconbtn svg { width: 18px; height: 18px; }

.carousel__dots { display: flex; gap: 6px; margin-left: auto; align-items: center; }
.carousel__dot {
  width: 7px; height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.carousel__dot.is-active { width: 20px; border-radius: 99px; background: var(--accent); }

.carousel__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}
.carousel__head .section__head { margin-bottom: 0; }

/* ---------- Community link cards ---------- */
.links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.linkcard {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), background-color 0.2s var(--ease);
}
.linkcard:hover { border-color: rgba(var(--accent-rgb), 0.45); transform: translateY(-3px); }
.linkcard__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.linkcard__icon { width: 30px; height: 30px; color: var(--accent); }
.linkcard__title { font-family: var(--font-display); font-size: 16.5px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; }
.linkcard__text { font-size: 13px; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  padding: 0 18px;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.faq details[open] { border-color: rgba(var(--accent-rgb), 0.35); background: rgba(var(--accent-rgb), 0.04); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 0;
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: 0 0 auto;
  width: 9px; height: 9px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  transition: transform 0.2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq p { padding: 0 0 18px; font-size: 14px; color: var(--muted); max-width: 78ch; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  padding: clamp(30px, 5vw, 58px);
  border: 1px solid rgba(var(--accent-rgb), 0.32);
  border-radius: 24px;
  background:
    radial-gradient(120% 150% at 50% 0%, rgba(var(--accent-rgb), 0.2), transparent 62%),
    linear-gradient(180deg, #0e131c, #0a0d10);
  text-align: center;
  overflow: hidden;
}
.cta-band::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), 0.7), transparent);
}
.cta-band .h2 { text-transform: uppercase; }
.cta-band .lead { margin-inline: auto; max-width: 54ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 26px; }

/* ---------- Page hero (sub pages) ---------- */
.pagehero { position: relative; padding: clamp(34px, 4.5vw, 56px) 0 clamp(24px, 3vw, 36px); border-bottom: 1px solid var(--line); }
.pagehero::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto;
  height: 420px;
  background: radial-gradient(50% 60% at 20% 40%, rgba(var(--accent-rgb), 0.14), transparent 70%);
  pointer-events: none;
}
.pagehero__inner { position: relative; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; font-size: 12.5px; color: var(--dim); }
.crumbs a:hover { color: var(--accent); }
.crumbs span[aria-hidden] { opacity: 0.5; }
.pagehero h1 { font-size: clamp(30px, 4.4vw, 52px); text-transform: uppercase; }
.pagehero .lead { max-width: 62ch; }

/* ---------- Ranks page ---------- */
.rankstools {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.rankstools .input { max-width: 320px; }
.ranks { display: grid; gap: 8px; }
.rank {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 120px 150px;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.18s var(--ease), background-color 0.18s var(--ease);
}
.rank:hover { border-color: var(--line-2); background: rgba(255, 255, 255, 0.035); }
.rank--milestone {
  border-color: rgba(var(--gold-rgb), 0.32);
  background: linear-gradient(90deg, rgba(var(--gold-rgb), 0.09), rgba(255, 255, 255, 0.015) 55%);
}
.rank.is-hidden { display: none; }
.rank__badge {
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: conic-gradient(from 210deg, #1d2534, #38445c 35%, #1d2534 70%, #2b3548);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  color: #cdd6e4;
}
.rank--milestone .rank__badge {
  border-color: rgba(var(--gold-rgb), 0.6);
  background: conic-gradient(from 210deg, #3a2c10, #8a6520 35%, #3a2c10 70%, #6b4f18);
  color: var(--gold);
}
.rank__name { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 16px; font-weight: 600; }
.rank__xp { font-family: var(--font-mono); font-size: 13.5px; color: var(--muted); text-align: right; }
.rank__time { font-size: 12.5px; color: var(--dim); text-align: right; }
.rank__time b { color: #dbe3ef; font-family: var(--font-mono); }
.rank__time s { color: #5b6679; }
.rank__time .was { margin-left: 10px; color: #556073; }

/* ---------- Garage ---------- */
.garage { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 20px; align-items: start; }
.garage__stage {
  position: relative;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 125%, rgba(var(--accent-rgb), 0.16), transparent 58%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 40px),
    #080b11;
  overflow: hidden;
}
.garage__stage svg { width: 100%; height: auto; }
.garage__caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}
.garage__controls { display: grid; gap: 20px; }
.control__label {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
}
.paint { display: flex; gap: 10px; flex-wrap: wrap; }
.paint__swatch {
  width: 38px; height: 38px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  outline-offset: 3px;
  transition: transform 0.15s var(--ease), border-color 0.15s var(--ease);
}
.paint__swatch:hover { transform: translateY(-2px); }
.paint__swatch.is-active { border-color: #fff; }

.statgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 4px; }
.statgrid__item { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, 0.025); }
.statgrid__label { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.statgrid__val { font-family: var(--font-mono); font-size: 17px; font-weight: 700; color: #fff; }

/* ---------- Equipment cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.eqcard {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, #0f1621, #0a0f16);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.eqcard:hover { border-color: rgba(var(--accent-rgb), 0.4); transform: translateY(-3px); }
.eqcard__art { height: 74px; display: grid; place-items: center; color: #313d52; }
.eqcard__art svg { width: 150px; height: auto; }
.eqcard__name { font-family: var(--font-display); font-size: 16.5px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; }
.eqcard__role { font-size: 12.5px; color: var(--dim); }
.eqcard__text { font-size: 13px; color: var(--muted); }

/* ---------- Forms ---------- */
.auth { display: grid; grid-template-columns: 1fr 0.85fr; gap: 28px; align-items: start; }
.form { display: grid; gap: 18px; }
.form__fields { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field > label {
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.field__err { display: none; font-size: 12.5px; color: var(--red); }
.field.is-invalid .input { border-color: var(--red); box-shadow: 0 0 0 3px rgba(239, 106, 95, 0.12); }
.field.is-invalid .field__err { display: block; }
.field.is-valid .input { border-color: rgba(61, 220, 151, 0.55); }
.field__hint { font-size: 12.5px; color: var(--dim); }
.field__ok { display: none; align-items: center; gap: 6px; font-size: 12.5px; color: var(--green); }
.field.is-valid .field__ok { display: inline-flex; }
.field__ok svg { width: 14px; height: 14px; }

.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); cursor: pointer; }
.checkbox input { flex: 0 0 auto; width: 17px; height: 17px; margin-top: 2px; accent-color: var(--accent); }

.strength { height: 5px; border-radius: 99px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.strength__fill { height: 100%; width: 0; border-radius: inherit; background: var(--red); transition: width 0.3s var(--ease), background-color 0.3s var(--ease); }

.form__note { font-size: 12.5px; color: var(--dim); }
.form__success {
  display: none;
  padding: 26px;
  border: 1px solid rgba(61, 220, 151, 0.4);
  border-radius: 14px;
  background: rgba(61, 220, 151, 0.07);
}
.form.is-done .form__fields, .form.is-done .form__submit { display: none; }
.form.is-done .form__success { display: block; }
.form__success h3 { font-size: 22px; text-transform: uppercase; margin-bottom: 10px; }
.form__success .referral { margin-top: 16px; }

.aside-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
}
.aside-card h3 { font-size: 16px; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 12px; }
.aside-card ul { display: grid; gap: 10px; font-size: 13.5px; color: var(--muted); }
.aside-card li { display: flex; gap: 10px; }
.aside-card li b { color: var(--text); }
.aside-card svg { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 3px; color: var(--accent); }

/* ---------- Tables ---------- */
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
table.data { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 14px; }
table.data caption { text-align: left; padding: 16px; font-size: 13px; color: var(--dim); }
table.data th, table.data td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); }
table.data thead th {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  background: rgba(255, 255, 255, 0.03);
}
table.data tbody tr:hover { background: rgba(255, 255, 255, 0.02); }
table.data td b { font-family: var(--font-mono); color: #fff; }
table.data td.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
table.data tr:last-child td { border-bottom: 0; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step {
  position: relative;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--accent);
}
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { font-size: 13.5px; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: #080a0c;
  padding: clamp(40px, 5vw, 64px) 0 26px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: clamp(24px, 3vw, 40px);
}
.footer__about { max-width: 34ch; }
.footer__about p { margin-top: 14px; font-size: 13px; color: var(--dim); }
.footer__col h4 {
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.footer__col ul { display: grid; gap: 9px; font-size: 13.5px; }
.footer__col a { color: #a9b4c4; transition: color 0.16s var(--ease); }
.footer__col a:hover { color: var(--accent); }

.socials { display: flex; gap: 8px; margin-top: 16px; }
.socials a {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  transition: all 0.18s var(--ease);
}
.socials a:hover { color: var(--accent); border-color: rgba(var(--accent-rgb), 0.5); background: rgba(var(--accent-rgb), 0.1); }
.socials svg { width: 17px; height: 17px; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: clamp(28px, 4vw, 44px);
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--dim);
}
.footer__bottom p { max-width: 70ch; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 16px; }
.footer__legal a:hover { color: var(--accent); }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%; bottom: 26px;
  z-index: 300;
  transform: translate(-50%, 140%);
  padding: 12px 20px;
  border: 1px solid rgba(61, 220, 151, 0.5);
  border-radius: 10px;
  background: #0b1a14;
  color: #b8f5d8;
  font-size: 13.5px;
  box-shadow: 0 20px 50px -20px #000;
  transition: transform 0.3s var(--ease);
}
.toast.is-on { transform: translate(-50%, 0); }

/* ---------- Reveal ----------
   Скрытие включается только когда JS работает (html без .no-js),
   поэтому без скриптов контент остаётся видимым. */
[data-reveal] {
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
html:not(.no-js) [data-reveal]:not(.is-in) {
  opacity: 0;
  transform: translateY(16px);
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 560px; order: -1; aspect-ratio: 4 / 3; }
  .links { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .auth { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__about { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  .nav {
    position: absolute;
    top: 72px; left: 0; right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 14px 20px 20px;
    border-bottom: 1px solid var(--line);
    background: #0e1114;
    box-shadow: 0 30px 50px -20px #000;
  }
  .nav.is-open { display: flex; }
  .nav__link { padding: 13px 10px; font-size: 15px; }
  .nav__link[aria-current="page"]::after { display: none; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .header__actions .btn--ghost { display: none; }
  .split { grid-template-columns: 1fr; }
  .split--rev .split__media { order: 0; }
  .road { grid-template-columns: 1fr; }
  .feats { grid-template-columns: 1fr; }
  .rt { grid-template-columns: 1fr; }
  .garage { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .header__inner { height: 64px; }
  .nav { top: 64px; }
  .brand__sub { display: none; }
  .rank { grid-template-columns: 40px minmax(0, 1fr) 96px; gap: 12px; }
  .rank__time { display: none; }
  .rank__xp { font-size: 12.5px; }
  .countdown__grid { flex-wrap: wrap; }
  .countdown__cell { min-width: 62px; padding: 8px 6px 6px; }
  .countdown__val { font-size: 20px; }
  .banner { grid-template-columns: 1fr; }
  .carousel__head { flex-direction: column; align-items: flex-start; }
  .carousel__dots { margin-left: 0; }
  .form__success { padding: 20px; }
  .footer__grid { grid-template-columns: 1fr; }
  .links { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .statgrid { grid-template-columns: 1fr; }
  .hero-art { aspect-ratio: 1 / 1; }
  .hero__quote { margin-top: 26px; }
}

@media (max-width: 520px) {
  .container { width: calc(100% - 28px); }
  .hero__cta .btn { flex: 1 1 100%; }
  .roadcard__num { font-size: 74px; }
  .cta-band__actions .btn { flex: 1 1 100%; }
  .tablewrap { border-radius: 10px; }
}

/* ---------- Equipment / stats ---------- */
.garage__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kv {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
}
.kv__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}
.kv__head b { color: var(--accent); font-size: 12px; letter-spacing: 0.06em; }
.kv__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 13px;
  color: var(--muted);
}
.kv__row:last-child { border-bottom: 0; }
.kv__row b { font-family: var(--font-mono); font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; }
.kv__row--price b { color: var(--gold); }

.mods { display: flex; flex-wrap: wrap; gap: 8px; }
.mod {
  min-width: 48px;
  padding: 9px 12px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.18s var(--ease);
}
.mod:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.mod.is-active {
  border-color: rgba(var(--accent-rgb), 0.7);
  background: rgba(var(--accent-rgb), 0.16);
  color: #ffe6a8;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(228px, 1fr));
  gap: 14px;
}
.techcard {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, #14181d, #0e1114);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.techcard:hover { border-color: rgba(var(--accent-rgb), 0.4); transform: translateY(-3px); }
.techcard__art {
  height: 92px;
  display: grid;
  place-items: center;
  margin-bottom: 2px;
  border-radius: 10px;
  background:
    radial-gradient(circle at 50% 120%, rgba(var(--accent-rgb), 0.1), transparent 62%),
    rgba(255, 255, 255, 0.02);
}
.techcard__art svg { width: 100%; max-width: 210px; height: auto; }
.techcard__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.techcard__name { font-family: var(--font-display); font-size: 16px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; }
.techcard__text { font-size: 12.5px; color: var(--muted); }
.techcard__num {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dim);
}
.techcard__num b {
  display: block;
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0;
  color: #fff;
  white-space: nowrap;
}


/* ---------- Темы ---------- */
[data-theme="steel"] {
  --accent: #8fc0e8;
  --accent-rgb: 143, 192, 232;
  --accent-deep: #4f7fa8;
  --gold: #d8ebfa;
  --gold-rgb: 216, 235, 250;
  --sky-1: #0b1016;
  --sky-2: #12202b;
  --sky-3: #1f3d52;
  --sky-4: #3c7291;
  --sky-5: #9fc6e0;
  --sun-1: #f2fbff;
  --sun-2: #cfe8f7;
  --sun-3: rgba(143, 192, 232, 0.45);
  --sun-glow: rgba(143, 192, 232, 0.2);
}
[data-theme="olive"] {
  --accent: #b7cf63;
  --accent-rgb: 183, 207, 99;
  --accent-deep: #7f9638;
  --gold: #e8f3b0;
  --gold-rgb: 232, 243, 176;
  --sky-1: #0c100c;
  --sky-2: #18201a;
  --sky-3: #33411f;
  --sky-4: #6b8236;
  --sky-5: #c3d67a;
  --sun-1: #fbffe8;
  --sun-2: #e2efb3;
  --sun-3: rgba(183, 207, 99, 0.42);
  --sun-glow: rgba(183, 207, 99, 0.2);
}


/* ---------- 3D-вьюер танка ---------- */
.tankview {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3.05;
  border-radius: 14px;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 8%, rgba(255, 255, 255, 0.06), transparent 62%),
    radial-gradient(circle at 50% 118%, rgba(var(--accent-rgb), 0.18), transparent 62%),
    #0a0d10;
  cursor: grab;
}
.tankview:active { cursor: grabbing; }
.tankview canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.tankview__fallback {
  position: absolute;
  inset: 0;
  margin: auto;
  max-width: 84%;
  max-height: 84%;
  object-fit: contain;
}
.tankview.is-fallback canvas { display: none; }
.tankview__hint {
  position: absolute;
  left: 14px;
  bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  pointer-events: none;
}
.techcard__art img {
  width: 100%;
  max-width: 216px;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.55));
}

/* ---------- Extras / utilities ---------- */
[hidden] { display: none !important; }

/* CTA inside the mobile menu (desktop keeps the header button) */
.nav__cta { display: none; }

@media (max-width: 960px) {
  .nav__cta {
    display: block;
    margin-top: 10px;
    padding: 14px 16px;
    border-radius: 8px;
    background: linear-gradient(180deg, #ffd34d, var(--accent-deep));
    color: #190b01;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
  }
}

@media (max-width: 620px) {
  .header__actions .btn--primary { display: none; }
  .header__inner { gap: 12px; }
  .brand__name { font-size: 13px; letter-spacing: 0.12em; }
}

/* anchor targets must clear the sticky header */
[id] { scroll-margin-top: 92px; }

.form__success p + p { margin-top: 10px; }
.form__success .muted { font-size: 14px; }
.panel .eyebrow { margin-bottom: 8px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.prose { max-width: 68ch; }
.prose > * + * { margin-top: 16px; }
.prose p { color: var(--muted); font-size: 15.5px; }
.prose strong { color: var(--text); }

.notice {
  display: flex;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid rgba(var(--gold-rgb), 0.28);
  border-radius: 12px;
  background: rgba(var(--gold-rgb), 0.06);
  font-size: 13.5px;
  color: #e8d6b4;
}
.notice svg { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 2px; color: var(--gold); }
.notice--danger { border-color: rgba(239, 106, 95, 0.3); background: rgba(239, 106, 95, 0.07); color: #f3c4ca; }
.notice--danger svg { color: var(--red); }

.quote-block {
  margin: 0;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 0 14px 14px 0;
  background: rgba(255, 255, 255, 0.025);
  font-size: 16px;
  color: #cdd6e3;
}
.quote-block cite {
  display: block;
  margin-top: 10px;
  font-style: normal;
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}

.news__cover {
  position: relative;
  background: linear-gradient(140deg, #1b2333, #0b1017);
  display: grid;
  place-items: center;
}
.news__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 90% at 30% 0%, rgba(255, 255, 255, 0.1), transparent 60%);
}
.news__icon {
  position: relative;
  z-index: 1;
  width: 54px;
  height: 54px;
  color: rgba(255, 255, 255, 0.62);
}
.cover--winter { background: linear-gradient(140deg, #1d3a52, #0a1622 70%), #0a1622; }
.cover--winter .news__icon { color: #9fd4ff; }
.cover--season { background: linear-gradient(140deg, #4a2412, #170c07 70%); }
.cover--season .news__icon { color: #ffd97a; }
.cover--beta { background: linear-gradient(140deg, #29304a, #0d101a 70%); }
.cover--beta .news__icon { color: #b9c2ff; }
.cover--gold { background: linear-gradient(140deg, #4c3a10, #17120a 70%); }
.cover--gold .news__icon { color: var(--gold); }
.cover--community { background: linear-gradient(140deg, #2c1b3f, #100a18 70%); }
.cover--community .news__icon { color: #d9aaff; }

.rt__box svg { width: 100%; height: 100%; }

.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.fact {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}
.fact__label { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); }
.fact__val { margin-top: 6px; font-family: var(--font-display); font-size: 24px; font-weight: 700; }
.fact__val small { font-size: 12px; color: var(--muted); letter-spacing: 0; }

.form__success:focus { outline: none; }
.chip--static { cursor: default; }
.chip--static:hover { color: var(--muted); background: rgba(255, 255, 255, 0.03); }

.divider { height: 1px; margin: clamp(28px, 4vw, 48px) 0; background: linear-gradient(90deg, transparent, var(--line-2), transparent); }

@media (max-width: 960px) {
  .grid-2, .grid-3, .facts { grid-template-columns: 1fr; }
}

/* ---------- Motion / contrast preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  html:not(.no-js) [data-reveal]:not(.is-in) { opacity: 1; transform: none; }
  .ticker__track { animation: none; }
}

@media (prefers-contrast: more) {
  :root { --muted: #b9c4d3; --dim: #93a1b5; --line: rgba(255, 255, 255, 0.2); }
}

/* ---------- Переключатели языка и темы ---------- */
.chrome-controls { display: flex; align-items: center; gap: 8px; }
.langswitch, .themeswitch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}
.langswitch__btn {
  padding: 5px 9px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--dim);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: all 0.16s var(--ease);
}
.langswitch__btn:hover { color: var(--text); }
.langswitch__btn.is-active { background: rgba(var(--accent-rgb), 0.18); color: var(--accent); }
.themeswitch__dot {
  width: 16px; height: 16px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.16s var(--ease), box-shadow 0.16s var(--ease);
}
.themeswitch__dot:hover { transform: translateY(-1px); }
.themeswitch__dot.is-active { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.55); }
.themeswitch__dot--amber { background: #f2b301; }
.themeswitch__dot--steel { background: #8fc0e8; }
.themeswitch__dot--olive { background: #b7cf63; }

@media (max-width: 900px) {
  .chrome-controls { order: 5; }
}
@media (max-width: 620px) {
  .themeswitch { display: none; }
}

/* 3D включается по кнопке, по умолчанию — официальное превью */
.tankview canvas { opacity: 0; pointer-events: none; transition: opacity 0.25s var(--ease); }
.tankview.is-3d canvas { opacity: 1; pointer-events: auto; }
.tankview.is-3d .tankview__fallback { opacity: 0; pointer-events: none; }
.tankview.is-3d .tankview__hint { opacity: 1; }
.tankview__hint { opacity: 0; transition: opacity 0.25s var(--ease); }
.tankview__toggle {
  position: absolute;
  top: 12px; right: 12px;
  padding: 7px 12px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: rgba(10, 13, 16, 0.7);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: all 0.16s var(--ease);
}
.tankview__toggle:hover { border-color: rgba(var(--accent-rgb), 0.7); color: var(--accent); }
.tankview__toggle.is-active { background: rgba(var(--accent-rgb), 0.2); border-color: rgba(var(--accent-rgb), 0.7); color: var(--accent); }

/* ---------- Переключатель темы (тёмная/светлая) ---------- */
.theme-toggle {
  display: grid;
  place-items: center;
  width: 38px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  cursor: pointer;
  transition: color 0.16s var(--ease), border-color 0.16s var(--ease);
}
.theme-toggle:hover { color: var(--accent); border-color: rgba(var(--accent-rgb), 0.6); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle__moon { display: none; }
[data-theme="light"] .theme-toggle { background: #ffffff; color: #6b7480; }
[data-theme="light"] .theme-toggle__sun { display: none; }
[data-theme="light"] .theme-toggle__moon { display: block; }

/* ---------- Галерея красок ---------- */
.paint-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 10px;
  max-height: 640px;
  overflow-y: auto;
  padding-right: 6px;
}
.paint-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 8px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.03em;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.16s var(--ease), transform 0.16s var(--ease), background-color 0.16s var(--ease);
}
.paint-card:hover { border-color: rgba(var(--accent-rgb), 0.5); transform: translateY(-2px); }
.paint-card.is-active {
  border-color: rgba(var(--accent-rgb), 0.85);
  background: rgba(var(--accent-rgb), 0.12);
  box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.45) inset;
}
.paint-card img { width: 100%; height: auto; border-radius: 8px; display: block; }
.paint-card__name { color: var(--muted); line-height: 1.2; }
.paint-card.is-active .paint-card__name { color: var(--accent); }

[data-theme="light"] .paint-card { background: #ffffff; }
[data-theme="light"] .paint-card:hover { background: var(--panel-2); }

/* ---------- Живая сцена в hero ---------- */
.hero-art--live { padding: 0; }
.hero-art--live canvas { display: block; width: 100%; height: 100%; }
.hero-art--live::after { display: none; }

/* ---------- Компактный выбор языка ---------- */
.langpick { position: relative; }
.langpick__btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 30px;
  padding: 0 8px 0 10px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: border-color 0.16s var(--ease), color 0.16s var(--ease);
}
.langpick__btn:hover { border-color: rgba(var(--accent-rgb), 0.6); color: var(--accent); }
.langpick__btn svg { width: 12px; height: 12px; opacity: 0.7; }
.langpick__menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 120;
  display: none;
  width: 172px;
  max-height: 292px;
  overflow-y: auto;
  padding: 4px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: #0e1114;
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.85);
}
.langpick__menu.is-open { display: block; }
.langpick__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 7px 9px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #c6ced8;
  font-size: 12.5px;
  text-align: left;
  cursor: pointer;
}
.langpick__item b { font-family: var(--font-mono); font-size: 10.5px; color: #6c7684; letter-spacing: 0.04em; }
.langpick__item:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.langpick__item.is-active { background: rgba(var(--accent-rgb), 0.16); color: var(--accent); }
[data-theme="light"] .langpick__btn { background: #ffffff; }
[data-theme="light"] .langpick__menu { background: #ffffff; box-shadow: 0 24px 44px -22px rgba(16, 22, 30, 0.4); }
[data-theme="light"] .langpick__item { color: #333c48; }
[data-theme="light"] .langpick__item:hover { background: #eef1f5; color: #0c1015; }
[data-theme="light"] .langpick__item.is-active { background: rgba(184, 137, 10, 0.14); color: #7a5800; }


/* ---------- Видео в hero ---------- */
.hero-art { padding: 0; background: #0a0d10; }
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  z-index: 5;
  pointer-events: none;
}
.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(6, 8, 12, 0.45), transparent 30%, transparent 70%, rgba(6, 8, 12, 0.55)),
    radial-gradient(90% 70% at 50% 100%, rgba(0, 0, 0, 0.5), transparent 60%);
}
.hero-art .ha-hud { z-index: 7; }
[data-theme="light"] .hero-art { background: #dfe3e8; }


/* ---------- Кнопка «смотреть геймплей» в hero ---------- */
.hero-art__play {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 9;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(10, 13, 16, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px);
  color: #f2f5f8;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: border-color 0.16s var(--ease), background-color 0.16s var(--ease);
}
.hero-art__play:hover { border-color: rgba(var(--accent-rgb), 0.8); background: rgba(var(--accent-rgb), 0.2); color: #fff; }
.hero-art__play-icon { color: var(--accent); font-size: 10px; }

/* ---------- Профиль и мини-топы (рейтинг) ---------- */
.profile { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; }
.profile__rank img { width: 92px; height: 92px; object-fit: contain; filter: drop-shadow(0 8px 18px rgba(0,0,0,0.55)); }
.profile__top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.profile__nick { font-family: var(--font-display); font-size: clamp(24px, 3vw, 34px); font-weight: 600; letter-spacing: 0.02em; }
.profile__rank-name { margin-top: 4px; color: var(--muted); font-size: 14px; }
.profile__xp { margin-top: 14px; max-width: 620px; }
.profile__xp-row { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.profile__xp-row b { color: var(--text); font-family: var(--font-mono); }

.toplist { display: grid; gap: 8px; }
.toplist li { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 10px; font-size: 13.5px; }
.toplist span { color: var(--dim); font-family: var(--font-mono); font-size: 12px; }
.toplist b { font-weight: 600; color: var(--text); }
.toplist i { font-style: normal; font-family: var(--font-mono); color: var(--accent); font-size: 12.5px; }

/* ---------- Блок разделов на главной ---------- */
.hub { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.hub__card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.012));
  transition: border-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.hub__card:hover { border-color: rgba(var(--accent-rgb), 0.45); transform: translateY(-3px); }
.hub__num { font-family: var(--font-display); font-size: 26px; font-weight: 600; color: var(--accent); line-height: 1; }
.hub__title { font-family: var(--font-display); font-size: 16px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.hub__text { font-size: 12.5px; color: var(--muted); }
.hub__link { margin-top: auto; padding-top: 8px; }
@media (max-width: 900px) { .hub { grid-template-columns: repeat(2, 1fr); } .profile { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .hub { grid-template-columns: 1fr; } }


/* ---------- Промо-картинка в hero (своя версия) ---------- */
.hero-art--promo {
  position: relative;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(120% 90% at 74% 30%, rgba(88, 101, 242, 0.28), transparent 60%),
    radial-gradient(90% 80% at 20% 90%, rgba(var(--accent-rgb), 0.22), transparent 62%),
    #0a0d12;
}
.promo__rays {
  position: absolute;
  inset: -20%;
  background:
    conic-gradient(from 210deg at 72% 32%,
      rgba(255, 255, 255, 0.10) 0deg, transparent 16deg,
      rgba(255, 255, 255, 0.06) 24deg, transparent 40deg,
      rgba(255, 255, 255, 0.09) 52deg, transparent 72deg);
  filter: blur(2px);
  opacity: 0.85;
  pointer-events: none;
}
.promo__frame {
  position: absolute;
  inset: 5% 5% 7%;
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 34px 80px -30px rgba(0, 0, 0, 0.95);
  background: #0c1016;
}
.promo__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, #161c26, #10151d);
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.04em;
}
.promo__brand {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #5865f2;
  color: #fff;
}
.promo__brand svg { width: 14px; height: 14px; }
.promo__url {
  flex: 1 1 auto;
  min-width: 0;
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: #c9d2e0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.promo__live { color: #7ee0a6; font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
.promo__shot {
  position: relative;
  background-image: radial-gradient(60% 55% at 52% 62%, rgba(124, 226, 140, 0.16), transparent 70%);
  background-repeat: no-repeat;
  flex: 1 1 auto;
  overflow: hidden;
  background:
    radial-gradient(70% 70% at 55% 55%, rgba(88, 101, 242, 0.16), transparent 70%),
    linear-gradient(180deg, #0b0f15, #070a0e);
}
.promo__shot img {
  position: absolute;
  left: 50%;
  bottom: 4%;
  width: 132%;
  height: auto;
  max-width: none;
  transform: translateX(-50%);
  filter: drop-shadow(0 30px 46px rgba(0, 0, 0, 0.85)) saturate(1.12) contrast(1.1) brightness(1.06);
}
.promo__shards { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0.55; }
.promo__badge {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px 7px 7px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(8, 11, 16, 0.78);
  backdrop-filter: blur(6px);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #eef2f8;
}
.promo__badge img { border-radius: 8px; }
[data-theme="light"] .hero-art--promo {
  background:
    radial-gradient(120% 90% at 74% 30%, rgba(88, 101, 242, 0.18), transparent 60%),
    radial-gradient(90% 80% at 20% 90%, rgba(184, 137, 10, 0.18), transparent 62%),
    #eef1f5;
}
[data-theme="light"] .promo__frame { background: #ffffff; }
[data-theme="light"] .promo__bar { background: linear-gradient(180deg, #f4f6fa, #eaedf3); border-bottom-color: rgba(16, 22, 30, 0.1); }
[data-theme="light"] .promo__url { background: rgba(16, 22, 30, 0.06); color: #3c4552; }
[data-theme="light"] .promo__shot { background: radial-gradient(70% 70% at 55% 55%, rgba(88, 101, 242, 0.12), transparent 70%), linear-gradient(180deg, #f7f8fb, #e9edf3); }
[data-theme="light"] .promo__badge { background: rgba(255, 255, 255, 0.86); color: #0c1015; }
[data-theme="light"] .promo__shards g[fill] { fill: rgba(16, 22, 30, 0.08); stroke: rgba(16, 22, 30, 0.25); }
