
@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;
}

@keyframes chart-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes chart-area-appear {
  from {
    opacity: 0;
  }
  to {
    opacity: 0.17;
  }
}

@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 {
  color-scheme: dark;
  --bg: #0c0d0c;
  --bg-soft: #131513;
  --panel: #191b19;
  --panel-raised: #232623;
  --panel-border: #3b403a;
  --line: #2d312d;

  --ink: #f3f0e7;
  --ink-soft: #d0cdc3;
  --ink-muted: #a09f95;

  --blood: #d93648;
  --blood-bright: #f14d59;
  --blood-deep: #76232e;
  --infected: #ffd166;
  --survivor: #9abb8d;
  --amber: #ffd166;
  --positive: #74d99f;
  --negative: #ff4968;
  --accent-blue: var(--blood-bright);
  --accent-yellow: #ffd166;

  --radius-sm: 5px;
  --radius: 8px;
  --radius-lg: 12px;

  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.22);
  --shadow: 0 12px 28px -18px rgb(0 0 0 / 0.72);
  --shadow-lift: 0 16px 34px -20px rgb(0 0 0 / 0.85);

  --shell: 1240px;
  --gap: 18px;

  --font-display: 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --ease: cubic-bezier(0.2, 0.7, 0.25, 1);
  --dur: 180ms;
}

*,
*::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(720px 360px at 8% -10%, rgb(239 49 78 / 0.13), transparent 72%),
    radial-gradient(640px 420px at 95% 8%, rgb(53 183 255 / 0.075), transparent 72%);
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: var(--font-body);
  -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 {
  line-height: 1.1;
}




::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;
}

.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;
  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;
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  line-height: 1;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-name {
  font-weight: 700;
  text-transform: uppercase;
}

.brand-tag {
  text-transform: uppercase;
  color: var(--ink-muted);
}

.site-nav {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.nav-link {
  position: relative;
  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']::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;
  flex: none;
}

.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;
  border: 1px solid transparent;
  background: var(--panel-raised);
  color: var(--ink);
  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:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--blood);
  color: #fff;
  box-shadow: 0 10px 24px -12px var(--blood);
}

.btn-primary:hover {
  background: var(--blood-bright);
}



.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
}

.btn-ghost:hover {
  color: var(--ink);
}

.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);
  transition: border-color var(--dur) var(--ease);
}


.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: var(--panel-raised);
  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;
}

.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;
  padding: 64px 0 56px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  text-transform: uppercase;
}


.hero-title em {
  font-style: normal;
}

.hero-lead {
  margin-bottom: 28px;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-figures {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 0;
  padding-bottom: 8px;
}

.hero-figures::after {
  content: '';
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: 0;
  height: 1px;
}

.hero-figure {
  height: clamp(160px, 17vw, 260px);
  width: auto;
  object-fit: contain;
  opacity: 0;
  backface-visibility: hidden;
}



.hero-figure + .hero-figure {
  margin-left: -3%;
}

.hero-figure[data-side='infected'] {
  translate: 0 6px;
  scale: 0.97;
}


.band {
  position: relative;
  overflow: hidden;
  margin: 64px 0 8px;
  border-block: 1px solid var(--line);
}

.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;
  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%;
  margin-bottom: -12px;
  transform: translate3d(0, var(--parallax, 0), 0);
}

.band-figure {
  height: clamp(170px, 18vw, 250px);
  width: auto;
  object-fit: contain;
  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;
  justify-content: space-between;
  gap: 18px;
}




.section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  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-weight: 600;
}


.card {
  position: relative;
  border: 1px solid var(--panel-border);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.stat-card {
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
}

.stat-label {
  display: block;
  font-weight: 600;
  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;
  color: var(--ink-muted);
}

.match-list {
  display: grid;
}

.online-player {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
}

.online-player-link {
  font-weight: 600;
}


.online-server-name {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
}

.online-player-identity,
.online-player-details {
  display: grid;
  gap: 4px;
}

.online-player-details {
  justify-items: end;
  text-align: right;
}

.online-player-stats {
  font-size: 12px;
  color: var(--ink-soft);
}

@media (max-width: 640px) {
  .online-player {
    align-items: flex-start;
    flex-direction: column;
  }

  .online-player-details {
    justify-items: start;
    text-align: left;
  }
}

.match-card {
  display: grid;
  align-items: center;
}


.match-score {
  display: flex;
  align-items: center;
}



.match-score .sep {
  color: var(--ink-muted);
  font-size: 18px;
}


.match-meta {
  display: flex;
  flex-wrap: wrap;
  margin-top: 5px;
  color: var(--ink-muted);
}

.match-meta b {
  color: var(--ink-soft);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--panel-border);
  background: rgb(255 255 255 / 0.03);
  color: var(--ink-soft);
}


.tag-infected {
  border-color: rgb(126 195 65 / 0.4);
  background: rgb(126 195 65 / 0.12);
  color: #bde397;
}


.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 {
  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);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  border-bottom: 1px solid var(--panel-border);
  font-weight: 600;
  color: var(--ink-muted);
  text-align: left;
  white-space: nowrap;
}

td {
  border-bottom: 1px solid rgb(38 42 51 / 0.6);
  vertical-align: middle;
}

tbody tr {
  transition: background-color var(--dur) var(--ease);
}


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-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-weight: 600;
}

.empty {
  text-align: center;
  color: var(--ink-muted);
}

.empty h3 {
  margin-bottom: 8px;
}

.skeleton {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
}

.skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  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;
}

.skeleton-avatar {
  width: 104px;
  height: 104px;
}

.skeleton-fill {
  width: 100%;
}

.skeleton-width-35 {
  width: 35%;
}

.skeleton-width-40 {
  width: 40%;
}

.skeleton-width-60 {
  width: 60%;
}

.skeleton-width-65 {
  width: 65%;
}

.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);
  gap: 24px;
  margin-bottom: 32px;
}

.profile-avatar {
  width: 104px;
  height: 104px;
  object-fit: cover;
}

.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);
}

.id-chip-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

.id-chip-value {
  font-family: var(--font-display);
  font-weight: 600;
  color: #fff;
}

