* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  font-family: Inter, Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(147, 51, 234, 0.18), transparent 30%),
    radial-gradient(circle at bottom right, rgba(239, 68, 68, 0.18), transparent 30%),
    #09080d;
  color: #f6f3ff;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 18px;
  z-index: 20;
  display: flex;
  justify-content: center;
  padding: 0 16px;
  background: transparent;
  border-bottom: none;
  backdrop-filter: none;
}

/* Glass pill nav */
.nav-pill {
  display: flex;
  gap: 8px;
  padding: 8px;
  border-radius: 999px;

  background: rgba(20, 16, 30, 0.75);
  backdrop-filter: blur(14px);

  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

/* Nav links */
.nav-pill a {
  position: relative;
  padding: 10px 16px;
  border-radius: 999px;

  color: #d8c8ff;
  font-weight: 600;
  font-size: 0.92rem;

  transition: all 0.25s ease;
}

/* Hover */
.nav-pill a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

/* Active state */
.nav-pill a.active {
  color: #fff;
  background: linear-gradient(
    135deg,
    rgba(239, 68, 68, 0.25),
    rgba(147, 51, 234, 0.25)
  );
  box-shadow:
    0 6px 18px rgba(147, 51, 234, 0.25),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* Subtle animated underline (premium feel) */
.nav-pill a::after {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 50%;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, #ef4444, #9333ea);
  transition: all 0.25s ease;
  transform: translateX(-50%);
  opacity: 0;
}

.nav-pill a:hover::after {
  width: 40%;
  opacity: 1;
}

.nav-pill a.active::after {
  width: 60%;
  opacity: 1;
}

.nav-pill {
  background:
    radial-gradient(circle at top left, rgba(147, 51, 234, 0.15), transparent 40%),
    radial-gradient(circle at bottom right, rgba(239, 68, 68, 0.15), transparent 40%),
    rgba(20, 16, 30, 0.75);
}

.hero-shell,
.page-shell {
  width: min(1800px, calc(100% - 24px));
  margin: 0 auto;
  padding: 36px 0 80px;
}

.hero-card,
.page-title-card,
.glass-panel,
.stat-card,
.chart-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(201, 171, 255, 0.12);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  border-radius: 24px;
}

.hero-card,
.page-title-card,
.glass-panel {
  padding: 28px;
  margin-bottom: 24px;
}

.hero-card h1,
.page-title-card h1 {
  margin: 8px 0 12px;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.02;
}

.eyebrow {
  margin: 0;
  color: #f87171;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 700;
}

.lead {
  color: #dfd2ff;
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: none;
}

.button-row {
  display: flex;
  gap: 14px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.btn {
  padding: 14px 18px;
  border-radius: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, #ef4444, #9333ea);
  color: white;
  box-shadow: 0 12px 30px rgba(147, 51, 234, 0.25);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: #f5eeff;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.feature-list {
  padding-left: 18px;
  color: #e8dcff;
  line-height: 1.8;
}

.callout {
  font-weight: 700;
  color: #fff;
  margin-top: 18px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}

.stat-card {
  padding: 20px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.18);
}

.stat-card span {
  display: block;
  color: #d4c3ff;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.stat-card strong {
  font-size: 1.65rem;
}

.rank-section {
  margin-bottom: 24px;
}

.rank-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.rank-header h2 {
  margin: 0;
}

.table-wrap {
  overflow-x: visible;
  border-radius: 20px;
}

.member-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 0;
  table-layout: auto;
}

.member-table th,
.member-table td {
  text-align: left;
  padding: 12px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.88rem;
  white-space: nowrap;
}

.member-table th {
  color: #f4eeff;
  font-weight: 700;
  position: sticky;
  top: 0;
  background: rgba(16, 14, 22, 0.96);
  z-index: 2;
}

.member-table td {
  color: #dccccf;
}

.member-table th:nth-child(1),
.member-table td:nth-child(1) {
  width: 130px;
}

.member-table th:nth-child(2),
.member-table td:nth-child(2) {
  width: 120px;
}

.member-table th:nth-child(3),
.member-table td:nth-child(3) {
  width: 180px;
}

.member-table tbody tr {
  transition: background 0.18s ease, transform 0.18s ease;
}

.member-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.045);
}

.rank-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.18), rgba(147, 51, 234, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #f7eaff;
  font-size: 0.85rem;
  font-weight: 700;
}

