﻿:root {
  --bg: #f6f2ea;
  --ink: #0c1014;
  --muted: #6b6f75;
  --panel: #ffffff;
  --accent: #ff7a59;
  --accent-2: #1b7cff;
  --accent-3: #1db98a;
  --danger: #e04f5f;
  --ring: rgba(12, 16, 20, 0.08);
  --shadow: 0 24px 60px rgba(12, 16, 20, 0.12);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Spline Sans", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
}

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: radial-gradient(circle at 10% 20%, rgba(255, 122, 89, 0.22), transparent 50%),
    radial-gradient(circle at 80% 10%, rgba(27, 124, 255, 0.2), transparent 45%),
    radial-gradient(circle at 20% 80%, rgba(29, 185, 138, 0.2), transparent 45%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  opacity: 0.5;
  animation: float 16s ease-in-out infinite;
}

.orb-1 {
  width: 320px;
  height: 320px;
  background: rgba(255, 122, 89, 0.22);
  top: -140px;
  right: 5%;
}

.orb-2 {
  width: 300px;
  height: 300px;
  background: rgba(27, 124, 255, 0.18);
  bottom: -140px;
  left: 6%;
  animation-delay: -6s;
}

.orb-3 {
  width: 220px;
  height: 220px;
  background: rgba(29, 185, 138, 0.2);
  top: 45%;
  left: 60%;
  animation-delay: -10s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) translateX(0px);
  }
  50% {
    transform: translateY(-18px) translateX(12px);
  }
}

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 24px 24px;
}

.hero {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(12, 16, 20, 0.1);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.7);
}

.hero h1 {
  font-size: clamp(1.5rem, 2.4vw, 2.2rem);
  line-height: 1.1;
  margin: 8px 0 0;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 0.9rem;
  color: var(--muted);
}

.view-label {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  color: var(--ink);
}

.dot {
  color: rgba(12, 16, 20, 0.2);
}

.panel {
  background: var(--panel);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0 0 8px;
  overflow: hidden;
}

.panel-head {
  padding: 14px 18px 6px;
  border-bottom: 1px solid rgba(12, 16, 20, 0.06);
}

.panel-title {
  display: grid;
  grid-template-columns: 44px 1fr 180px;
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.ranking {
  display: block;
  column-count: 2;
  column-gap: 18px;
}

.row {
  display: grid;
  grid-template-columns: 44px 1fr 180px;
  gap: 10px;
  padding: 10px 18px;
  border-bottom: 1px solid rgba(12, 16, 20, 0.06);
  align-items: center;
  break-inside: avoid;
}

.row:last-child {
  border-bottom: none;
}

.row.is-large {
  padding: 12px 18px;
}

.row.is-large .avatar {
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
}

.row.is-large .participant-name {
  font-size: 1.02rem;
}

.row.is-large .handle {
  font-size: 0.82rem;
}

.row.is-large .followers strong {
  font-size: 1.12rem;
}

.row.is-large .rank {
  font-size: 1rem;
}

.rank {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  font-family: "Spline Sans Mono", ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
}

.participant {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(12, 16, 20, 0.06);
  font-size: 1rem;
}

.participant-info {
  display: grid;
  gap: 2px;
}

.participant-name {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.badge {
  font-size: 0.6rem;
  padding: 3px 6px;
  border-radius: 999px;
  background: rgba(12, 16, 20, 0.06);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.handle {
  color: var(--muted);
  font-size: 0.78rem;
}

.followers {
  text-align: right;
  display: grid;
  gap: 4px;
}

.followers strong {
  font-size: 0.95rem;
}

.delta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
}

.delta.positive {
  color: var(--accent-3);
}

.delta.negative {
  color: var(--danger);
}

.sparkline {
  width: 100%;
  height: 26px;
}

body.live .sparkline {
  display: none;
}

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

@media (max-width: 1100px) {
  .ranking {
    column-count: 1;
  }
}

@media (max-width: 860px) {
  .panel-title,
  .row {
    grid-template-columns: 40px 1fr;
  }

  .followers {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .page {
    padding: 24px 16px 20px;
  }

  .panel-head {
    padding: 12px 14px 6px;
  }

  .row {
    padding: 10px 14px;
  }

  .participant {
    flex-direction: column;
    align-items: flex-start;
  }

  .participant-name {
    flex-wrap: wrap;
  }

  .hero-top {
    flex-direction: column;
    align-items: flex-start;
  }
}