.copy-btn {
  padding: 5px 10px;
  border: 1px solid rgb(255 255 255 / 0.14);
  background: rgb(255 255 255 / 0.06);
  font-size: 11px;
  font-weight: 600;
  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);
}

.round-index {
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
}

.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;
}

.side-description {
  margin-top: 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 {
  font-size: 15px;
}

.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 {
  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;
  color: var(--ink-soft);
}

.notice {
  padding: 12px 16px;
  margin-bottom: 20px;
  border: 1px solid rgb(224 161 56 / 0.4);
  font-size: 13px;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 32px;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
}

.footer-brand p {
  max-width: 44ch;
  margin-top: 12px;
  font-size: 13px;
  color: var(--ink-muted);
}

.footer-col h4 {
  margin-bottom: 12px;
  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-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);
}


.no-reveal .reveal,
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.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);
  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);
  background: rgb(255 255 255 / 0.04);
  font-size: 10px;
  font-weight: 600;
  color: var(--ink-muted);
}

.section-note {
  color: var(--ink-muted);
}

.period-switch {
  display: inline-flex;
  margin-bottom: 24px;
  padding: 4px;
  border: 1px solid var(--panel-border);
}

.period-btn {
  padding: 8px 18px;
  border: 1px solid transparent;
  background: transparent;
  font-family: var(--font-body);
  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);
}


.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;
  border: 1px solid rgb(224 161 56 / 0.5);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
}

.rank-name {
  font-family: var(--font-display);
  font-weight: 600;
  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-note {
  margin: 0;
  color: var(--ink-muted);
  font-size: 12px;
  line-height: 1.6;
}

.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::after {
  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;
  transition: opacity var(--dur) var(--ease);
}


.achievement-card.is-earned::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
}

.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;
  margin-top: 6px;
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
}

.chat-log {
  display: grid;
  border: 1px solid var(--panel-border);
  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;
  font-size: 14px;
  line-height: 1.45;
}


.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;
  box-shadow: none;
}


.vk-card-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
}



.vk-card-body {
  display: grid;
  gap: 6px;
}

