@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 200 700;
  font-display: swap;
  src: url('../fonts/oswald-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 200 700;
  font-display: swap;
  src: url('../fonts/oswald-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #0a0b0d;
  --bg-soft: #101216;
  --panel: #16191f;
  --panel-raised: #1d2027;
  --panel-border: #262a33;
  --line: #22262e;

  --ink: #e9eaee;
  --ink-soft: #b3b8c2;
  --ink-muted: #7d838f;

  --blood: #c9182b;
  --blood-bright: #ef2b3d;
  --blood-deep: #7d0f1c;
  --infected: #7ec341;
  --survivor: #4aa8d8;
  --amber: #e0a138;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4);
  --shadow: 0 12px 32px -18px rgb(0 0 0 / 0.9);
  --shadow-lift: 0 24px 48px -24px rgb(0 0 0 / 1);

  --shell: 1180px;
  --gap: 20px;

  --font-display: 'Oswald', 'Arial Narrow', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 220ms;
}

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

* {
  margin: 0;
}

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

body {
  min-height: 100vh;
  background-color: var(--bg);
  background-image: radial-gradient(900px 420px at 12% -10%, rgb(201 24 43 / 0.09), transparent 68%);
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
picture,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

ul,
ol {
  list-style: none;
  padding: 0;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
}

h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
}

h3 {
  font-size: 1.15rem;
}

::selection {
  background: var(--blood);
  color: #fff;
}

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

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: 20px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 10px 16px;
  background: var(--blood);
  color: #fff;
  font-weight: 600;
}

.skip-link:focus {
  left: 8px;
  top: 8px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(10 11 13 / 0.96);
  border-bottom: 1px solid var(--line);
}

