/* ==========================================================================
   TOPUPGAMEZ LEADERBOARD REPLICA — Scoped strictly to body.tgz-leaderboard
   Extracted from leaderboard-BD0v8_er.js & live Chrome inspection
   ========================================================================== */

.tgz-lb-main {
  min-height: calc(100vh - 140px);
  padding: 24px 0 56px;
}

.tgz-lb-welcome {
  text-align: center;
  padding: 12px 0 4px;
}

.tgz-lb-welcome h2 {
  margin: 0 0 4px;
  font-size: 19px;
  font-weight: 800;
  color: #ffffff;
}

.tgz-lb-welcome p {
  margin: 0;
  font-size: 13.5px;
  color: var(--tgz-text-secondary);
}

/* ---------- PERIOD CARD ---------- */
.tgz-lb-card {
  background: var(--tgz-bg-secondary);
  border: 1px solid var(--tgz-border-secondary);
  border-radius: 14px;
  padding: 22px 18px;
}

.tgz-lb-card__title {
  margin: 0 0 46px;
  font-size: 20px;
  font-weight: 800;
  text-align: center;
  color: #ffffff;
}

/* ---------- EXACT 3-CARD PODIUM (leaderboard-BD0v8_er.js) ---------- */
.tgz-podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 10px;
  margin-bottom: 18px;
  width: 100%;
}

@media (min-width: 768px) {
  .tgz-podium { gap: 24px; }
}

.tgz-podium__slot {
  position: relative;
  width: 100%;
  border-radius: 16px;
  padding: 16px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  color: #ffffff;
  box-shadow: 0 20px 36px -14px rgba(0, 0, 0, 0.7);
}

/* Exact Tailwind gradients & heights from b(e) in leaderboard-BD0v8_er.js */
.tgz-podium__slot--1 {
  order: 2;
  height: 310px;
  background: linear-gradient(to bottom, #EBB23B, #7A5612);
}

.tgz-podium__slot--2 {
  order: 1;
  height: 252px;
  background: linear-gradient(to bottom, #A1A1AA, #27272A);
}

.tgz-podium__slot--3 {
  order: 3;
  height: 252px;
  background: linear-gradient(to bottom, #D4D4D8, #3F3F46);
}

.tgz-podium__crown {
  position: absolute;
  top: -32px;
  left: 50%;
  transform: translateX(-50%);
  width: 58px;
  height: 58px;
  color: #EBB23B;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.45));
}

.tgz-podium__rank {
  margin-top: 10px;
  font-size: 28px;
  font-weight: 800;
  font-style: italic;
  line-height: 1;
}

.tgz-podium__avatar {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.4);
  flex: none;
}

.tgz-podium__avatar img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
}

.tgz-podium__meta {
  text-align: center;
  width: 100%;
}

.tgz-podium__name {
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tgz-podium__amount {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
  font-style: italic;
  opacity: 0.92;
}

/* ---------- REMAINING RANKS (#4 - #10) ---------- */
.tgz-lb-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tgz-lb-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 12px;
  background: var(--tgz-card-primary);
  transition: background-color 0.2s ease;
}

.tgz-lb-row:hover {
  background: var(--tgz-card-secondary);
}

.tgz-lb-row__left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.tgz-lb-row__num {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--tgz-card-secondary);
  color: #ffffff;
  font-weight: 800;
  font-size: 15px;
  display: inline-grid;
  place-items: center;
  flex: none;
}

.tgz-lb-row__avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.2);
  flex: none;
}

.tgz-lb-row__avatar img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
}

.tgz-lb-row__name {
  color: #ffffff;
  font-weight: 600;
  font-size: 13.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tgz-lb-row__amount {
  color: #ffffff;
  font-weight: 700;
  font-size: 13.5px;
  font-style: italic;
  white-space: nowrap;
}

.tgz-leaderboard .tgz-reseller-card {
  display: flex !important;
  flex: none !important;
  min-height: auto;
  justify-content: flex-start;
  padding: 20px;
}