.insights-toolbar {
  display: grid;
  grid-template-columns: 1fr 220px 180px;
  gap: 18px;
  align-items: end;
  margin-bottom: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-group label {
  color: #e6d9ff;
  font-weight: 600;
}

.form-group-button {
  justify-content: end;
}

.insights-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.insights-form select,
.insights-toolbar select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(23, 19, 31, 0.92);
  color: #f8f4ff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  outline: none;
}

.insights-form select option,
.insights-toolbar select option {
  background: #17131f;
  color: #f8f4ff;
}

.chart-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.chart-grid-three {
  grid-template-columns: repeat(3, 1fr);
}

.chart-card {
  padding: 20px;
  min-height: 320px;
}

.chart-card h3 {
  margin-top: 0;
  margin-bottom: 18px;
}

.chart-card canvas {
  width: 100% !important;
  height: 240px !important;
}

.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  opacity: 0.34;
}

.orb-1 {
  width: 260px;
  height: 260px;
  background: #9333ea;
  top: 80px;
  left: -40px;
}

.orb-2 {
  width: 260px;
  height: 260px;
  background: #ef4444;
  right: -60px;
  bottom: 60px;
}

.fade-up {
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.delay-1 {
  animation-delay: 0.08s;
}

.delay-2 {
  animation-delay: 0.16s;
}

.delay-3 {
  animation-delay: 0.24s;
}

.delay-4 {
  animation-delay: 0.32s;
}

.roster-row {
  opacity: 0;
  transform: translateY(10px);
  animation: rowReveal 0.55s ease forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rowReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1200px) {
  .chart-grid-three {
    grid-template-columns: 1fr;
  }

  .insights-toolbar {
    grid-template-columns: 1fr;
  }

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

  .member-table {
    min-width: 1200px;
  }
}

@media (max-width: 980px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .hero-shell,
  .page-shell {
    width: min(100% - 20px, 1200px);
    padding-top: 28px;
  }

  .hero-card,
  .page-title-card,
  .glass-panel {
    padding: 20px;
  }
}

.roster-clickable {
  cursor: pointer;
}

.profile-link {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.profile-link:hover {
  color: #f5c7ff;
}

.profile-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}

.profile-summary-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 20px;
}

.profile-summary-card h3,
.profile-summary-card h4 {
  margin-top: 0;
  margin-bottom: 12px;
}

.mini-meta {
  margin: 0 0 10px;
  color: #ddd0f7;
  line-height: 1.6;
}

@media (max-width: 1200px) {
  .profile-summary-grid {
    grid-template-columns: 1fr;
  }
}

.profile-overview-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 18px;
  margin-bottom: 24px;
}

.profile-hero-card {
  min-height: 100%;
}

.profile-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.profile-name {
  margin: 8px 0 0;
  font-size: 2rem;
}

.profile-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.profile-meta-item,
.mini-stat-card,
.trend-summary-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 16px;
}

.profile-meta-item span,
.mini-stat-card span,
.trend-summary-card span {
  display: block;
  color: #d4c3ff;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.profile-meta-item strong,
.mini-stat-card strong,
.trend-summary-card strong {
  font-size: 1.15rem;
  color: #fff;
}

.score-panel-head {
  margin-bottom: 16px;
}

.score-panel-head h3 {
  margin: 8px 0 0;
}

.mini-stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.trend-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}

.chart-head {
  margin-bottom: 12px;
}

.chart-head h3 {
  margin: 8px 0 0;
}

.history-table-wrap {
  margin-top: 28px;
}

@media (max-width: 1200px) {
  .profile-overview-grid {
    grid-template-columns: 1fr;
  }

  .trend-summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .profile-meta-grid,
  .trend-summary-grid {
    grid-template-columns: 1fr;
  }

  .profile-hero-top {
    flex-direction: column;
  }
}

.activity-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.activity-active {
  background: rgba(34, 197, 94, 0.18);
  color: #d9ffe7;
}

.activity-recently-active {
  background: rgba(59, 130, 246, 0.18);
  color: #deebff;
}

.activity-partially-active {
  background: rgba(245, 158, 11, 0.18);
  color: #fff0d2;
}

.activity-inactive {
  background: rgba(239, 68, 68, 0.16);
  color: #ffe0e0;
}

.tab-row {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.tab-pill {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #e7dbff;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.tab-pill.active {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.22), rgba(147, 51, 234, 0.22));
  color: #fff;
}

.podium-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 20px;
  margin-bottom: 28px;
}

.podium-card {
  border-radius: 24px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.podium-card h2 {
  margin: 10px 0 8px;
}

.podium-place {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.08);
}