.site-header::after {
  content: '';
  position: absolute;
  inset: auto 0 -1px 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgb(201 24 43 / 0.6), transparent);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, var(--blood-bright), var(--blood-deep));
  color: #fff;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 700;
  line-height: 1;
  border-radius: 8px 8px 8px 2px;
  box-shadow: 0 6px 18px -8px var(--blood);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand-tag {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-link {
  position: relative;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.nav-link:hover {
  color: var(--ink);
  background: rgb(255 255 255 / 0.05);
}

.nav-link[aria-current='page'] {
  color: #fff;
}

.nav-link[aria-current='page']::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 3px;
  height: 2px;
  background: var(--blood-bright);
  border-radius: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-sm);
  background: var(--panel);
  cursor: pointer;
  padding: 0;
  place-items: center;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.nav-toggle-bars {
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: '';
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before {
  top: -6px;
}

.nav-toggle-bars::after {
  top: 6px;
}

.nav-toggle[aria-expanded='true'] .nav-toggle-bars {
  background: transparent;
}

.nav-toggle[aria-expanded='true'] .nav-toggle-bars::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded='true'] .nav-toggle-bars::after {
  transform: translateY(-6px) rotate(-45deg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--panel-raised);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(160deg, var(--blood-bright), var(--blood));
  color: #fff;
  box-shadow: 0 10px 24px -12px var(--blood);
}

.btn-primary:hover {
  background: linear-gradient(160deg, #ff3a4c, var(--blood-bright));
}

.btn-outline {
  background: transparent;
  border-color: var(--panel-border);
  color: var(--ink-soft);
}

.btn-outline:hover {
  border-color: var(--blood);
  color: var(--ink);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
}

.btn-ghost:hover {
  color: var(--ink);
  background: rgb(255 255 255 / 0.05);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

.account {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logout-form {
  margin: 0;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 12px 5px 5px;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  background: var(--panel);
  transition: border-color var(--dur) var(--ease);
}

.user-chip:hover {
  border-color: var(--blood);
}

.user-chip img,
.user-chip .avatar-fallback {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.avatar-fallback {
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, var(--panel-raised), var(--bg-soft));
  color: var(--ink-muted);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
}

.user-chip-name {
  font-size: 13px;
  font-weight: 600;
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-chip-id {
  display: block;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--blood-bright);
}

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--panel-border);
  isolation: isolate;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: linear-gradient(180deg, rgb(10 11 13 / 0.62) 0%, rgb(10 11 13 / 0.9) 70%, var(--bg) 100%);
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(700px 360px at 88% 20%, rgb(201 24 43 / 0.11), transparent 72%);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 40px;
  min-height: 420px;
  padding: 64px 0 56px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  margin-bottom: 18px;
  border: 1px solid rgb(201 24 43 / 0.4);
  border-radius: 999px;
  background: rgb(201 24 43 / 0.12);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ff9aa5;
}

.hero-title {
  max-width: 14ch;
  margin-bottom: 18px;
  text-shadow: 0 2px 14px rgb(0 0 0 / 0.45);
}

.hero-title em {
  font-style: normal;
  color: var(--blood-bright);
}

.hero-lead {
  max-width: 54ch;
  margin-bottom: 28px;
  color: var(--ink-soft);
  font-size: 16px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-figures {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0;
  min-height: 280px;
  padding-bottom: 8px;
}

.hero-figures::after {
  content: '';
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgb(201 24 43 / 0.45), transparent);
}

.hero-figure {
  height: clamp(160px, 17vw, 260px);
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 16px 20px rgb(0 0 0 / 0.55)) saturate(0.9);
  opacity: 0;
  transition: filter 320ms var(--ease);
  backface-visibility: hidden;
}



.hero-figure + .hero-figure {
  margin-left: -6%;
}

.hero-figure[data-side='infected'] {
  translate: 0 6px;
  scale: 0.97;
}

.hero-figures:hover .hero-figure {
  filter: drop-shadow(0 26px 34px rgb(0 0 0 / 0.8)) saturate(1);
}

.band {
  position: relative;
  overflow: hidden;
  margin: 64px 0 8px;
  border-block: 1px solid var(--line);
  background:
    radial-gradient(60% 120% at 88% 100%, rgb(201 24 43 / 0.2), transparent 65%),
    linear-gradient(180deg, var(--bg-soft), var(--bg));
}

.band-glow {
  position: absolute;
  inset: auto 0 -40% 0;
  height: 80%;
  background: radial-gradient(50% 100% at 20% 100%, rgb(201 24 43 / 0.16), transparent 70%);
  pointer-events: none;
}

.band-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
  gap: 24px;
  min-height: 400px;
  padding-block: 56px 0;
}

.band-copy {
  position: relative;
  z-index: 1;
  align-self: center;
  padding-bottom: 56px;
}

.band-copy h2 {
  margin-bottom: 14px;
}

.band-copy p {
  max-width: 46ch;
  margin-bottom: 24px;
  color: var(--ink-soft);
}

.band-figures {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2%;
  justify-content: flex-end;
  margin-bottom: -12px;
  transform: translate3d(0, var(--parallax, 0), 0);
}

.band-figure {
  height: clamp(170px, 18vw, 250px);
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 26px 34px rgb(0 0 0 / 0.8)) saturate(0.92);
  opacity: 0;
  backface-visibility: hidden;
}

.decor {
  position: absolute;
  pointer-events: none;
  z-index: -1;
}

.decor-figure {
  height: 100%;
  width: auto;
  object-fit: contain;
  opacity: 0.09;
  filter: grayscale(0.35) drop-shadow(0 18px 24px rgb(0 0 0 / 0.6));
  mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
}

.decor-survivors .decor-figure {
  opacity: 0.1;
}

.page-decor {
  right: -24px;
  bottom: -8px;
  height: clamp(200px, 22vw, 300px);
}

.decor-slot {
  right: -32px;
  bottom: -96px;
  height: clamp(200px, 20vw, 260px);
}