.vk-card-title {
  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;
  }


  .band-inner {
    grid-template-columns: 1fr;
    padding-block: 44px 0;
  }

  .band-figures {
    height: 280px;
  }

  .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: 2;
  }

  .site-nav {
    position: fixed;
    inset: 64px 0 auto 0;
    display: grid;
    gap: 2px;
    margin: 0;
    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 {
    font-size: 15px;
  }

  .nav-link[aria-current='page']::after {
    left: 14px;
    right: auto;
    width: 26px;
    bottom: 8px;
  }

  .header-actions {
    order: 3;
    min-width: 0;
    margin-left: 0;
    flex-shrink: 1;
    gap: 6px;
  }

  .user-chip-name {
    display: none;
  }

  .match-card {
    gap: 12px;
  }

  .match-score {
    font-size: 22px;
  }


  .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 {
    margin-left: 0;
    gap: 6px;
  }

  .header-actions .btn {
    padding-inline: 12px;
    font-size: 12px;
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .control-panel {
    min-width: 0;
  }

  .control-panel-status-board {
    margin: 0 0 26px;
  }

  .control-panel-status-board > h2 {
    margin-bottom: 14px;
    font-size: 1.15rem;
  }

  .control-panel-status-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }

  .control-panel-status-card {
    display: grid;
    gap: 8px;
    padding: 16px;
  }

  .control-panel-status-card strong {
    overflow-wrap: anywhere;
    color: var(--ink);
    font-size: 1rem;
  }

  .control-panel-server-status {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 12px;
    margin-top: 12px;
  }

  .control-panel-server-card {
    display: grid;
    gap: 12px;
    padding: 16px;
  }

  .control-panel-server-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
  }

  .control-panel-server-heading h3 {
    font-size: 0.95rem;
  }

  .status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 9px;
    border: 1px solid var(--panel-border);
    border-radius: 999px;
    color: var(--ink-soft);
    font-size: 0.72rem;
    font-weight: 650;
  }

  .status-online {
    border-color: rgb(116 217 159 / 0.45);
    color: var(--positive);
  }

  .status-offline,
  .status-error {
    border-color: rgb(255 73 104 / 0.45);
    color: var(--negative);
  }

  .status-checking {
    border-color: rgb(255 209 102 / 0.45);
    color: var(--amber);
  }

  .control-panel-server-card > p {
    color: var(--ink-soft);
    font-size: 0.88rem;
  }

  .control-panel-server-card .status-badge {
    flex: 0 0 auto;
  }

  .control-panel-heading h1 {
    margin-top: 10px;
    font-size: clamp(2rem, 4vw, 3.25rem);
  }

  .control-panel-note {
    max-width: 78ch;
    margin: -6px 0 22px;
    color: var(--ink-muted);
    font-size: 0.9rem;
    line-height: 1.65;
  }

  .control-panel-filters {
    display: grid;
    grid-template-columns: minmax(220px, 1.5fr) minmax(170px, 1fr) minmax(155px, 0.8fr) auto;
    align-items: end;
    gap: 12px;
    margin-bottom: 18px;
  }

  .control-panel-filters label {
    display: grid;
    gap: 7px;
    color: var(--ink-soft);
    font-size: 0.78rem;
    font-weight: 600;
  }

  .control-panel-filters input,
  .control-panel-filters select {
    width: 100%;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid var(--panel-border);
    border-radius: var(--radius);
    background: var(--bg-soft);
  }

  .control-panel-status {
    min-height: 22px;
    margin-bottom: 10px;
    color: var(--ink-muted);
    font-size: 0.86rem;
  }

  .control-panel-status[data-kind="error"] {
    color: var(--negative);
  }

  .control-panel-table-wrap {
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
  }

  .control-panel-table {
    width: 100%;
    min-width: 1320px;
    border-collapse: collapse;
    text-align: left;
  }

  .control-panel-table th,
  .control-panel-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
    font-size: 0.82rem;
  }

  .control-panel-table th {
    position: sticky;
    top: 0;
    background: var(--panel-raised);
    color: var(--ink-soft);
    font-weight: 650;
  }

  .control-panel-table tbody tr {
    transition: background-color var(--dur) var(--ease);
  }

  .control-panel-table tbody tr:hover {
    background: rgb(255 255 255 / 0.035);
  }

  .control-panel-table tbody tr:last-child td {
    border-bottom: 0;
  }

  .control-panel-table .mono {
    font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
    font-size: 0.78rem;
  }

  .control-panel-pagination {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    color: var(--ink-soft);
    font-size: 0.85rem;
  }

  .control-panel-pagination button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
  }

  @media (max-width: 760px) {
    .control-panel-status-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .control-panel-filters {
      grid-template-columns: 1fr 1fr;
    }

    .control-panel-filters label:first-child {
      grid-column: 1 / -1;
    }

    .control-panel-filters > button {
      width: 100%;
    }

    .control-panel-pagination {
      justify-content: space-between;
    }
  }

  @media (max-width: 460px) {
    .control-panel-status-grid {
      grid-template-columns: 1fr;
    }

    .control-panel-filters {
      grid-template-columns: 1fr;
    }

    .control-panel-filters label:first-child {
      grid-column: 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);
  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-next {
  color: #9fd4ef;
}

.online-overview,
.system-metric-grid {
  display: grid;
  gap: var(--gap);
}

.online-overview {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.online-summary {
  display: grid;
  gap: 5px;
}

.online-summary-value {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 600;
  line-height: 1.15;
}

.online-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.chart-card {
  min-width: 0;
}

.chart-card h3 {
  margin-bottom: 12px;
}

.chart-container {
  min-width: 0;
}

.chart-container svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.chart-grid-line {
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.chart-axis-label {
  font-family: var(--font-body);
}

.chart-series-line {
  fill: none;
  vector-effect: non-scaling-stroke;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.chart-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-soft);
}

.chart-legend-item::before {
  border-radius: 50%;
  background: var(--chart-color);
  content: '';
}

.chart-empty {
  display: grid;
  place-items: center;
  padding: 20px;
  color: var(--ink-muted);
  text-align: center;
}

.system-metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.system-metric {
  display: grid;
  min-width: 0;
  gap: 7px;
}

.system-metric strong {
  overflow-wrap: anywhere;
  font-family: var(--font-display);
  font-size: clamp(21px, 3vw, 29px);
  font-weight: 600;
  line-height: 1.2;
}

.system-metric .stat-foot {
  overflow-wrap: anywhere;
}

.system-footnote {
  margin-top: 22px;
  color: var(--ink-muted);
  font-size: 12px;
}

@media (max-width: 900px) {
  .online-chart-grid,
  .system-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .online-overview {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .online-chart-grid,
  .system-metric-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .chart-card {
    padding: 14px 10px;
  }
}

body {
  background-color: var(--bg);
  font-size: 15px;
  line-height: 1.65;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-body);
  font-weight: 650;
  letter-spacing: -0.035em;
  text-transform: none;
}

h1 {
  font-size: clamp(2rem, 4.5vw, 3.35rem);
  line-height: 1.08;
}

h2 {
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  line-height: 1.2;
}

h3 {
  font-size: 1.08rem;
  line-height: 1.35;
}

.shell {
  padding-inline: clamp(18px, 3vw, 32px);
}

.site-header {
  background: rgb(8 13 23 / 0.94);
  border-color: var(--line);
  backdrop-filter: blur(14px);
}

.site-header::after {
  display: none;
}

.header-inner {
  min-height: 72px;
  gap: clamp(12px, 2vw, 26px);
}

.brand {
  gap: 11px;
}

.brand-mark {
  width: 37px;
  height: 37px;
  border-radius: 9px;
  background: var(--blood);
  box-shadow: none;
  font-family: var(--font-body);
  font-size: 20px;
}

.brand-name {
  font-family: var(--font-body);
  font-size: 17px;
  letter-spacing: 0.045em;
}

.brand-tag {
  margin-top: 5px;
  font-size: 9px;
  letter-spacing: 0.18em;
}

.site-nav {
  gap: 3px;
}

.nav-link {
  padding: 9px 11px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.015em;
  text-transform: none;
}

.nav-link[aria-current='page'] {
  background: var(--panel-raised);
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--accent-blue);
}

.nav-link[aria-current='page']::after {
  display: none;
}

.btn {
  min-height: 40px;
  padding: 9px 15px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: none;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary,
.btn-primary:hover {
  border-color: var(--blood);
  background: var(--blood);
  color: #fffaf7;
}

.btn-primary {
  box-shadow: 0 5px 18px rgb(239 49 78 / 0.2);
}

.btn-primary:hover {
  background: var(--blood-bright);
  box-shadow: 0 7px 22px rgb(239 49 78 / 0.3);
}

.btn-outline {
  background: transparent;
  border-color: var(--panel-border);
  color: var(--ink-soft);
}

.btn-outline:hover {
  border-color: var(--ink-muted);
  background: var(--panel);
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--panel-raised);
}

.user-chip {
  border-radius: 7px;
  background: transparent;
}

.user-chip:hover {
  border-color: var(--panel-border);
  background: var(--panel);
}

.user-chip-id {
  color: var(--blood-bright);
}

.hero {
  overflow: visible;
  border-bottom-color: var(--line);
  background: #121312;
}

.hero::before,
.hero::after {
  display: none;
}

.hero-inner {
  min-height: 388px;
  gap: 28px;
  padding-block: clamp(48px, 7vw, 88px);
}

.hero-title {
  max-width: 16ch;
  margin-bottom: 16px;
  text-shadow: none;
  font-size: clamp(2.5rem, 6vw, 4.4rem);
  letter-spacing: -0.06em;
}

.hero-title em {
  color: var(--blood-bright);
}

.hero-eyebrow {
  padding: 0;
  margin-bottom: 16px;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--blood-bright);
  font-size: 11px;
  letter-spacing: 0.13em;
}

.hero-lead {
  max-width: 48ch;
  font-size: 16px;
}

.hero-figures {
  min-height: 300px;
  justify-content: flex-end;
  overflow: visible;
  padding-top: 12px;
}

.hero-figures::after {
  background: var(--line);
}

