/* =====================================================
   STB Leaderboard — Table UI (Professional)
   ===================================================== */

.stb-lb-wrap {
  max-width: 900px;
  margin: 40px auto;
  font-family: inherit;
}

/* ===== HEADER ===== */
.stb-lb-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.stb-lb-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #1a1a2e;
  text-transform: uppercase;
}

/* ===== FILTER ===== */
.stb-lb-filters select {
  padding: 10px 16px;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.95rem;
  background: #fff;
  cursor: pointer;
}

.stb-lb-filters select:focus {
  border-color: #f59e0b;
}

/* ===== STATES ===== */
.stb-lb-loading {
  text-align: center;
  padding: 40px;
  color: #9ca3af;
}

.stb-lb-empty {
  text-align: center;
  padding: 48px 24px;
  color: #6b7280;
  background: #f9fafb;
  border-radius: 12px;
}

/* =====================================================
   TABLE STRUCTURE
   ===================================================== */

.stb-lb-table-like {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ===== HEADER ROW ===== */
.stb-lb-header-row {
  display: grid;
  grid-template-columns: 50px 2fr 1.2fr 100px 100px;
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  padding: 0 18px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ===== DATA ROW ===== */
.stb-lb-row {
  display: grid;
  grid-template-columns: 50px 2fr 1.2fr 100px 100px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  font-size: 15px;
  transition: all 0.2s ease;
}

.stb-lb-row:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

/* ===== COLUMN STYLES ===== */

.player {
  font-weight: 600;
  font-size: 15px;
  color: #111827;
}

.right {
  text-align: right;
  font-weight: 600;
  font-size: 15px;
}

/* ===== RANK ===== */
.stb-lb-row div:first-child {
  font-weight: 600;
  font-size: 15px;
  color: #6b7280;
}

/* ===== META TEXT ===== */
.stb-lb-row div:nth-child(3),
.stb-lb-row div:nth-child(4) {
  color: #374151;
  font-size: 14px;
}

/* =====================================================
   TOP 3 (SUBTLE + PROFESSIONAL)
   ===================================================== */

.gold {
  border-left: 4px solid #f59e0b;
  background: #fffbeb;
}

.silver {
  border-left: 4px solid #9ca3af;
  background: #f9fafb;
}

.bronze {
  border-left: 4px solid #b45309;
  background: #fff7ed;
}

/* ===== CURRENT USER ===== */
.current-user {
  border: 2px solid #fdba74;
  background: #fff7ed;
}

/* ===============================
   POINT SYSTEM RULES
================================ */

.stb-lb-rules {
  margin-bottom: 24px;
  margin-right: 64px;
  margin-left: 64px;
  padding: 18px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
}

.rules-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #111827;
}

/* table */
.rules-table {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rules-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 80px;
  font-size: 13px;
  padding: 8px 8px;
  border-radius: 6px;
  background: #f9fafb;
}

.rules-row.header {
  font-weight: 800;
  background: transparent;
  color: #6b7280;
}

/* highlight tiers */
.rules-row:nth-child(2) { background: #fffbeb; } /* Bullseye */
.rules-row:nth-child(3) { background: #f9fafb; }
.rules-row:nth-child(4) { background: #fef3e2; }
.rules-row:nth-child(5) { background: #fff7ed; }
.rules-row:nth-child(6) { background: #f3f4f6; }

/* =====================================================
   RESPONSIVE
   ===================================================== */

/* 🔥 MOBILE FIX — SHOW ALL COLUMNS + SCROLL */
@media (max-width: 768px) {

  .stb-lb-table-like {
    overflow-x: auto;
  }

  .stb-lb-header-row,
  .stb-lb-row {
    min-width: 600px; /* important */
    grid-template-columns: 40px 1.5fr 1fr 80px 80px;
  }

  .stb-lb-header-row div,
  .stb-lb-row div {
    white-space: nowrap;
  }
}