@keyframes figure-rise {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes figure-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

.page {
  position: relative;
  padding: 48px 0 72px;
}

.page-head {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 32px;
}

.page-title {
  margin-bottom: 8px;
}

.page-sub {
  max-width: 62ch;
  color: var(--ink-muted);
  font-size: 14px;
}

.section {
  margin-bottom: 56px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.section-head h2 {
  position: relative;
}

.section-head h2::before {
  content: '';
  position: absolute;
  left: -14px;
  top: 50%;
  width: 4px;
  height: 18px;
  transform: translateY(-50%);
  background: var(--blood);
  border-radius: 2px;
}

.section-link {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blood-bright);
}

.section-link:hover {
  color: #ff9aa5;
}

.card {
  position: relative;
  background: linear-gradient(180deg, var(--panel), var(--bg-soft));
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--gap);
}

.stat-card {
  position: relative;
  overflow: hidden;
  padding: 22px 20px;
}

.stat-card::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--blood-bright), transparent);
}

.stat-label {
  display: block;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.01em;
}

.stat-foot {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--ink-muted);
}

.match-list {
  display: grid;
  gap: 12px;
}

.online-player {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
}

.online-player-link {
  font-weight: 600;
}

.online-player-link:hover {
  color: var(--blood-bright);
}

.online-server-name {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
}

.match-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 16px 20px;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.match-card:hover {
  transform: translateY(-2px);
  border-color: rgb(201 24 43 / 0.5);
  box-shadow: var(--shadow-lift);
}

.match-score {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
}

.match-score .sa {
  color: var(--survivor);
}

.match-score .in {
  color: var(--infected);
}

.match-score .sep {
  color: var(--ink-muted);
  font-size: 18px;
}

.match-map {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.match-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 5px;
  font-size: 12px;
  color: var(--ink-muted);
}

.match-meta b {
  color: var(--ink-soft);
  font-weight: 600;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.03);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.tag-survivors {
  border-color: rgb(74 168 216 / 0.4);
  background: rgb(74 168 216 / 0.12);
  color: #9fd4ef;
}

.tag-infected {
  border-color: rgb(126 195 65 / 0.4);
  background: rgb(126 195 65 / 0.12);
  color: #bde397;
}

.tag-live {
  border-color: rgb(201 24 43 / 0.5);
  background: rgb(201 24 43 / 0.16);
  color: #ff9aa5;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blood-bright);
  animation: pulse 1.8s var(--ease) infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgb(239 43 61 / 0.5);
  }
  70% {
    opacity: 0.7;
    box-shadow: 0 0 0 7px rgb(239 43 61 / 0);
  }
}

.match-cta {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  transition: color var(--dur) var(--ease);
}

.match-card:hover .match-cta {
  color: var(--blood-bright);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel), var(--bg-soft));
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th {
  padding: 12px 14px;
  background: rgb(255 255 255 / 0.02);
  border-bottom: 1px solid var(--panel-border);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-align: left;
  white-space: nowrap;
}

td {
  padding: 12px 14px;
  border-bottom: 1px solid rgb(38 42 51 / 0.6);
  vertical-align: middle;
}

tbody tr {
  transition: background-color var(--dur) var(--ease);
}

tbody tr:hover {
  background: rgb(255 255 255 / 0.025);
}

tbody tr:last-child td {
  border-bottom: 0;
}

.num {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.rank {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink-muted);
}

.rank-top {
  color: var(--amber);
}

.rank-1 {
  color: #ffd76e;
}

.player-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.player-cell img,
.player-cell .avatar-fallback {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.player-name {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-id {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--blood-bright);
}

.rating {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.empty {
  padding: 56px 24px;
  text-align: center;
  color: var(--ink-muted);
}

.empty h3 {
  margin-bottom: 8px;
  color: var(--ink-soft);
}

.skeleton {
  position: relative;
  overflow: hidden;
  background: var(--panel);
  border-radius: var(--radius-sm);
}

.skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 0.06), transparent);
  animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

.skeleton-row {
  height: 62px;
  margin-bottom: 12px;
}

.skeleton-line {
  height: 14px;
  margin-bottom: 8px;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

.pagination-status {
  font-size: 13px;
  color: var(--ink-muted);
}

.profile-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  padding: 28px;
  margin-bottom: 32px;
}

