/* Platform statistics page — stat tiles, top drops grid, leaderboard table, fair-play cards */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 20px 0 0;
  font-size: 12.5px;
  color: var(--text-muted);
}
.breadcrumb a {
  color: var(--text-secondary);
  transition: color 0.15s ease;
}
.breadcrumb a:hover {
  color: var(--gold-300);
}
.breadcrumb-sep {
  color: var(--text-muted);
}
.breadcrumb-current {
  color: var(--gold-300);
  font-weight: 600;
}

.stats-hero {
  padding: 16px 0 4px;
  max-width: 860px;
}
.stats-title {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  line-height: 1.25;
}
.stats-lead {
  margin-top: 12px;
  color: var(--text-secondary);
  font-size: 14.5px;
  line-height: 1.6;
  max-width: 720px;
}

/* ---------- Big stat tiles ---------- */
.stat-tile-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 28px 0 8px;
}
.stat-tile-lg {
  background: var(--bg-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px 18px;
  text-align: center;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.stat-tile-lg:hover {
  border-color: var(--gold-500);
  transform: translateY(-3px);
  box-shadow: var(--shadow-gold-glow);
}
.stat-tile-value {
  display: block;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-tile-label {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

/* ---------- Top drops grid ---------- */
.drop-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.drop-card {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px 14px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  border-top: 3px solid var(--rarity-color, var(--rarity-covert));
}
.drop-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold-500);
  box-shadow: var(--shadow-card);
}
.drop-img-wrap {
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.drop-img-wrap img {
  max-height: 92px;
  width: auto;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.5));
}
.drop-name {
  font-weight: 700;
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.3;
}
.drop-price {
  font-weight: 800;
  font-size: 13.5px;
  color: var(--gold-300);
}
.drop-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}
.drop-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-soft);
}
.drop-user {
  font-size: 11.5px;
  color: var(--text-secondary);
  font-weight: 600;
}
.drop-time {
  font-size: 10.5px;
  color: var(--text-muted);
}

/* ---------- Leaderboard table ---------- */
.leaderboard-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--bg-2);
}
.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}
.leaderboard-table thead th {
  text-align: left;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 700;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
}
.leaderboard-table .lb-col-num {
  text-align: right;
}
.leaderboard-table tbody td {
  padding: 12px 16px;
  font-size: 13.5px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
}
.leaderboard-table tbody tr:last-child td {
  border-bottom: none;
}
.leaderboard-table tbody tr:hover td {
  background: rgba(229, 179, 88, 0.04);
}
.leaderboard-table .lb-col-num {
  text-align: right;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.lb-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-weight: 800;
  font-size: 12.5px;
  background: var(--bg-3);
  color: var(--text-secondary);
  border: 1px solid var(--border-soft);
}
.lb-rank-1 {
  background: var(--gold-gradient);
  color: var(--text-inverse);
  border-color: transparent;
  box-shadow: 0 0 0 3px rgba(229, 179, 88, 0.18);
}
.lb-rank-2 {
  background: var(--text-secondary);
  color: var(--text-inverse);
  border-color: transparent;
}
.lb-rank-3 {
  background: var(--fire-gradient);
  color: #2a1206;
  border-color: transparent;
}

.lb-player {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lb-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-soft);
  flex-shrink: 0;
}
.lb-username {
  font-weight: 700;
  color: var(--text-primary);
}

.leaderboard-table tr.is-top1 td {
  background: rgba(229, 179, 88, 0.06);
}
.leaderboard-table tr.is-top2 td {
  background: rgba(185, 173, 160, 0.05);
}
.leaderboard-table tr.is-top3 td {
  background: rgba(217, 98, 47, 0.05);
}

/* Mobile card view (labels injected via data-label + CSS) */
.lb-mobile-label {
  display: none;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 2px;
}

/* ---------- Provably fair cards ---------- */
.fair-desc {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  max-width: 780px;
  margin-bottom: 20px;
}
.fair-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.fair-card {
  background: var(--bg-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px 18px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.fair-card:hover {
  border-color: var(--gold-500);
  transform: translateY(-2px);
}
.fair-icon {
  opacity: 0.9;
  margin-bottom: 10px;
}
.fair-card h3 {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.fair-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  .drop-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 900px) {
  .stat-tile-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .drop-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .fair-grid {
    grid-template-columns: 1fr;
  }
  .stats-title {
    font-size: 26px;
  }
}

@media (max-width: 640px) {
  .leaderboard-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
  .leaderboard-table,
  .leaderboard-table tbody,
  .leaderboard-table tr,
  .leaderboard-table td {
    display: block;
    width: 100%;
  }
  .leaderboard-table {
    min-width: 0;
  }
  .leaderboard-table tr {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-subtle);
  }
  .leaderboard-table tbody tr:last-child {
    border-bottom: none;
  }
  .leaderboard-table td {
    border-bottom: none;
    padding: 4px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }
  .leaderboard-table .lb-col-num {
    text-align: right;
  }
  .lb-mobile-label {
    display: inline-block;
    margin-bottom: 0;
  }
}

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