/*────────────────  LEADERBOARD TABLE  ────────────────*/

/* Scroll wrapper */
.wsb-table-wrap {
  position: relative;
 
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 8px;           /* keeps text clear of scrollbar */
}

/*–– Remove any existing row stripes or cell backgrounds ––*/
.wsb-table,
.wsb-table th,
.wsb-table td {
  border: none !important;
  background: none !important;
}

/*–– Base table reset ––*/
.wsb-table {
  width: 100%;
  border-collapse: collapse;
}

/*–– Header styling ––*/
.wsb-table thead th {
  position: sticky;
  top: 0;
  background: #fff !important;        /* solid white */
  z-index: 9999 !important;
  text-align: center;                 /* force center */
  font-weight: 600;
  padding: 8px 12px;
  border-bottom: 2px solid #ccc;
  box-shadow: 0 2px 2px -1px rgba(0,0,0,0.08);
}

/*–– Body rows ––*/
.wsb-table tbody tr {
  border-bottom: 1px solid #ddd;
}
.wsb-table tbody tr:last-child {
  border-bottom: none;
}

/*–– Cell padding & alignment ––*/
.wsb-table th,
.wsb-table td {
  text-align: center;
  vertical-align: middle;
  padding: 10px 8px;
}

/*–– Column widths ––*/
.wsb-table td:first-child,
.wsb-table th:first-child {
  width: 40px;      /* trophy/rank */
  font-size: 18px;
  font-weight: 600;
}
.wsb-table td:nth-child(2),
.wsb-table th:nth-child(2) {
  font-size: 18px;
  font-weight: 600;
}
.wsb-table td:nth-child(3),
.wsb-table th:nth-child(3) {
  width: 80px;      /* score */
  font-size: 18px;
  font-weight: 600;
  padding-right: 24px;
}

/*–– Trophy images ––*/
.wsb-table td:first-child img {
  width: 40px;
  height: auto;
}

/*────────  MOBILE  ─────────*/
@media (max-width: 600px) {
  .wsb-table-wrap { padding-right: 4px; }
  .wsb-table th,
  .wsb-table td {
    padding: 6px 8px;
    font-size: 14px;
  }
  .wsb-table td:first-child img { width: 28px; }
  .wsb-table td:nth-child(2),
  .wsb-table th:nth-child(2),
  .wsb-table td:nth-child(3),
  .wsb-table th:nth-child(3) {
    font-size: 16px;
  }
}