.profile-avatar {
  width: 104px;
  height: 104px;
  border: 2px solid var(--panel-border);
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: var(--shadow);
}

.profile-name {
  margin-bottom: 6px;
}

.profile-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.id-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px 6px 14px;
  border: 1px dashed rgb(201 24 43 / 0.5);
  border-radius: var(--radius-sm);
  background: rgb(201 24 43 / 0.1);
}

.id-chip-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ff9aa5;
}

.id-chip-value {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: #fff;
}

.copy-btn {
  padding: 5px 10px;
  border: 1px solid rgb(255 255 255 / 0.14);
  border-radius: var(--radius-sm);
  background: rgb(255 255 255 / 0.06);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease);
}

.copy-btn:hover {
  background: rgb(255 255 255 / 0.14);
}

.round-track {
  display: grid;
  gap: 8px;
}

.round-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-sm);
  background: rgb(255 255 255 / 0.02);
}

.round-index {
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-muted);
}

.round-map {
  font-size: 14px;
  color: var(--ink-soft);
}

.two-col {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: var(--gap);
  align-items: start;
}

.side-panel {
  padding: 20px;
}

.side-panel h3 {
  margin-bottom: 14px;
}

.weights {
  display: grid;
  gap: 8px;
  font-size: 13px;
}

.weights-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--line);
}

.weights-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.weights-row b {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--blood-bright);
}

.prose {
  max-width: 78ch;
  font-size: 15px;
  color: var(--ink-soft);
}

.prose h2 {
  margin: 40px 0 14px;
  color: var(--ink);
}

.prose h3 {
  margin: 26px 0 10px;
  color: var(--ink);
}

.prose p,
.prose ul,
.prose ol {
  margin-bottom: 14px;
}

.prose ul,
.prose ol {
  padding-left: 22px;
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose li {
  margin-bottom: 6px;
}

.prose strong {
  color: var(--ink);
}

.prose a {
  color: var(--blood-bright);
  border-bottom: 1px solid rgb(239 43 61 / 0.35);
}

.prose code {
  padding: 2px 6px;
  border-radius: 4px;
  background: rgb(255 255 255 / 0.06);
  font-size: 13px;
}

.callout {
  padding: 16px 18px;
  margin: 20px 0;
  border-left: 3px solid var(--blood);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: rgb(201 24 43 / 0.08);
  color: var(--ink-soft);
}

.notice {
  padding: 12px 16px;
  margin-bottom: 20px;
  border: 1px solid rgb(224 161 56 / 0.4);
  border-radius: var(--radius-sm);
  background: rgb(224 161 56 / 0.1);
  font-size: 13px;
  color: #f0cf9a;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-soft), var(--bg));
  padding: 40px 0 32px;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.footer-brand p {
  max-width: 44ch;
  margin-top: 12px;
  font-size: 13px;
  color: var(--ink-muted);
}

.footer-col h4 {
  margin-bottom: 12px;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--ink-muted);
}

.footer-col a {
  display: block;
  padding: 4px 0;
  font-size: 13px;
  color: var(--ink-soft);
  transition: color var(--dur) var(--ease);
}

.footer-col a:hover {
  color: var(--blood-bright);
}

.footer-note {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: var(--ink-muted);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
}

.no-reveal .reveal,
.reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 520ms var(--ease), transform 520ms var(--ease);
}

.pagination .btn[disabled] {
  opacity: 0.4;
  pointer-events: none;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.select {
  padding: 8px 12px;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-sm);
  background: var(--panel);
  font-size: 13px;
  cursor: pointer;
}