.podium-place-1 {
  box-shadow: 0 0 0 1px rgba(255, 215, 0, 0.2) inset;
}

.podium-place-2 {
  box-shadow: 0 0 0 1px rgba(192, 192, 192, 0.2) inset;
}

.podium-place-3 {
  box-shadow: 0 0 0 1px rgba(205, 127, 50, 0.2) inset;
}

@media (max-width: 1200px) {
  .podium-grid {
    grid-template-columns: 1fr;
  }
}

.profile-banner-panel {
  margin-bottom: 24px;
}

.profile-banner-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 22px;
}

.profile-banner-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.profile-overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 24px;
}

.profile-name {
  margin: 8px 0 0;
  font-size: 2rem;
}

.profile-meta-item,
.mini-stat-card,
.trend-summary-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 16px;
}

.profile-meta-item span,
.mini-stat-card span,
.trend-summary-card span {
  display: block;
  color: #d4c3ff;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.profile-meta-item strong,
.mini-stat-card strong,
.trend-summary-card strong {
  font-size: 1.15rem;
  color: #fff;
}

.score-panel-head {
  margin-bottom: 16px;
}

.score-panel-head h3 {
  margin: 8px 0 0;
}

.mini-stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.chart-head {
  margin-bottom: 12px;
}

.chart-head h3 {
  margin: 8px 0 0;
}

.no-previous-card {
  padding: 28px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.no-previous-card h2 {
  margin-top: 0;
}

.podium-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 20px;
  margin-bottom: 28px;
}

.podium-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.podium-card h2 {
  margin: 10px 0 8px;
  position: relative;
  z-index: 2;
}

.podium-place {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 2;
}

.podium-place-1 {
  box-shadow: 0 0 0 1px rgba(255, 215, 0, 0.2) inset;
}

.podium-place-2 {
  box-shadow: 0 0 0 1px rgba(192, 192, 192, 0.2) inset;
}

.podium-place-3 {
  box-shadow: 0 0 0 1px rgba(205, 127, 50, 0.2) inset;
}

.podium-winner-card {
  border-color: rgba(255, 215, 0, 0.28);
  box-shadow:
    0 0 0 1px rgba(255, 215, 0, 0.12) inset,
    0 20px 60px rgba(255, 196, 0, 0.08),
    0 20px 70px rgba(147, 51, 234, 0.18);
}


@keyframes winnerSweep {
  0% {
    transform: translateX(-35%) rotate(8deg);
  }
  100% {
    transform: translateX(35%) rotate(8deg);
  }
}

@keyframes winnerPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.22;
  }
  50% {
    transform: scale(1.18);
    opacity: 0.4;
  }
}

@media (max-width: 1200px) {
  .profile-banner-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .profile-overview-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 700px) {
  .profile-banner-top {
    flex-direction: column;
  }

  .profile-banner-grid {
    grid-template-columns: 1fr;
  }
}

.podium-winner-card {
  position: relative;
  overflow: hidden;

  border: 1px solid rgba(255, 215, 0, 0.25);

  background:
    radial-gradient(circle at 15% 20%, rgba(255, 215, 0, 0.10), transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(147, 51, 234, 0.12), transparent 45%),
    rgba(255, 255, 255, 0.05);

  box-shadow:
    0 0 0 1px rgba(255, 215, 0, 0.08) inset,
    0 18px 45px rgba(255, 196, 0, 0.10),
    0 20px 60px rgba(147, 51, 234, 0.18);

  animation: winnerFloat 6s ease-in-out infinite;
}

.podium-winner-card::before {
  content: "👑 1st Place";
  position: absolute;
  top: 14px;
  right: 14px;

  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  color: #fff7d6;

  background: rgba(255, 215, 0, 0.12);
  border: 1px solid rgba(255, 215, 0, 0.18);
  backdrop-filter: blur(8px);
  box-shadow: 0 6px 18px rgba(255, 196, 0, 0.08);

  pointer-events: none;
  z-index: 3;
}

.podium-winner-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;

  background: radial-gradient(
    circle at center,
    rgba(255, 215, 0, 0.10),
    transparent 60%
  );

  opacity: 0.45;
  pointer-events: none;
  z-index: 1;

  animation: winnerGlowPulse 5s ease-in-out infinite;
}

.podium-winner-card .podium-place,
.podium-winner-card h2,
.podium-winner-card .mini-meta,
.podium-winner-card .mini-stats-grid {
  position: relative;
  z-index: 2;
}

@keyframes winnerFloat {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-5px);
  }
}

