:root {
  color-scheme: dark;
  --bg: #0b1110;
  --panel: #121c19;
  --line: #27352f;
  --text: #e8eee8;
  --muted: #92a69b;
  --accent: #c8f589;
  --red: #fa9c8c;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    15px/1.6 system-ui,
    -apple-system,
    sans-serif;
}
main {
  max-width: 1280px;
  margin: auto;
  padding: 0 36px;
}
header {
  height: 100px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand {
  font-weight: 800;
  font-size: 34px;
  letter-spacing: -2px;
}
.brand span {
  color: var(--accent);
  font-size: 12px;
  margin-left: 7px;
}
.header-right {
  display: flex;
  gap: 20px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}
.intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 52px 0 36px;
  gap: 28px;
}
.eyebrow {
  color: var(--accent);
  letter-spacing: 3px;
  font-size: 11px;
}
h1 {
  font-size: 38px;
  line-height: 1.35;
  letter-spacing: -1.5px;
  margin: 14px 0;
}
p {
  color: var(--muted);
}
button {
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #172215;
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
}
button:hover {
  filter: brightness(1.08);
}
button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.secondary,
.subtle {
  background: #23322b;
  color: var(--text);
}
.subtle {
  padding: 7px 12px;
}
.danger {
  background: #392824;
  color: var(--red);
}
.controls {
  max-width: 440px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.controls p {
  flex-basis: 100%;
  font-size: 12px;
  margin: 4px 0;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.stats article,
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.stats article {
  padding: 22px;
}
.stats span,
.stats small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.stats strong {
  display: block;
  font-size: 30px;
  letter-spacing: -1px;
  margin: 9px 0;
}
.notice {
  padding: 14px 18px;
  margin: 20px 0;
  border-left: 3px solid var(--accent);
  background: #18231a;
  color: #c5d8bc;
  font-size: 13px;
}
.panel {
  margin-bottom: 20px;
  padding: 24px;
}
.section-title {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  margin-bottom: 22px;
}
.section-title h2 {
  font-size: 18px;
  margin: 0;
}
.section-title span {
  color: var(--muted);
  font-size: 11px;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
th {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  padding: 0 12px 12px;
}
td {
  padding: 16px 12px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
a {
  color: var(--text);
  text-decoration: none;
}
a:hover {
  color: var(--accent);
}
.rank {
  color: var(--muted);
  margin-right: 14px;
  font-variant-numeric: tabular-nums;
}
.badge {
  border-radius: 5px;
  padding: 5px 9px;
  background: #23342a;
  color: var(--accent);
  font-size: 11px;
}
.blocked {
  background: #282c29;
  color: var(--muted);
}
svg {
  width: 130px;
  height: 38px;
  display: block;
}
.position-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}
.position {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}
.position strong {
  font-size: 23px;
}
.position p {
  font-size: 12px;
  margin: 8px 0;
}
.bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.bottom-grid .panel {
  min-width: 0;
}
.empty {
  padding: 12px;
  font-size: 13px;
}
footer {
  padding: 15px 0 36px;
  color: var(--muted);
  font-size: 11px;
}
.login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.login form {
  width: 100%;
  max-width: 390px;
}
.login h1 {
  font-size: 30px;
}
.login label {
  display: block;
  margin: 18px 0;
  color: var(--muted);
  font-size: 13px;
}
input {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 13px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font-size: 16px;
}
.login button {
  width: 100%;
  margin-top: 12px;
}
[hidden] {
  display: none !important;
}
.event {
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.positive {
  color: var(--accent);
}
.negative {
  color: var(--red);
}
@media (max-width: 760px) {
  main {
    padding: 0 18px;
  }
  header {
    height: 75px;
  }
  .intro {
    display: block;
    padding: 30px 0;
  }
  h1 {
    font-size: 30px;
  }
  .controls {
    margin-top: 22px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats article {
    padding: 15px;
  }
  .stats strong {
    font-size: 24px;
  }
  .panel {
    padding: 17px;
  }
  .bottom-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .section-title span {
    max-width: 140px;
    text-align: right;
  }
  td,
  th {
    padding-left: 7px;
    padding-right: 7px;
  }
  .header-right {
    gap: 8px;
    font-size: 11px;
  }
  .table-wrap table {
    min-width: 540px;
  }
}