.player-link {
  display: flex;
  flex-direction: column;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.player-link .player-name {
  transition: color var(--dur) var(--ease);
}

.player-link:hover .player-name {
  color: var(--blood-bright);
}

.tier-chip {
  flex-shrink: 0;
  padding: 2px 8px;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.04);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.section-note {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.period-switch {
  display: inline-flex;
  gap: 4px;
  margin-bottom: 24px;
  padding: 4px;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  background: var(--bg-soft);
}

.period-btn {
  padding: 8px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.period-btn:hover {
  color: var(--ink);
}

.period-btn.is-active {
  border-color: rgb(201 24 43 / 0.45);
  background: rgb(201 24 43 / 0.16);
  color: #ff9aa5;
}

.side-column {
  display: grid;
  gap: var(--gap);
}

.rank-list {
  display: grid;
  gap: 8px;
  font-size: 13px;
}

.rank-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--line);
}

.rank-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.rank-level {
  grid-row: span 2;
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--panel-border);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--amber);
}

.rank-title {
  font-weight: 600;
  color: var(--ink);
}

.rank-threshold {
  font-size: 11px;
  color: var(--ink-muted);
}

.rank-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.rank-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgb(224 161 56 / 0.5);
  border-radius: 50%;
  background: rgb(224 161 56 / 0.12);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--amber);
}

.rank-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.rank-points {
  font-size: 13px;
  color: var(--ink-soft);
}

.last-seen {
  display: grid;
  gap: 4px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--ink-muted);
}

.last-seen b {
  color: var(--ink-soft);
  font-weight: 600;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.privacy-settings {
  display: grid;
  gap: 10px;
}

.privacy-setting {
  display: grid;
  gap: 4px;
}

.privacy-error {
  min-height: 1em;
  font-size: 12px;
  color: var(--blood-bright);
}

.switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.switch-track {
  position: relative;
  width: 40px;
  height: 22px;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.06);
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.switch-track::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ink-muted);
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.switch input:checked + .switch-track {
  border-color: rgb(201 24 43 / 0.5);
  background: rgb(201 24 43 / 0.2);
}

.switch input:checked + .switch-track::after {
  background: var(--blood-bright);
  transform: translateX(18px);
}

.switch input:focus-visible + .switch-track {
  outline: 2px solid var(--blood-bright);
  outline-offset: 2px;
}

.switch input:disabled + .switch-track {
  opacity: 0.5;
}

.switch-text {
  font-size: 13px;
  color: var(--ink-soft);
}

.period-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--gap);
  margin-bottom: 32px;
}

.period-card {
  padding: 18px;
}

.period-card .stat-value {
  display: block;
}

.side-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--gap);
}

.side-card {
  display: grid;
  gap: 6px;
  padding: 20px;
}

.side-name {
  margin-bottom: 4px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
}

.side-value {
  font-size: 13px;
  color: var(--ink-soft);
}

.achievement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--gap);
}

.achievement-card {
  display: grid;
  gap: 6px;
  padding: 18px;
  opacity: 0.6;
  transition: opacity var(--dur) var(--ease);
}

.achievement-card.is-earned {
  opacity: 1;
  border-color: rgb(224 161 56 / 0.4);
}

.achievement-card.is-earned::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--amber), transparent);
}

.achievement-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.achievement-text {
  font-size: 12px;
  color: var(--ink-muted);
}

.achievement-date {
  margin-top: 4px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--amber);
}

.progress {
  display: block;
  height: 4px;
  margin-top: 6px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.07);
  overflow: hidden;
}

.progress-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blood-deep), var(--blood-bright));
}

.chat-log {
  display: grid;
  gap: 2px;
  padding: 16px 20px;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  background: var(--bg-soft);
  max-height: 520px;
  overflow-y: auto;
}

.chat-row {
  display: grid;
  grid-template-columns: auto minmax(0, 160px) minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 12px;
  padding: 5px 8px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  line-height: 1.45;
}

.chat-row.is-team {
  background: rgb(126 195 65 / 0.06);
}

.chat-time {
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  color: var(--ink-muted);
}

