.analytics-page {
  color: #dbeafe;
}

.analytics-shell {
  position: relative;
  overflow: hidden;
  padding: var(--shell-padding);
  border: 1px solid var(--shell-border);
  border-radius: var(--shell-radius);
  background: var(--shell-bg);
  box-shadow: 0 0 80px var(--shell-glow), inset 0 0 60px rgba(255, 255, 255, .03);
  backdrop-filter: blur(var(--shell-blur));
}

.analytics-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 0%, var(--shell-sheen-color) var(--shell-sheen-stop), transparent 60%);
  filter: blur(30px);
  opacity: .7;
}

.analytics-hero,
.analytics-section {
  position: relative;
  z-index: 1;
}

.analytics-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(148, 163, 184, .12);
}

.analytics-kicker {
  margin: 0 0 10px;
  color: #38bdf8;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .2em;
}

.analytics-hero h1 {
  margin: 0;
  color: #f8fafc;
  font-family: "Orbitron", sans-serif;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 900;
  text-shadow: 0 0 28px rgba(56, 189, 248, .25);
}

.analytics-subtitle,
.analytics-updated,
.analytics-section-heading p,
.analytics-card-head span,
.analytics-card small {
  font-family: "Inter", system-ui, sans-serif;
}

.analytics-subtitle {
  margin: 10px 0 0;
  color: #94a3b8;
  font-weight: 700;
}

.analytics-updated {
  margin: 8px 0 0;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.analytics-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(145px, 1fr));
  gap: 12px;
}

.analytics-summary article {
  min-width: 145px;
  padding: 16px 18px;
  border: 1px solid rgba(77, 166, 255, .25);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(30, 41, 59, .92), rgba(15, 23, 42, .82));
}

.analytics-summary span {
  display: block;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.analytics-summary strong {
  display: block;
  margin-top: 6px;
  color: #e0f2fe;
  font-size: 28px;
}

.analytics-section {
  padding-top: 38px;
}

.analytics-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.analytics-section-heading > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.analytics-section-heading span {
  color: #38bdf8;
  font-size: 12px;
  font-weight: 900;
}

.analytics-section-heading h2 {
  margin: 0;
  color: #f8fafc;
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 900;
}

.analytics-section-heading p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
  text-align: right;
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.analytics-grid-featured {
  grid-template-columns: 1fr;
}

.analytics-card {
  overflow: hidden;
  border: 1px solid rgba(96, 165, 250, .18);
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(20, 29, 48, .92), rgba(8, 13, 25, .96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 18px 40px rgba(0, 0, 0, .2);
  transition: transform .2s ease, border-color .2s ease;
}

.analytics-card:hover {
  transform: translateY(-2px);
  border-color: rgba(96, 165, 250, .42);
}

.analytics-card-featured {
  border-color: rgba(251, 191, 36, .3);
  background: linear-gradient(145deg, rgba(54, 38, 12, .5), rgba(15, 23, 42, .96) 45%);
}

.analytics-card-head {
  min-height: 70px;
  padding: 16px 18px 12px;
  border-bottom: 1px solid rgba(148, 163, 184, .1);
}

.analytics-card-head h3 {
  margin: 0;
  color: #e0f2fe;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.analytics-card-head span {
  display: block;
  margin-top: 5px;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
}

.analytics-card ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.analytics-card li {
  display: grid;
  grid-template-columns: 30px minmax(100px, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 10px 16px;
  border-top: 1px solid rgba(148, 163, 184, .07);
}

.analytics-card li:first-child {
  border-top: 0;
}

.analytics-card li.is-leader {
  background: linear-gradient(90deg, rgba(56, 189, 248, .12), transparent);
}

.analytics-card-featured li.is-leader {
  background: linear-gradient(90deg, rgba(251, 191, 36, .14), transparent);
}

.analytics-rank {
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
}

.is-leader .analytics-rank {
  color: #fbbf24;
}

.analytics-player {
  min-width: 0;
  overflow: hidden;
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analytics-player a {
  color: #dbeafe;
}

.analytics-card li > strong {
  color: #f8fafc;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 14px;
  text-align: right;
}

.analytics-card small {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
}

.analytics-card small a {
  color: #60a5fa;
}

.analytics-empty {
  display: block !important;
  color: #64748b;
  font-family: "Inter", system-ui, sans-serif;
  text-align: center;
}

.analytics-error {
  position: relative;
  z-index: 1;
  margin-top: 24px;
  padding: 16px;
  border: 1px solid rgba(248, 113, 113, .35);
  border-radius: 14px;
  background: rgba(127, 29, 29, .2);
  color: #fecaca;
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 700;
}

@media (max-width: 1100px) {
  .analytics-hero {
    align-items: stretch;
    flex-direction: column;
  }

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

@media (max-width: 700px) {
  .analytics-page main {
    width: 100%;
    padding: 8px 6px 28px;
  }

  .analytics-shell {
    padding: 16px 12px;
    border-radius: 20px;
  }

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

  .analytics-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .analytics-section-heading p {
    text-align: left;
  }
}
