:root {
  --ink: #0f1a1f;
  --ink-soft: #24313a;
  --paper: #f7f3ee;
  --accent: #f0642b;
  --accent-deep: #ca3f17;
  --teal: #3cc6a3;
  --gold: #f4c95d;
  --shadow: rgba(15, 26, 31, 0.2);
  --radius-lg: 22px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Work Sans", "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #ffffff 0%, #f4efe7 40%, #efe6db 100%);
  color: var(--ink);
  min-height: 100vh;
}

.pattern {
  background-image: linear-gradient(120deg, rgba(15, 26, 31, 0.06) 0%, rgba(15, 26, 31, 0) 60%),
    radial-gradient(circle at 15% 25%, rgba(240, 100, 43, 0.12), transparent 45%),
    radial-gradient(circle at 80% 10%, rgba(60, 198, 163, 0.12), transparent 45%);
}

.brand-title {
  font-family: "Bebas Neue", "Impact", sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero {
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #10171c 0%, #1b252c 60%, #27353d 100%);
  color: #fef6ea;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
  padding: 3rem;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: -40% 40% auto -20%;
  height: 220%;
  background: radial-gradient(circle, rgba(240, 100, 43, 0.35), transparent 60%);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fef6ea;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.stat-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.stat-card {
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 1rem 1.2rem;
  backdrop-filter: blur(8px);
}

.stat-card h3 {
  font-family: "Bebas Neue", "Impact", sans-serif;
  font-size: 2rem;
  margin-bottom: 0.25rem;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.section-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 1rem;
  box-shadow: 0 12px 24px rgba(12, 18, 22, 0.08);
  position: relative;
  overflow: hidden;
  min-height: 160px;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.section-card img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  border-radius: 10px;
}

.section-badge {
  font-family: "Bebas Neue", "Impact", sans-serif;
  font-size: 1.2rem;
  color: var(--ink-soft);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  border: 1px solid rgba(36, 49, 58, 0.15);
  color: var(--ink-soft);
}

.chip.video {
  border-color: rgba(240, 100, 43, 0.45);
  color: var(--accent-deep);
}

.chip.approval {
  border-color: rgba(60, 198, 163, 0.45);
  color: #168066;
}

.histogram {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(28px, 1fr));
  gap: 0.5rem;
  align-items: end;
  height: 200px;
}

.histogram-bar {
  border-radius: 12px 12px 6px 6px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-deep) 100%);
  position: relative;
}

.histogram-bar span {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  color: var(--ink-soft);
}

.leaderboard {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(12, 18, 22, 0.1);
}

.leaderboard thead {
  background: var(--ink);
  color: #fef6ea;
}

.leaderboard tbody tr:nth-child(odd) {
  background: #fff9f2;
}

.rank-badge {
  background: var(--gold);
  color: var(--ink);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-weight: 600;
}

.panel {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 14px 34px rgba(12, 18, 22, 0.08);
}

.team-card {
  background: #fffaf4;
  border-radius: var(--radius-md);
  padding: 1.4rem;
  border: 1px solid rgba(240, 100, 43, 0.1);
}

.team-card.active {
  border-color: rgba(60, 198, 163, 0.6);
  box-shadow: 0 12px 24px rgba(60, 198, 163, 0.18);
}

.empty-state {
  text-align: center;
  padding: 2rem;
  border: 1px dashed rgba(36, 49, 58, 0.25);
  border-radius: var(--radius-md);
  color: var(--ink-soft);
}

.footer-note {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .hero {
    padding: 2rem;
  }

  .histogram {
    height: 160px;
  }
}
