:root {
  color-scheme: dark;
  --bg: #070a10;
  --panel: #111520;
  --panel-2: #171424;
  --text: #f6f7ff;
  --muted: #a9b2d2;
  --line: rgba(255, 255, 255, 0.14);
  --cyan: #25d9ff;
  --gold: #ffd24a;
  --pink: #ff4fb6;
  --green: #57f287;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 16% 12%, rgba(37, 217, 255, 0.16), transparent 30%),
    radial-gradient(circle at 82% 18%, rgba(255, 79, 182, 0.12), transparent 28%),
    repeating-linear-gradient(90deg, rgba(37, 217, 255, 0.032) 0 1px, transparent 1px 42px),
    linear-gradient(180deg, #090d16 0%, var(--bg) 100%);
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
}

.stats-shell {
  display: grid;
  gap: 18px;
  width: min(980px, calc(100vw - 28px));
  margin: 0 auto;
  padding: 28px 0;
}

.stats-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 21, 32, 0.84);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.34);
}

.stats-header div,
.stats-header nav {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.stats-header nav {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.mark {
  width: 24px;
  height: 24px;
  border: 3px solid var(--gold);
  border-radius: 6px;
  box-shadow: 0 0 18px rgba(255, 210, 74, 0.45), inset 0 0 14px rgba(37, 217, 255, 0.2);
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  color: var(--gold);
  font-size: clamp(1.28rem, 5vw, 2.2rem);
  letter-spacing: 0;
  text-shadow: 0 0 18px rgba(255, 210, 74, 0.24);
}

a,
button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(37, 217, 255, 0.36);
  border-radius: 7px;
  color: var(--text);
  background: rgba(5, 7, 13, 0.72);
  font: inherit;
  font-weight: 850;
  text-decoration: none;
}

button {
  cursor: pointer;
}

a {
  display: inline-grid;
  place-items: center;
}

a:hover,
a:focus-visible,
button:hover,
button:focus-visible {
  border-color: rgba(255, 210, 74, 0.56);
  box-shadow: 0 0 18px rgba(37, 217, 255, 0.16);
  outline: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.stat-card,
.stats-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(23, 20, 36, 0.94), rgba(7, 10, 16, 0.96)),
    var(--panel-2);
  box-shadow: inset 0 0 24px rgba(37, 217, 255, 0.05);
}

.stat-card {
  display: grid;
  gap: 8px;
  min-height: 130px;
  padding: 16px;
}

.stat-card span,
.version-label {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.stat-card strong {
  align-self: end;
  font-size: clamp(1.9rem, 5vw, 3.2rem);
  line-height: 0.95;
}

.stat-card small {
  color: var(--muted);
  min-height: 1.2em;
}

.stat-card.highlight {
  border-color: rgba(255, 210, 74, 0.42);
  background:
    radial-gradient(circle at 82% 16%, rgba(255, 210, 74, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(23, 20, 36, 0.94), rgba(7, 10, 16, 0.96));
}

.stats-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(240px, 1fr);
  gap: 18px;
  padding: 16px;
}

.stats-panel h2 {
  margin-top: 6px;
  color: var(--text);
  font-size: clamp(1.4rem, 4vw, 2.2rem);
}

.stats-panel p {
  margin-top: 8px;
  color: var(--muted);
}

.killer-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.killer-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  background: rgba(5, 7, 13, 0.56);
}

.killer-list strong {
  color: var(--text);
}

.killer-list span {
  color: var(--cyan);
  font-weight: 900;
}

@media (max-width: 820px) {
  .stats-header,
  .stats-panel {
    grid-template-columns: 1fr;
  }

  .stats-header {
    align-items: stretch;
    flex-direction: column;
  }

  .stats-header nav {
    justify-content: stretch;
  }

  .stats-header nav > * {
    flex: 1 1 140px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}