@keyframes winnerGlowPulse {
  0%, 100% {
    opacity: 0.35;
  }
  50% {
    opacity: 0.65;
  }
}

.activity-non-participant {
  background: rgba(148, 163, 184, 0.18);
  color: #d7dde7;
}

.edit-success {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.22);
  color: #d9ffe7;
  font-weight: 700;
}

.edit-save-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}

.member-table input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #9333ea;
  cursor: pointer;
}

.sortable-header {
  cursor: pointer;
  user-select: none;
  position: relative;
}

.sortable-header::after {
  content: "↕";
  margin-left: 8px;
  font-size: 0.75rem;
  opacity: 0.35;
}

.sortable-header.sort-asc::after {
  content: "↑";
  opacity: 0.9;
}

.sortable-header.sort-desc::after {
  content: "↓";
  opacity: 0.9;
}

.sortable-header:hover {
  color: #ffffff;
}

.landing-hero-content {
  width: 100%;
  max-width: none;
}

.hero-card {
  padding: 32px 28px;
}

.hero-card h1 {
  margin-bottom: 10px;
}

.hero-card .lead {
  max-width: none;
}


.landing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.boost-grid,
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.benefit-grid {
  grid-template-columns: repeat(4, 1fr);
}

.boost-card,
.benefit-card {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.boost-card span {
  display: block;
  color: #d4c3ff;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.boost-card strong {
  font-size: 1.8rem;
  color: #fff;
}

.benefit-card h3 {
  margin-top: 0;
}

.benefit-card p {
  color: #dfd2ff;
  line-height: 1.6;
}

@media (max-width: 1100px) {
  .landing-grid {
    grid-template-columns: 1fr;
  }

  .boost-grid,
  .benefit-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .boost-grid,
  .benefit-grid {
    grid-template-columns: 1fr;
  }

  .landing-hero-card strong {
    font-size: 3rem;
  }
}

.stats-grid {
  margin-top: 12px;
  margin-bottom: 28px;
}

.winner-feature-card {
  position: relative;
  overflow: hidden;
  margin: 18px 0 26px;
  padding: 28px;
  border-radius: 26px;
  background:
    radial-gradient(circle at top left, rgba(255, 215, 0, 0.12), transparent 34%),
    radial-gradient(circle at bottom right, rgba(147, 51, 234, 0.16), transparent 38%),
    rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 215, 0, 0.18);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.32),
    0 20px 60px rgba(147, 51, 234, 0.12);
}

.winner-feature-card h2 {
  position: relative;
  z-index: 2;
  margin: 8px 0;
  font-size: clamp(2rem, 5vw, 3.8rem);
}

.winner-feature-card .eyebrow,
.winner-feature-card .mini-meta,
.winner-feature-stats {
  position: relative;
  z-index: 2;
}

.winner-feature-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 22px;
}

.winner-feature-stats div {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.winner-feature-stats span {
  display: block;
  color: #d4c3ff;
  font-size: 0.85rem;
  margin-bottom: 8px;
}

.winner-feature-stats strong {
  color: #fff;
  font-size: 1.15rem;
}

.confetti-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.75;
}

.confetti-layer span {
  position: absolute;
  top: -20px;
  width: 6px;
  height: 14px;
  border-radius: 4px;
  background: rgba(255, 215, 0, 0.65);
  animation: modestConfetti 6s linear infinite;
}

.confetti-layer span:nth-child(2n) {
  background: rgba(239, 68, 68, 0.5);
}

.confetti-layer span:nth-child(3n) {
  background: rgba(147, 51, 234, 0.55);
}

.confetti-layer span:nth-child(1) { left: 8%; animation-delay: 0s; }
.confetti-layer span:nth-child(2) { left: 18%; animation-delay: 1.2s; }
.confetti-layer span:nth-child(3) { left: 28%; animation-delay: 2.4s; }
.confetti-layer span:nth-child(4) { left: 39%; animation-delay: 0.8s; }
.confetti-layer span:nth-child(5) { left: 50%; animation-delay: 3s; }
.confetti-layer span:nth-child(6) { left: 61%; animation-delay: 1.7s; }
.confetti-layer span:nth-child(7) { left: 72%; animation-delay: 2.8s; }
.confetti-layer span:nth-child(8) { left: 82%; animation-delay: 0.5s; }
.confetti-layer span:nth-child(9) { left: 91%; animation-delay: 2s; }
.confetti-layer span:nth-child(10) { left: 96%; animation-delay: 3.5s; }