.chat-author {
  font-weight: 600;
  color: var(--ink-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-link {
  color: inherit;
  text-decoration: none;
}

.chat-link:hover {
  color: var(--blood-bright);
}

.chat-text {
  color: var(--ink);
  word-break: break-word;
}

.tag-team {
  border-color: rgb(126 195 65 / 0.4);
  background: rgb(126 195 65 / 0.1);
  color: #bde397;
}

.vk-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.72;
  transition: opacity var(--dur) var(--ease);
}

.vk-link:hover {
  opacity: 1;
}

.vk-mark {
  display: block;
}

.steam-mark {
  display: block;
}

.vk-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 28px;
  padding: 32px;
  color: inherit;
  text-decoration: none;
  background: transparent;
  border: none;
  box-shadow: none;
  transition: transform 0.3s ease;
}

.vk-card:hover {
  transform: translateY(-4px);
}

.vk-card-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  border-radius: 16px;
}



.vk-card-body {
  display: grid;
  gap: 6px;
}

.vk-card-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--ink);
}

.vk-card-text {
  max-width: 62ch;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.vk-card-cta {
  justify-self: start;
  margin-top: 12px;
  pointer-events: none;
}

@media (max-width: 1100px) {
  .decor {
    display: none;
  }
}

@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding: 52px 0 44px;
  }

  .hero-figures {
    order: -1;
    min-height: 260px;
  }

  .band-inner {
    grid-template-columns: 1fr;
    padding-block: 44px 0;
  }

  .band-copy {
    padding-bottom: 0;
  }

  .band-figures {
    justify-content: flex-end;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .period-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .vk-card {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 24px;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: grid;
    order: 3;
  }

  .site-nav {
    position: fixed;
    inset: 64px 0 auto 0;
    display: grid;
    gap: 2px;
    margin: 0;
    padding: 14px 20px 22px;
    background: rgb(10 11 13 / 0.98);
    border-bottom: 1px solid var(--line);
    transform: translateY(-130%);
    transition: transform var(--dur) var(--ease);
    pointer-events: none;
  }

  .site-nav.is-open {
    transform: none;
    pointer-events: auto;
  }

  .nav-link {
    padding: 12px 14px;
    font-size: 15px;
  }

  .nav-link[aria-current='page']::after {
    left: 14px;
    right: auto;
    width: 26px;
    bottom: 8px;
  }

  .header-actions {
    margin-left: auto;
  }

  .user-chip-name {
    display: none;
  }

  .match-card {
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .match-score {
    grid-column: 1 / -1;
    font-size: 22px;
  }

  .profile-head {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .section-head h2::before {
    display: none;
  }

  .chat-row {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 4px 10px;
  }

  .chat-text {
    grid-column: 1 / -1;
  }

  .chat-row .tag {
    justify-self: start;
  }
}

@media (max-width: 560px) {
  .header-inner {
    gap: 10px;
  }

  .brand-tag {
    display: none;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
    font-size: 18px;
  }

  .brand-name {
    font-size: 16px;
    letter-spacing: 0.04em;
  }

  .login-label-long {
    display: none;
  }

  .header-actions {
    gap: 6px;
  }

  .header-actions .btn {
    padding-inline: 12px;
    font-size: 12px;
    gap: 6px;
  }
}

@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;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

.server-details {
  display: grid;
  gap: 3px;
}

.server-map {
  font-size: 14px;
  color: var(--ink);
}

.server-meta {
  font-size: 12px;
  color: var(--ink-muted);
}

.side-panel-title {
  margin-top: 24px;
}

.side-block {
  display: grid;
  gap: 8px;
}

.class-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.class-chip {
  padding: 2px 7px;
  border: 1px solid rgb(126 195 65 / 0.32);
  border-radius: 999px;
  background: rgb(126 195 65 / 0.1);
  font-size: 11px;
  color: #bde397;
  white-space: nowrap;
}

.class-chip b {
  font-weight: 600;
  color: #d8f0bd;
}

.map-rotation {
  display: grid;
  gap: 6px;
}

.map-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--ink-soft);
}

.map-chip-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-chip-tag {
  flex: none;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.map-chip.is-current {
  border-color: rgb(201 24 43 / 0.45);
  background: rgb(201 24 43 / 0.1);
  color: #ffb0b8;
}

.map-chip.is-next {
  border-color: rgb(74 168 216 / 0.4);
  color: #9fd4ef;
}