.hero-figure {
  width: 25%;
  max-width: 27%;
  height: auto;
  max-height: 300px;
  flex: none;
  filter: drop-shadow(0 14px 16px rgb(0 0 0 / 0.38));
  transition: filter var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.hero-figures:hover .hero-figure {
  filter: drop-shadow(0 15px 20px rgb(0 0 0 / 0.48));
}

.hero-figure:hover,
.band-figure:hover {
  transform: translateY(-2px) scale(1.015);
}

.band {
  margin-block: 48px 0;
  border-color: var(--line);
  background: #121312;
}

.band-glow {
  display: none;
}

.band-inner {
  min-height: 405px;
}

.band-figures {
  height: 352px;
  flex-wrap: wrap;
  align-content: flex-end;
  gap: 0;
  margin-bottom: -12px;
  overflow: hidden;
}

.band-figure {
  flex: 0 1 25%;
  width: 25%;
  height: 50%;
  filter: drop-shadow(0 10px 14px rgb(0 0 0 / 0.4));
  transition: filter var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.page {
  padding-block: clamp(34px, 5vw, 58px) 72px;
}

.page-head {
  align-items: center;
  margin-bottom: 28px;
  padding-bottom: 23px;
  border-bottom: 1px solid var(--line);
}

.page-title {
  margin-bottom: 9px;
  letter-spacing: -0.05em;
}

.page-sub {
  max-width: 68ch;
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.7;
}

.section {
  margin-bottom: clamp(36px, 5vw, 58px);
}

.section-head {
  align-items: center;
  margin-bottom: 17px;
  padding-bottom: 12px;
  border-bottom-color: var(--line);
}

.section-head h2::before {
  display: none;
}

.section-link {
  color: var(--accent-blue);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
}

.section-link:hover {
  color: #89d8ff;
}

.section-note {
  font-size: 11px;
  letter-spacing: 0.035em;
  text-transform: none;
}

.card {
  background: var(--panel);
  border-color: var(--panel-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease),
    transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.card:hover {
  border-color: #3b5b7e;
  box-shadow: var(--shadow);
}

.stat-grid {
  gap: 12px;
}

.stat-card {
  min-height: 120px;
  padding: 18px 18px 16px;
}

.stat-card::before {
  width: 2px;
  background: var(--blood);
}

.stat-label {
  margin-bottom: 8px;
  font-size: 10px;
  letter-spacing: 0.11em;
}

.stat-value,
.online-summary-value,
.system-metric strong {
  font-family: var(--font-body);
  font-size: clamp(1.55rem, 2.8vw, 2rem);
  font-weight: 650;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}

.stat-foot {
  font-size: 12px;
}

.match-list {
  gap: 9px;
}

.match-card {
  grid-template-columns: 102px minmax(0, 1fr) auto;
  gap: 20px;
  padding: 17px 19px;
  border-radius: 7px;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}

.match-card:hover {
  transform: translateY(-1px);
  border-color: #3b5b7e;
  background: var(--panel-raised);
  box-shadow: none;
}

.match-score {
  gap: 7px;
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.match-score .sa {
  color: var(--survivor);
}

.match-score .in {
  color: var(--infected);
}

.match-map {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
}

.match-meta {
  gap: 5px 13px;
  font-size: 12px;
}

.match-meta b {
  font-weight: 550;
}

.match-cta {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0;
}

.tag {
  padding: 4px 9px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.tag-live {
  border-color: rgb(144 196 155 / 0.35);
  background: rgb(144 196 155 / 0.1);
  color: #b5d8bb;
}

.tag-live .pulse-dot {
  background: var(--positive);
  animation: none;
}

.tag-survivors {
  border-color: rgb(53 183 255 / 0.4);
  background: rgb(53 183 255 / 0.12);
  color: #8bd6ff;
}

.tag-infected,
.tag-team {
  border-color: rgb(255 212 59 / 0.4);
  background: rgb(255 212 59 / 0.12);
  color: #ffe47d;
}

.table-wrap {
  border-color: var(--panel-border);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: none;
}

table {
  min-width: 700px;
  font-size: 13px;
}

th {
  padding: 12px 13px;
  background: #11191d;
  border-bottom-color: var(--panel-border);
  font-size: 10px;
  letter-spacing: 0.07em;
  text-transform: none;
}

td {
  padding: 12px 13px;
  border-bottom-color: rgb(42 56 63 / 0.65);
}

tbody tr:hover {
  background: rgb(255 255 255 / 0.035);
}

.rank,
.rating,
.rank-level,
.rank-badge,
.rank-name,
.id-chip-value,
.system-metric strong {
  font-family: var(--font-body);
  font-variant-numeric: tabular-nums;
}

.rank-top {
  color: var(--amber);
}

.rating {
  color: var(--ink);
  font-size: 14px;
}

.tier-chip {
  border-radius: 4px;
  letter-spacing: 0;
  text-transform: none;
}

.empty {
  padding: 42px 22px;
  border: 1px dashed var(--panel-border);
  border-radius: 8px;
  background: rgb(21 30 35 / 0.45);
}

.empty h3 {
  color: var(--ink);
}

.skeleton {
  background: #1a252a;
}

.skeleton::after {
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 0.035), transparent);
}

.profile-head {
  align-items: start;
  padding: clamp(18px, 3vw, 30px);
  border-radius: 10px;
}

.profile-avatar {
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  box-shadow: none;
}

.profile-name {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
}

.rank-badge {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: rgb(228 182 106 / 0.1);
  color: var(--amber);
}

.rank-name {
  font-size: 17px;
  letter-spacing: -0.02em;
}

.id-chip {
  border-style: solid;
  border-color: var(--panel-border);
  border-radius: 6px;
  background: #11191d;
}

.id-chip-label {
  letter-spacing: 0.09em;
  color: var(--ink-muted);
}

.id-chip-value {
  font-size: 14px;
  letter-spacing: 0.12em;
}

.copy-btn {
  border-color: var(--panel-border);
  border-radius: 4px;
  letter-spacing: 0;
  text-transform: none;
}

.period-grid,
.achievement-grid {
  gap: 12px;
}

.period-card,
.side-card,
.achievement-card {
  padding: 17px;
}

.side-card {
  border-left: 2px solid var(--survivor);
}

.side-card.side-infected {
  border-left-color: var(--infected);
}

.side-card.side-survivors {
  border-left-color: var(--survivor);
}

.profile-side-chart {
  margin-bottom: 12px;
}

.profile-side-chart h3 {
  margin: 0 0 8px;
}

.match-round-chart {
  margin-bottom: 12px;
}

.match-round-chart svg {
  max-height: 150px;
}

.leaderboard-chart-section {
  margin-bottom: 30px;
}

.chart-crosshair {
  stroke: var(--ink-muted);
  stroke-dasharray: 3 4;
  stroke-width: 1;
  pointer-events: none;
  vector-effect: non-scaling-stroke;
}

.side-name,
.achievement-title {
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: -0.01em;
}

.side-value,
.achievement-text {
  color: var(--ink-muted);
}

.achievement-card {
  opacity: 0.78;
}

.achievement-card.is-earned {
  border-color: rgb(228 182 106 / 0.38);
  opacity: 1;
}

.achievement-card.is-earned::before {
  background: var(--amber);
}

.progress {
  height: 5px;
  background: #26343a;
}

.progress-fill {
  background: var(--blood);
}

.prose {
  max-width: 78ch;
  color: var(--ink-soft);
  line-height: 1.8;
}

.prose h2 {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 1.35rem;
}

.prose h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.prose h3 {
  margin-top: 25px;
  font-size: 1.05rem;
}

.prose li::marker {
  color: var(--blood-bright);
}

.prose a {
  color: #67c8ff;
}

.callout {
  border-left: 2px solid var(--blood);
  border-radius: 0 6px 6px 0;
  background: #0c0d0c;
}

.notice {
  border-color: rgb(228 182 106 / 0.32);
  border-radius: 6px;
  background: rgb(228 182 106 / 0.08);
  color: #e8cc9d;
}

.period-switch {
  gap: 3px;
  border-radius: 7px;
  background: #11191d;
}

.period-btn {
  border-radius: 5px;
  font-size: 12px;
}

.period-btn.is-active {
  border-color: var(--panel-border);
  background: var(--panel-raised);
  color: var(--ink);
}

.select {
  min-height: 38px;
  border-color: var(--panel-border);
  border-radius: 6px;
  background: var(--panel);
}

.round-item {
  border-color: var(--panel-border);
  border-radius: 6px;
  background: var(--panel);
}

.round-index {
  color: var(--blood-bright);
}

.chat-log {
  gap: 3px;
  padding: 12px;
  border-color: var(--panel-border);
  border-radius: 8px;
  background: #10171b;
}

.chat-row {
  padding: 8px 9px;
  border-radius: 5px;
}

.chat-row:hover {
  background: rgb(255 255 255 / 0.035);
}

.chat-row.is-team {
  background: rgb(167 199 124 / 0.055);
}

.footer-inner {
  gap: 28px;
}

.site-footer {
  padding-block: 36px 26px;
  border-color: #0c0d0c;
  background: #111210;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-col a:hover {
  color: var(--blood-bright);
}

.vk-card {
  border: 1px solid var(--panel-border);
  border-radius: 9px;
  background: var(--panel);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.vk-card:hover {
  transform: translateY(-2px);
  border-color: #43545b;
}

.vk-card-mark {
  border-radius: 10px;
  background: var(--panel-raised);
}

.vk-card-title {
  font-family: var(--font-body);
  font-size: 20px;
}

.reveal {
  opacity: 0;
  transform: translateY(8px);
}

.no-reveal .reveal,
.reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 350ms var(--ease), transform 350ms var(--ease);
}

.online-player {
  min-width: 0;
  border-radius: 7px;
  background: var(--panel);
}

.online-player-link {
  overflow-wrap: anywhere;
}

.online-player-link:hover {
  color: var(--blood-bright);
}

.online-player-details {
  min-width: 0;
}

.online-player-stats,
.online-player-server {
  overflow-wrap: anywhere;
}

:root {
  --bg: #0c0d0c;
  --bg-soft: #131513;
  --panel: #191b19;
  --panel-raised: #232623;
  --panel-border: #3b403a;
  --line: #2d312d;
  --ink: #f3f0e7;
  --ink-soft: #d0cdc3;
  --ink-muted: #a09f95;
  --blood: #d93648;
  --blood-bright: #f14d59;
  --blood-deep: #76232e;
  --survivor: #9abb8d;
  --infected: #ffd166;
  --amber: #ffd166;
  --accent-blue: var(--blood-bright);
  --accent-yellow: #ffd166;
  --radius-sm: 7px;
  --radius: 12px;
  --radius-lg: 18px;
  --shell: 1440px;
  --gap: 22px;
  --rail-width: 248px;
}

body {
  padding-left: var(--rail-width);
  background: var(--bg);
}

.site-header {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 80;
  width: var(--rail-width);
  height: 100vh;
  border: 0;
  border-right: 1px solid var(--line);
  background: #111210;
  backdrop-filter: none;
}

.header-inner {
  width: 100%;
  max-width: none;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 30px 18px 22px;
  flex-direction: column;
  align-items: stretch;
  gap: 36px;
}

.brand {
  gap: 0;
  padding: 8px 7px 22px;
  border-bottom: 1px solid var(--line);
}

.brand-mark {
  display: none;
}

.brand-name {
  font-size: 23px;
  letter-spacing: 0.015em;
}

.brand-tag {
  margin-top: 7px;
  font-size: 10px;
  letter-spacing: 0.12em;
}

.site-nav {
  display: grid;
  gap: 6px;
  margin: 0;
}

.nav-link {
  min-height: 44px;
  padding: 11px 13px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
}

.nav-link:hover {
  background: var(--panel-raised);
  color: var(--ink);
}

.nav-link[aria-current='page'] {
  border-color: var(--blood-deep);
  background: #291719;
  color: var(--ink);
  box-shadow: inset 3px 0 0 var(--accent-blue);
}

.nav-link[aria-current='page']::after {
  display: none;
}

.header-actions {
  display: grid;
  justify-items: start;
  gap: 12px;
  margin-top: auto;
}

.account {
  flex-wrap: wrap;
}

.user-chip {
  max-width: 100%;
  border-radius: 8px;
  background: var(--panel);
}

.user-chip-name {
  max-width: 132px;
}

.settings-menu {
  position: relative;
}

.settings-panel {
  right: auto;
  bottom: calc(100% + 10px);
  left: 0;
  width: min(270px, calc(100vw - 24px));
}

.vk-link {
  opacity: 1;
}

.nav-toggle {
  display: none;
}

.shell {
  max-width: var(--shell);
  padding-inline: clamp(22px, 4vw, 62px);
}

.hero {
  border: 0;
  background: #121312;
}

.hero::before,
.hero::after {
  display: none;
}

.hero-inner {
  min-height: 430px;
  padding-block: clamp(56px, 7vw, 92px);
}

.hero-title {
  font-size: clamp(2.6rem, 5vw, 4.2rem);
}

.hero-title em {
  color: var(--blood-bright);
}

.server-nameplate {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 17px;
  padding: 7px 10px;
  border: 1px solid #4b3540;
  border-radius: 6px;
  background: #1b1b19;
  color: #f4cf79;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.server-nameplate span {
  color: var(--blood-bright);
}

.server-nameplate b {
  padding: 2px 5px;
  border-radius: 3px;
  background: var(--blood);
  color: #fff;
  font-size: 9px;
}

.hero-lead {
  max-width: 45ch;
  color: var(--ink-soft);
}

.btn-primary,
.btn-primary:hover {
  border-color: var(--blood);
  background: var(--blood);
  color: #fff;
}

.btn-primary {
  box-shadow: none;
}

.btn-primary:hover {
  background: var(--blood-bright);
  box-shadow: none;
}

.hero-figure,
.band-figure {
  filter: drop-shadow(0 14px 15px rgb(0 0 0 / 0.28));
}

.band {
  border-color: var(--line);
  background: #121312;
}

.band-copy h2 {
  max-width: 18ch;
}

.section {
  margin-bottom: clamp(38px, 5vw, 64px);
}

.section-head {
  margin-bottom: 19px;
  padding-bottom: 13px;
  border-color: var(--line);
}

.section-head h2 {
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}

.card {
  border-color: var(--panel-border);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: 0 12px 30px rgb(0 0 0 / 0.13);
}

.card:hover {
  border-color: var(--panel-border);
  background-color: var(--panel-raised);
}

.stat-card {
  border-top: 2px solid var(--panel-border);
}

.stat-card:nth-child(4n + 1) {
  border-top-color: var(--accent-blue);
}

.stat-card:nth-child(4n + 2) {
  border-top-color: var(--blood-bright);
}

.stat-card:nth-child(4n + 3) {
  border-top-color: var(--accent-yellow);
}

.stat-card::before {
  display: none;
}

.side-panel {
  display: grid;
  gap: 14px;
  padding: 22px;
  border-top: 3px solid var(--accent-yellow);
  border-radius: 12px;
  background: #111e2e;
  box-shadow: 0 18px 42px rgb(0 0 0 / 0.2);
}

.side-panel h3 {
  margin: 0;
  padding-bottom: 12px;
  border-bottom: 1px solid #30435a;
  color: #f4d36f;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.side-panel-title {
  margin-top: 10px;
}

.page-decor {
  right: 0;
}

.side-panel .round-track {
  gap: 7px;
}

.server-item .round-index {
  max-width: 150px;
  white-space: normal;
  overflow-wrap: anywhere;
  color: var(--accent-blue);
  font-size: 12px;
}

.side-panel .round-item {
  border-color: #283c55;
  background: #0c1624;
}

.callout {
  display: grid;
  gap: 10px;
  padding: 17px 19px;
  border: 1px solid #2d312d;
  border-left: 4px solid var(--accent-blue);
  border-radius: 9px;
  background: #0c0d0c;
  color: #c4d3e6;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.025);
}

.callout p {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 7px 12px;
  margin: 0;
}

.callout strong {
  min-width: 118px;
  color: #f0cf68;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.callout [data-server-address] {
  padding: 3px 8px;
  border: 1px solid var(--panel-border);
  border-radius: 5px;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-monospace, 'Cascadia Code', Consolas, monospace;
  font-size: 13px;
}

.table-wrap {
  border-color: var(--panel-border);
  border-radius: 12px;
  background: var(--panel);
}

th {
  background: var(--bg-soft);
}

tbody tr:hover {
  background: var(--panel-raised);
}

.profile-head {
  border-radius: 14px;
  background: var(--panel);
}

.side-card {
  background: var(--panel);
}

.chart-card {
  overflow: hidden;
  padding: 20px;
}

.chart-grid-line {
  stroke: #293b52;
}

.chart-axis-label {
  fill: #9bacc1;
}

.chart-legend-item {
  padding: 5px 9px;
  border: 1px solid #2a3f59;
  border-radius: 999px;
  background: #0b1522;
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.chart-legend-item:hover,
.chart-legend-item[aria-pressed='false'] {
  border-color: #58708d;
  background: #17263a;
}

.system-metric-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.system-metric {
  min-height: 130px;
  align-content: center;
  padding: 22px;
  border-left: 3px solid var(--accent-blue);
}

.system-metric:nth-child(2) {
  border-left-color: var(--accent-yellow);
}

.system-footnote {
  max-width: 76ch;
}

.site-footer {
  border-color: #0c0d0c;
  background: #0c0d0c;
}

.footer-brand .brand {
  padding: 0;
  border: 0;
}

.footer-brand .brand-name {
  font-size: 17px;
}

.footer-col a:hover {
  color: var(--accent-blue);
}

.reveal {
  transform: translateY(12px);
}

@media (max-width: 1100px) and (min-width: 761px) {
  :root {
    --rail-width: 220px;
  }

  .header-inner {
    padding-inline: 14px;
  }

  .nav-link {
    font-size: 12px;
  }
}

@media (max-width: 760px) {
  body {
    padding: 68px 0 0;
  }

  .site-header {
    position: fixed;
    inset: 0 0 auto;
    width: 100%;
    height: 64px;
    border: 0;
    border-bottom: 1px solid #263951;
    background: rgb(9 15 26 / 0.96);
    backdrop-filter: blur(12px);
  }

  .header-inner {
    width: 100%;
    height: 64px;
    min-height: 64px;
    padding: 7px 16px;
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }

  .brand {
    min-width: 0;
    padding: 0;
    border: 0;
  }

  .brand-name {
    font-size: 18px;
  }

  .brand-tag {
    margin-top: 4px;
    font-size: 8px;
  }

  .nav-toggle {
    display: grid;
    order: 2;
    margin-left: auto;
  }

  .site-nav {
    position: fixed;
    inset: 64px 0 auto;
    display: grid;
    gap: 4px;
    margin: 0;
    padding: 12px 16px 16px;
    border: 1px solid #263951;
    border-top: 0;
    border-radius: 0 0 12px 12px;
    background: #111210;
    box-shadow: 0 20px 30px rgb(0 0 0 / 0.3);
    transform: translateY(-130%);
    transition: transform var(--dur) var(--ease);
    pointer-events: none;
  }

  .site-nav.is-open {
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-link {
    min-height: 42px;
    padding: 10px 12px;
  }

  .nav-link[aria-current='page'] {
    box-shadow: inset 3px 0 0 var(--accent-blue);
  }

  .header-actions {
    display: flex;
    order: 3;
    justify-items: initial;
    gap: 7px;
    margin: 0;
  }

  .settings-panel {
    right: 0;
    bottom: auto;
    left: auto;
  }

  .shell {
    padding-inline: 18px;
  }

  .hero-inner {
    min-height: auto;
    padding-block: 46px 34px;
  }

  .hero-figures {
    min-height: 220px;
  }

  .system-metric-grid,
  .online-chart-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .brand-tag {
    display: none;
  }

  .header-actions .vk-link {
    display: none;
  }

  .header-actions .settings-menu {
    display: block;
  }

  .settings-trigger {
    font-size: 11px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .callout p {
    display: grid;
    gap: 5px;
  }

  .callout strong {
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

.online-summary {
  min-height: 126px;
  padding: 19px;
  border-top: 2px solid var(--blood);
}

.online-summary:nth-child(2) {
  border-top-color: var(--survivor);
}

.online-summary:nth-child(3) {
  border-top-color: var(--infected);
}

.online-chart-grid {
  gap: 12px;
}

.chart-card {
  padding: 18px 18px 13px;
  border-radius: 8px;
}

.chart-card h3 {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.chart-container svg {
  min-height: 190px;
}

.chart-container svg.chart-bar-graph,
.chart-container svg.chart-round-graph,
.chart-container svg.chart-side-graph {
  height: var(--chart-height);
  min-height: 0;
}

.chart-grid-line {
  stroke: #263b55;
  stroke-dasharray: 2 6;
}

.chart-axis-label {
  fill: #8da2bd;
  font-size: 10px;
}

.chart-series-line {
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: opacity 240ms ease, stroke-width 240ms ease;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: chart-draw 900ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.chart-series-area {
  opacity: 0.17;
  transition: opacity 240ms ease;
  animation: chart-area-appear 520ms ease-out both;
}

.chart-point {
  fill: #111210;
  stroke-width: 2.5;
  vector-effect: non-scaling-stroke;
  transition: r 160ms ease, opacity 160ms ease;
}

.chart-crosshair {
  stroke: #b5c7db;
  stroke-dasharray: 3 5;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.chart-hit {
  fill: transparent;
  cursor: crosshair;
}

.chart-hit:focus-visible,
.chart-bar:focus-visible {
  outline: none;
  stroke: var(--ink);
  stroke-width: 2;
}

.chart-tooltip {
  position: absolute;
  z-index: 2;
  display: grid;
  gap: 4px;
  min-width: 120px;
  padding: 9px 11px;
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  background: #101b2b;
  box-shadow: 0 12px 32px rgb(0 0 0 / 0.42);
  color: var(--ink);
  font-size: 11px;
  pointer-events: none;
}

.chart-tooltip[hidden] {
  display: none;
}

.chart-legend {
  gap: 8px 15px;
  margin: 0 0 6px 52px;
}

.chart-legend-item {
  font-size: 11px;
}

.chart-legend-item::before {
  width: 8px;
  height: 8px;
}

.chart-legend-button {
  padding: 3px 6px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
}

.chart-legend-button[aria-pressed='false'] {
  opacity: 0.45;
  text-decoration: line-through;
}

.chart-container {
  position: relative;
}

.chart-bar-label {
  fill: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 12px;
}

.chart-bar-value {
  fill: var(--ink);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 650;
}

.chart-bar {
  rx: 3px;
  transition: opacity 220ms ease, filter 220ms ease, width 420ms cubic-bezier(0.2, 0.75, 0.25, 1);
  animation: chart-appear 360ms ease-out both;
}

.chart-bar:hover {
  filter: brightness(1.2);
}

.chart-round-segment {
  stroke: #111210;
  stroke-width: 3px;
  rx: 4px;
  transition: opacity 220ms ease, filter 220ms ease;
}

.chart-round-segment:hover {
  filter: brightness(1.18);
}

@keyframes chart-appear {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chart-round-label {
  fill: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 10px;
}

.chart-round-caption {
  fill: var(--ink-muted);
  font-family: var(--font-body);
  font-size: 11px;
}

.chart-empty {
  min-height: 165px;
}

.system-metric-grid {
  gap: 12px;
}

.system-metric {
  min-height: 128px;
  padding: 18px;
  border-top: 2px solid var(--panel-border);
}

.system-metric:nth-child(1) {
  border-top-color: var(--blood);
}

.system-metric:nth-child(2) {
  border-top-color: var(--survivor);
}

.system-metric:nth-child(3) {
  border-top-color: var(--amber);
}

.system-metric:nth-child(4) {
  border-top-color: var(--infected);
}

.system-footnote {
  max-width: 78ch;
  line-height: 1.7;
}

.settings-menu {
  position: relative;
  z-index: 60;
}

.settings-trigger {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 8px 11px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.settings-trigger::-webkit-details-marker {
  display: none;
}

.settings-trigger::after {
  width: 7px;
  height: 7px;
  margin-left: 9px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  content: '';
  transform: translateY(-2px) rotate(45deg);
  transition: transform var(--dur) var(--ease);
}

.settings-menu[open] .settings-trigger {
  border-color: var(--panel-border);
  background: var(--panel);
  color: var(--ink);
}

.settings-menu[open] .settings-trigger::after {
  transform: translateY(2px) rotate(225deg);
}

.settings-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: grid;
  width: min(310px, calc(100vw - 32px));
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--panel-border);
  border-radius: 9px;
  background: #101a29;
  box-shadow: 0 18px 42px rgb(0 0 0 / 0.5);
}

.settings-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
  cursor: pointer;
}

.settings-option input {
  flex: none;
  width: 17px;
  height: 17px;
  margin-top: 1px;
  accent-color: var(--accent-blue);
}

.settings-note,
.settings-error {
  padding-left: 27px;
  color: var(--ink-muted);
  font-size: 11px;
  line-height: 1.5;
}

.settings-error:not(:empty) {
  color: var(--accent-yellow);
}

.map-chip {
  border-radius: 5px;
}

.map-chip.is-current {
  border-color: rgb(201 87 60 / 0.45);
  background: rgb(201 87 60 / 0.1);
  color: #eca28d;
}

.map-chip.is-next {
  border-color: rgb(121 184 208 / 0.4);
}

.switch input:checked + .switch-track {
  border-color: var(--blood);
  background: rgb(201 87 60 / 0.2);
}

.switch input:checked + .switch-track::after {
  background: var(--blood-bright);
}

@media (max-width: 980px) {
  .hero-inner {
    min-height: 0;
  }

  .hero-figures {
    min-height: 220px;
    order: 0;
    justify-content: center;
  }

  .band-inner {
    min-height: 0;
  }

  .band-figures {
    height: 300px;
  }
}

@media (max-width: 760px) {
  .header-inner {
    min-height: 64px;
  }

  .nav-toggle {
    border-color: var(--panel-border);
    border-radius: 6px;
    background: var(--panel);
  }

  .site-nav {
    inset-block-start: 64px;
    padding: 10px 18px 16px;
    border-color: var(--line);
    background: #111210;
    box-shadow: var(--shadow);
  }

  .nav-link {
    padding: 11px 12px;
  }

  .profile-head {
    grid-template-columns: auto minmax(0, 1fr);
    text-align: left;
    justify-items: start;
  }

  .match-card {
    grid-template-columns: 1fr auto;
  }

  .match-score {
    grid-column: auto;
  }
}

@media (max-width: 600px) {
  .skeleton-avatar {
    width: 76px;
    height: 76px;
  }

  .shell {
    padding-inline: 16px;
  }

  .header-inner {
    gap: 8px;
  }

  .header-actions .btn {
    min-height: 36px;
  }

  .header-actions .vk-link {
    display: none;
  }

  .login-label-long {
    display: none;
  }

  .settings-panel {
    position: fixed;
    top: 72px;
    right: 16px;
    width: min(310px, calc(100vw - 32px));
  }

  .hero-inner {
    padding-block: 42px 36px;
  }

  .hero-title {
    font-size: clamp(2.2rem, 12vw, 3.3rem);
  }

  .hero-figures {
    min-height: 170px;
  }

  .hero-figure {
    max-height: 190px;
  }

  .page {
    padding-block: 30px 50px;
  }

  .page-head {
    align-items: flex-start;
    margin-bottom: 21px;
    padding-bottom: 18px;
  }

  .toolbar {
    width: 100%;
    margin-bottom: 0;
  }

  .toolbar .select {
    flex: 1;
  }

  .period-switch {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .match-card {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 14px;
  }

  .match-score {
    grid-column: 1 / -1;
    font-size: 21px;
  }

  .match-cta {
    align-self: center;
  }

  .profile-head {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .profile-avatar {
    width: 76px;
    height: 76px;
  }

  .profile-meta,
  .profile-actions {
    align-items: flex-start;
  }

  .id-chip {
    max-width: 100%;
    flex-wrap: wrap;
    gap: 7px;
  }

  .id-chip-value {
    overflow-wrap: anywhere;
  }

  .round-item {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 8px 11px;
  }

  .round-item .tag {
    grid-column: 2;
    justify-self: start;
  }

  .online-player {
    align-items: flex-start;
    padding: 13px;
  }

  .online-player-details {
    justify-items: start;
    text-align: left;
  }

  .online-overview,
  .online-chart-grid,
  .system-metric-grid {
    grid-template-columns: 1fr;
  }

  .online-summary {
    min-height: 0;
  }

  .chart-card {
    padding: 15px 11px 11px;
  }

  .band-figures {
    height: 230px;
  }

  .settings-trigger {
    min-height: 36px;
    padding-inline: 7px;
  }

  .chart-container svg {
    min-height: 145px;
  }

  .match-round-chart svg {
    min-height: 0;
  }

  .chart-legend {
    margin-left: 38px;
  }

  .chart-axis-label {
    font-size: 9px;
  }

  .chat-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .chat-time {
    grid-column: 1;
  }

  .chat-author {
    grid-column: 2;
  }

  .chat-text {
    grid-column: 1 / -1;
  }

  .vk-card {
    padding: 19px;
  }

  .vk-card-mark {
    width: 62px;
    height: 62px;
  }

  .vk-card-mark .vk-mark {
    width: 54px;
    height: 54px;
  }

  .footer-note {
    margin-top: 24px;
  }
}

@media (max-width: 400px) {
  .header-inner {
    gap: 6px;
  }

  .brand {
    gap: 7px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
  }

  .brand-text {
    min-width: 0;
    max-width: 94px;
  }

  .brand-name {
    overflow: hidden;
    font-size: 14px;
    letter-spacing: 0.015em;
    text-overflow: ellipsis;
  }

  .nav-toggle {
    width: 36px;
    height: 36px;
  }

  .header-actions {
    gap: 4px;
  }

  .settings-trigger {
    padding-inline: 4px;
    font-size: 11px;
  }

  .settings-trigger::after {
    width: 6px;
    height: 6px;
    margin-left: 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .chart-series-line,
  .chart-bar,
  .chart-round-segment,
  .reveal,
  .hero-figure,
  .match-card,
  .vk-card {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}