@keyframes modestConfetti {
  0% {
    transform: translateY(-20px) rotate(0deg);
    opacity: 0;
  }
  12% {
    opacity: 0.8;
  }
  80% {
    opacity: 0.55;
  }
  100% {
    transform: translateY(230px) rotate(180deg);
    opacity: 0;
  }
}

@media (max-width: 900px) {
  .winner-feature-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .winner-feature-stats {
    grid-template-columns: 1fr;
  }
}
.previous-runners-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin: 20px 0 28px;
}

.podium-silver-card {
  border-color: rgba(226, 232, 240, 0.28);
  background:
    radial-gradient(circle at top left, rgba(226, 232, 240, 0.13), transparent 38%),
    rgba(255, 255, 255, 0.05);
  box-shadow:
    0 0 0 1px rgba(226, 232, 240, 0.08) inset,
    0 18px 45px rgba(226, 232, 240, 0.08);
}

.podium-silver-card .podium-place {
  background: rgba(226, 232, 240, 0.14);
  color: #f8fafc;
  border: 1px solid rgba(226, 232, 240, 0.18);
}

.podium-bronze-card {
  border-color: rgba(205, 127, 50, 0.34);
  background:
    radial-gradient(circle at top left, rgba(205, 127, 50, 0.16), transparent 38%),
    rgba(255, 255, 255, 0.05);
  box-shadow:
    0 0 0 1px rgba(205, 127, 50, 0.10) inset,
    0 18px 45px rgba(205, 127, 50, 0.10);
}

.podium-bronze-card .podium-place {
  background: rgba(205, 127, 50, 0.16);
  color: #ffddb8;
  border: 1px solid rgba(205, 127, 50, 0.22);
}

/* More confetti positions */
.confetti-layer span:nth-child(11) { left: 12%; animation-delay: 4.1s; }
.confetti-layer span:nth-child(12) { left: 23%; animation-delay: 3.3s; }
.confetti-layer span:nth-child(13) { left: 34%; animation-delay: 4.7s; }
.confetti-layer span:nth-child(14) { left: 45%; animation-delay: 3.9s; }
.confetti-layer span:nth-child(15) { left: 57%; animation-delay: 4.5s; }
.confetti-layer span:nth-child(16) { left: 68%; animation-delay: 3.1s; }
.confetti-layer span:nth-child(17) { left: 88%; animation-delay: 4.9s; }

@media (max-width: 900px) {
  .previous-runners-grid {
    grid-template-columns: 1fr;
  }
}

.rank-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.podium-meta {
  display: flex;
  flex-direction: column; /* 👈 stack vertically */
  align-items: flex-start; /* 👈 left align */
  gap: 4px;
  margin-bottom: 16px;
  color: #d4c3ff;
  font-size: 0.9rem;
}

.podium-meta .last-updated {
  opacity: 0.75;
}

.last-updated {
  color: #bfa9ff;
  opacity: 0.8;
}

.clan-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  font-size: 0.9rem;
  color: #d4c3ff;
  text-align: right;
}

.metric-head {
  position: relative;
  font-weight: 800;
}

.metric-head-clan {
  background:
    linear-gradient(135deg, rgba(239, 68, 68, 0.16), rgba(239, 68, 68, 0.06)),
    rgba(16, 14, 22, 0.96) !important;
  color: #ffd9d9 !important;
}

.metric-head-personal {
  background:
    linear-gradient(135deg, rgba(147, 51, 234, 0.17), rgba(147, 51, 234, 0.06)),
    rgba(16, 14, 22, 0.96) !important;
  color: #eadcff !important;
}

.metric-head-total {
  background:
    linear-gradient(135deg, rgba(201, 171, 255, 0.12), rgba(255, 255, 255, 0.035)),
    rgba(16, 14, 22, 0.96) !important;
  color: #efe7ff !important;
}

.metric-cell-clan {
  background: rgba(239, 68, 68, 0.035);
}

.metric-cell-personal {
  background: rgba(147, 51, 234, 0.04);
}

.metric-cell-total {
  background: rgba(255, 255, 255, 0.025);
}

/* Equal metric column sizing + alignment */
.member-table th.metric-col,
.member-table td.metric-col {
  width: 118px;
  min-width: 118px;
  max-width: 118px;
  text-align: center;
}

.member-table th.center-col,
.member-table td.center-col {
  text-align: center;
}

.member-table th.level-col,
.member-table td.level-col {
  width: 72px;
  min-width: 72px;
  text-align: center;
}

.member-table th.gm-col,
.member-table td.gm-col {
  width: 70px;
  min-width: 70px;
  text-align: center;
}
