:root {
  --bg: #07100f;
  --panel: rgba(12, 24, 23, 0.78);
  --panel-strong: rgba(18, 39, 37, 0.92);
  --line: rgba(134, 255, 220, 0.16);
  --text: #e9fffa;
  --muted: #8bb8ad;
  --glow: #4fffd2;
  --warm: #ffd166;
  --offline: #6f8982;
  --danger: #ff6f91;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 8%, rgba(79, 255, 210, 0.18), transparent 28rem),
    radial-gradient(circle at 88% 18%, rgba(255, 209, 102, 0.13), transparent 24rem),
    linear-gradient(145deg, #06100f 0%, #0b1718 52%, #050809 100%);
}

body::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
}

.hero,
.summary,
.panel {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 0 42px rgba(79, 255, 210, 0.08);
  backdrop-filter: blur(18px);
}

.hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: stretch;
  padding: 28px;
  border-radius: 28px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--glow);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2.1rem, 6vw, 5.6rem);
  line-height: 0.9;
  letter-spacing: -0.07em;
}

.subtle {
  margin: 18px 0 0;
  color: var(--muted);
}

.summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  margin-top: 18px;
  border-radius: 22px;
}

.metric {
  min-width: 180px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.025);
}

.metric.invalid {
  display: grid;
  min-width: 260px;
  align-content: center;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(79, 255, 210, 0.16), rgba(255, 209, 102, 0.08)),
    rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 0 28px rgba(79, 255, 210, 0.11);
}

.metric-label {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.metric strong {
  display: block;
  margin-top: 10px;
  font-size: clamp(1.35rem, 3vw, 2.1rem);
  line-height: 1;
}

.panel {
  margin-top: 18px;
  border-radius: 24px;
  overflow: hidden;
}

.toolbar {
  display: flex;
  justify-content: flex-end;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.search {
  display: grid;
  gap: 8px;
  width: min(360px, 100%);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.search input {
  width: 100%;
  border: 1px solid rgba(134, 255, 220, 0.18);
  border-radius: 999px;
  padding: 12px 16px;
  outline: none;
  color: var(--text);
  font: inherit;
  background: rgba(2, 10, 10, 0.55);
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.22);
}

.search input:focus {
  border-color: rgba(79, 255, 210, 0.62);
  box-shadow: 0 0 22px rgba(79, 255, 210, 0.12);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(134, 255, 220, 0.1);
  text-align: left;
  white-space: nowrap;
}

th {
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

tbody tr {
  transition: background 180ms ease, transform 180ms ease;
}

tbody tr:hover {
  background: rgba(79, 255, 210, 0.045);
}

.player {
  display: grid;
}

.player strong {
  font-size: 0.98rem;
}

.rank {
  display: inline-flex;
  min-width: 44px;
  justify-content: center;
  border: 1px solid rgba(79, 255, 210, 0.18);
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--glow);
  font-weight: 800;
  background: rgba(79, 255, 210, 0.07);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.82rem;
  font-weight: 700;
  background: rgba(111, 137, 130, 0.14);
  color: var(--offline);
}

.pill::before {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  content: "";
  background: currentColor;
}

.pill.online {
  color: var(--glow);
  background: rgba(79, 255, 210, 0.12);
  box-shadow: 0 0 20px rgba(79, 255, 210, 0.12);
}

.empty {
  padding: 42px 18px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 20px, 1180px);
    padding: 18px 0;
  }

  .hero {
    display: grid;
    padding: 22px;
  }

  .summary {
    grid-template-columns: 1fr;
  }

  th,
  td {
    padding: 13px 14px;
  }
}
