/*
 * Leaderboard route.
 * v6.9.6: redesign the ranking page into a cleaner, card-based leaderboard
 * that feels closer to the main 2048 theme. Smaller controls, more hierarchy,
 * Top 100 focus, best-tile column, pagination and client-side starter entries.
 */
:root {
  --lb-bg: var(--g2048-shell-page, #faf8ef);
  --lb-card: var(--g2048-shell-surface, #fffdf8);
  --lb-ink: var(--g2048-shell-text, #655b52);
  --lb-muted: var(--g2048-shell-muted, #807469);
  --lb-line: var(--g2048-shell-line, rgba(119, 110, 101, .16));
  --lb-brand: var(--g2048-shell-primary, #8f7f70);
  --lb-brand-dark: var(--g2048-shell-primary-hover, #7d6f62);
  --lb-soft: var(--g2048-shell-soft, #f1ede3);
  --lb-soft-2: #f8f4ec;
  --lb-orange: #f0673b;
  --lb-green: #6e8d46;
  --lb-shadow: 0 10px 28px rgba(119, 110, 101, .08);
}

.g2048-leaderboard-route,
.g2048-lb-page {
  background: var(--lb-bg);
  color: var(--lb-ink);
}

.g2048-lb-page {
  min-height: 70vh;
}

.g2048-lb-shell {
  width: min(var(--g2048-shell-width, 1120px), calc(100% - 36px));
  margin: 0 auto;
}

.g2048-lb-hero {
  padding: 34px 0 20px;
}

.g2048-lb-hero > .g2048-lb-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 24px;
  align-items: center;
}

.g2048-lb-hero__copy {
  min-width: 0;
}

.g2048-lb-kicker,
.g2048-lb-verified {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--lb-green);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.g2048-lb-hero h1 {
  max-width: 760px;
  margin: 8px 0 10px;
  color: #5f564e;
  font-size: clamp(34px, 4.6vw, 50px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.025em;
}

.g2048-lb-hero p {
  max-width: 720px;
  margin: 0;
  color: var(--lb-muted);
  font-size: 15px;
  line-height: 1.65;
}

.g2048-lb-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.g2048-lb-btn,
.g2048-lb-page-btn {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid var(--lb-line);
  border-radius: 10px;
  background: var(--lb-card);
  color: var(--lb-ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: none;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease, transform 120ms ease;
}

.g2048-lb-page-btn {
  cursor: pointer;
}

.g2048-lb-btn:hover,
.g2048-lb-btn:focus-visible,
.g2048-lb-page-btn:hover,
.g2048-lb-page-btn:focus-visible {
  border-color: rgba(119, 110, 101, .26);
  background: #f7f2e9;
}

.g2048-lb-btn:focus-visible,
.g2048-lb-tabs a:focus-visible,
.g2048-lb-page-btn:focus-visible {
  outline: 3px solid rgba(119, 110, 101, .24);
  outline-offset: 2px;
}

.g2048-lb-btn--primary,
.g2048-lb-page-btn.is-active {
  border-color: var(--lb-orange);
  background: var(--lb-orange);
  color: #fff !important;
}

.g2048-lb-btn--primary:hover,
.g2048-lb-btn--primary:focus-visible,
.g2048-lb-page-btn.is-active:hover,
.g2048-lb-page-btn.is-active:focus-visible {
  border-color: #e05b31;
  background: #e05b31;
}

.g2048-lb-page-btn[disabled] {
  opacity: .45;
  cursor: default;
}

.g2048-lb-champion {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 180px;
  padding: 20px;
  border: 1px solid rgba(119, 110, 101, .15);
  border-radius: 16px;
  background: linear-gradient(180deg, #71655a 0%, #5f564e 100%);
  color: #fff;
  box-shadow: var(--lb-shadow);
}

.g2048-lb-champion::after {
  content: "";
  position: absolute;
  top: -44px;
  right: -44px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
}

.g2048-lb-champion__medal {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  font-size: 18px;
}

.g2048-lb-champion__label {
  color: #e2d9d0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.g2048-lb-champion strong {
  margin-top: 6px;
  font-size: 18px;
  line-height: 1.25;
}

.g2048-lb-champion b {
  margin-top: 4px;
  font-size: 28px;
  line-height: 1.05;
}

.g2048-lb-champion small {
  margin-top: 7px;
  color: #e2d9d0;
  font-size: 12px;
  line-height: 1.4;
}

.g2048-lb-content {
  padding-bottom: 48px;
}

.g2048-lb-filter-group {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
}

.g2048-lb-filter-group + .g2048-lb-filter-group {
  margin-top: -1px;
}

.g2048-lb-filter-label {
  padding-top: 12px;
  color: var(--lb-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .045em;
  line-height: 1.3;
  text-transform: uppercase;
}

.g2048-lb-tabs {
  display: flex;
  gap: 6px;
  overflow: auto;
  padding: 2px 0 10px;
  scrollbar-width: none;
}

.g2048-lb-tabs::-webkit-scrollbar {
  display: none;
}

.g2048-lb-tabs a {
  flex: 0 0 auto;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid var(--lb-line);
  border-radius: 10px;
  background: var(--lb-card);
  color: var(--lb-ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}

.g2048-lb-mode-tabs a {
  min-width: 52px;
}

.g2048-lb-tabs a:hover,
.g2048-lb-tabs a:focus-visible {
  background: #f7f2e9;
}

.g2048-lb-tabs a[aria-current="page"] {
  border-color: var(--lb-brand);
  background: var(--lb-brand);
  color: #fff;
}

.g2048-lb-panel {
  overflow: hidden;
  margin-top: 8px;
  border: 1px solid var(--lb-line);
  border-radius: 18px;
  background: var(--lb-card);
  box-shadow: var(--lb-shadow);
}

.g2048-lb-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 22px 18px;
  border-bottom: 1px solid var(--lb-line);
}

.g2048-lb-panel__head h2 {
  margin: 4px 0;
  color: #5e554d;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
}

.g2048-lb-panel__head p {
  max-width: 760px;
  margin: 0;
  color: var(--lb-muted);
  font-size: 13px;
  line-height: 1.6;
}

.g2048-lb-panel__head--simple {
  padding-bottom: 14px;
}

.g2048-lb-your-rank {
  flex: 0 0 240px;
  padding: 12px 14px;
  border: 1px solid rgba(119, 110, 101, .10);
  border-radius: 12px;
  background: var(--lb-soft);
}

.g2048-lb-your-rank span,
.g2048-lb-your-rank small {
  display: block;
}

.g2048-lb-your-rank span {
  color: var(--lb-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.g2048-lb-your-rank strong {
  display: block;
  margin: 2px 0;
  color: #5f564e;
  font-size: 24px;
  line-height: 1.1;
}

.g2048-lb-your-rank small {
  color: var(--lb-muted);
  font-size: 11px;
  line-height: 1.35;
}

.g2048-lb-table-wrap {
  padding: 0 18px 10px;
}

.g2048-lb-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
  color: var(--lb-ink);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.g2048-lb-table thead th {
  padding: 2px 12px 8px;
  color: var(--lb-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  text-align: left;
}

.g2048-lb-table thead th:last-child {
  text-align: right;
}

.g2048-lb-table tbody tr {
  background: var(--lb-soft-2);
}

.g2048-lb-table td {
  padding: 16px 12px;
  vertical-align: middle;
  border-top: 1px solid rgba(119, 110, 101, .08);
  border-bottom: 1px solid rgba(119, 110, 101, .08);
  white-space: nowrap;
}

.g2048-lb-table td:first-child {
  border-left: 1px solid rgba(119, 110, 101, .08);
  border-radius: 14px 0 0 14px;
}

.g2048-lb-table td:last-child {
  border-right: 1px solid rgba(119, 110, 101, .08);
  border-radius: 0 14px 14px 0;
  text-align: right;
}

.g2048-lb-table tbody tr:hover td {
  background: #f8f2e7;
}

.g2048-lb-rank {
  width: 42px;
  height: 42px;
  min-width: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #eee5db;
  color: #655b52;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

.g2048-lb-top-1 .g2048-lb-rank { background: #f5df89; }
.g2048-lb-top-2 .g2048-lb-rank { background: #e5e0da; }
.g2048-lb-top-3 .g2048-lb-rank { background: #ecd6c1; }
.g2048-lb-top-1 td { background: rgba(245, 223, 137, .16); }
.g2048-lb-top-2 td { background: rgba(229, 224, 218, .56); }
.g2048-lb-top-3 td { background: rgba(236, 214, 193, .36); }

.g2048-lb-player {
  display: block;
  color: #5c534b;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.g2048-lb-player-meta,
.g2048-lb-score-meta {
  display: block;
  margin-top: 3px;
  color: var(--lb-muted);
  font-size: 11px;
  line-height: 1.4;
  white-space: normal;
}

.g2048-lb-country {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 76px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #fff;
  color: #5f564e;
  font-size: 18px;
  font-weight: 700;
}

.g2048-lb-country small {
  color: var(--lb-muted);
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.g2048-lb-country.is-empty {
  justify-content: center;
  color: #b2a79d;
}

.g2048-lb-score {
  display: block;
  color: var(--lb-orange);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.15;
}

.g2048-lb-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 6px 18px 20px;
  flex-wrap: wrap;
}

.g2048-lb-pagination__pages {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.g2048-lb-page-btn {
  min-width: 44px;
}

.g2048-lb-empty {
  padding: 34px 20px;
  text-align: center;
}

.g2048-lb-empty p {
  max-width: 540px;
  margin: 0 auto 14px;
  color: var(--lb-muted);
  font-size: 14px;
  line-height: 1.6;
}

.g2048-lb-country-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0 20px 20px;
}

.g2048-lb-country-card {
  padding: 14px;
  border: 1px solid var(--lb-line);
  border-radius: 14px;
  background: #fbf8f2;
}

.g2048-lb-country-card__head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
}

.g2048-lb-country-card__rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: 10px;
  background: #efe6dc;
  color: #695f56;
  font-size: 12px;
  font-weight: 700;
}

.g2048-lb-country-card strong {
  color: #5f564e;
  font-size: 15px;
}

.g2048-lb-country-card span:last-child,
.g2048-lb-country-card small {
  color: var(--lb-muted);
  font-size: 11px;
}

.g2048-lb-country-card__bar {
  margin-top: 10px;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: #ece3d8;
}

.g2048-lb-country-card__bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #8f7f70 0%, #f0673b 100%);
}

.g2048-lb-country-card small {
  display: block;
  margin-top: 8px;
}

.g2048-lb-achievements[hidden] {
  display: none !important;
}

.g2048-lb-achievements__summary {
  flex: 0 0 auto;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--lb-soft);
  color: var(--lb-brand-dark);
  font-size: 12px;
  line-height: 1.35;
}

.g2048-lb-achievement-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 0 20px 20px;
}

.g2048-lb-achievement {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--lb-line);
  border-radius: 10px;
  background: #fbf8f2;
  color: var(--lb-muted);
}

.g2048-lb-achievement__icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #ebe6df;
  color: #8a8179;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

.g2048-lb-achievement strong {
  display: block;
  overflow: hidden;
  color: #6f6760;
  font-size: 12px;
  line-height: 1.3;
  text-overflow: ellipsis;
}

.g2048-lb-achievement__progress {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.g2048-lb-achievement__check {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #eee9e3;
  color: #aaa19a;
  font-size: 10px;
  font-weight: 700;
}

.g2048-lb-achievement.is-unlocked {
  border-color: rgba(110, 141, 70, .28);
  background: #f8fbf3;
  color: #657a4c;
}

.g2048-lb-achievement.is-unlocked .g2048-lb-achievement__icon {
  background: #e5efd9;
  color: #617c42;
}

.g2048-lb-achievement.is-unlocked strong {
  color: #52683a;
}

.g2048-lb-achievement.is-unlocked .g2048-lb-achievement__check {
  background: #6e8d46;
  color: #fff;
}

.g2048-lb-recent {
  margin-top: 18px;
}

.g2048-lb-champion-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  padding: 0 20px 20px;
}

.g2048-lb-champion-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--lb-line);
  border-radius: 10px;
  background: #fbf8f2;
}

.g2048-lb-champion-card time {
  color: var(--lb-muted);
  font-size: 10px;
}

.g2048-lb-champion-card strong {
  overflow: hidden;
  margin-top: 5px;
  color: #625850;
  font-size: 13px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.g2048-lb-champion-card b {
  margin-top: 2px;
  color: #5f564e;
  font-size: 18px;
  line-height: 1.2;
}

.g2048-lb-champion-card span {
  margin-top: 2px;
  color: var(--lb-muted);
  font-size: 10px;
}

.g2048-lb-fair {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 18px;
  padding: 20px;
  border-radius: 16px;
  background: linear-gradient(180deg, #655b52 0%, #5b524b 100%);
  color: #fff;
  box-shadow: var(--lb-shadow);
}

.g2048-lb-fair > div {
  max-width: 760px;
}

.g2048-lb-fair h2 {
  margin: 6px 0 5px;
  font-size: 20px;
  line-height: 1.25;
}

.g2048-lb-fair p {
  margin: 0;
  color: #ded5cd;
  font-size: 13px;
  line-height: 1.55;
}

.g2048-lb-fair .g2048-lb-btn {
  flex: 0 0 auto;
}

@media (max-width: 920px) {
  .g2048-lb-panel__head,
  .g2048-lb-fair {
    align-items: flex-start;
    flex-direction: column;
  }

  .g2048-lb-your-rank,
  .g2048-lb-achievements__summary {
    width: 100%;
    box-sizing: border-box;
    flex-basis: auto;
  }

  .g2048-lb-achievement-grid,
  .g2048-lb-champion-grid,
  .g2048-lb-country-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .g2048-lb-shell {
    width: min(100% - 24px, var(--g2048-shell-width, 1120px));
  }

  .g2048-lb-hero {
    padding: 24px 0 16px;
  }

  .g2048-lb-hero > .g2048-lb-shell {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .g2048-lb-hero h1 {
    margin: 6px 0 8px;
    font-size: 29px;
    line-height: 1.06;
  }

  .g2048-lb-hero p {
    font-size: 14px;
    line-height: 1.55;
  }

  .g2048-lb-hero__actions {
    margin-top: 13px;
  }

  .g2048-lb-champion {
    display: none;
  }

  .g2048-lb-filter-group {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .g2048-lb-filter-label {
    padding: 7px 2px 3px;
    font-size: 10px;
  }

  .g2048-lb-tabs {
    gap: 5px;
    padding-bottom: 8px;
  }

  .g2048-lb-tabs a {
    min-height: 34px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 12px;
  }

  .g2048-lb-panel {
    border-radius: 14px;
  }

  .g2048-lb-panel__head {
    gap: 10px;
    padding: 16px 14px 14px;
  }

  .g2048-lb-panel__head h2 {
    font-size: 20px;
  }

  .g2048-lb-panel__head p {
    font-size: 12px;
  }

  .g2048-lb-your-rank {
    padding: 10px 11px;
  }

  .g2048-lb-table-wrap {
    padding: 0 12px 8px;
  }

  .g2048-lb-table {
    border-spacing: 0 8px;
  }

  .g2048-lb-table thead {
    display: none;
  }

  .g2048-lb-table,
  .g2048-lb-table tbody,
  .g2048-lb-table tr,
  .g2048-lb-table td {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }

  .g2048-lb-table tbody tr {
    padding: 10px 12px;
    border: 1px solid rgba(119, 110, 101, .08);
    border-radius: 14px;
    background: var(--lb-soft-2);
  }

  .g2048-lb-table td {
    padding: 0;
    border: 0;
    background: transparent !important;
    white-space: normal;
  }

  .g2048-lb-table td + td {
    margin-top: 8px;
  }

  .g2048-lb-table td:first-child,
  .g2048-lb-table td:last-child {
    border-radius: 0;
    text-align: left;
  }

  .g2048-lb-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    color: var(--lb-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
  }

  .g2048-lb-table td:first-child::before {
    content: none;
  }

  .g2048-lb-rank {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 10px;
    font-size: 16px;
  }

  .g2048-lb-player {
    font-size: 14px;
  }

  .g2048-lb-country {
    min-width: 0;
    width: fit-content;
    font-size: 16px;
  }

  .g2048-lb-score {
    font-size: 17px;
  }

  .g2048-lb-pagination {
    gap: 8px;
    padding: 2px 12px 14px;
  }

  .g2048-lb-pagination__pages {
    gap: 6px;
  }

  .g2048-lb-page-btn {
    min-width: 40px;
    min-height: 38px;
    padding: 0 12px;
    font-size: 13px;
  }

  .g2048-lb-achievement-grid,
  .g2048-lb-champion-grid,
  .g2048-lb-country-list {
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 0 12px 12px;
  }

  .g2048-lb-achievement {
    grid-template-columns: 32px minmax(0, 1fr) 20px;
    padding: 9px;
  }

  .g2048-lb-achievement__icon {
    width: 32px;
    height: 32px;
  }

  .g2048-lb-champion-card {
    padding: 10px;
  }

  .g2048-lb-fair {
    gap: 14px;
    padding: 16px 14px;
    border-radius: 12px;
  }

  .g2048-lb-fair h2 {
    font-size: 18px;
  }

  .g2048-lb-fair .g2048-lb-btn {
    width: 100%;
    box-sizing: border-box;
  }
}

@media (prefers-reduced-motion: reduce) {
  .g2048-lb-btn,
  .g2048-lb-page-btn {
    transition: none !important;
  }
}


/* v6.9.13 — natural starter entries + game-relevant tile column. */
.g2048-lb-tile-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 66px;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 10px;
  background: #efe7dc;
  color: #655b52;
  font-size: 14px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.g2048-lb-starter-note {
  margin: 4px 18px 16px;
  padding: 0;
  color: #9b9086;
  font-size: 10px;
  line-height: 1.45;
  text-align: center;
}

.g2048-lb-starter-row .g2048-lb-player-meta {
  color: #8f8378;
}

@media (max-width: 760px) {
  .g2048-lb-starter-note {
    margin: 2px 12px 14px;
    font-size: 9.5px;
  }

  .g2048-lb-tile-value {
    min-width: 0;
    min-height: 30px;
    padding: 0 9px;
    font-size: 13px;
  }
}

/* Keep the two numeric columns compact so the player name remains the visual focus. */
.g2048-lb-table th:nth-child(1),
.g2048-lb-table td:nth-child(1) { width: 72px; }
.g2048-lb-table th:nth-child(3),
.g2048-lb-table td:nth-child(3) { width: 112px; }
.g2048-lb-table th:nth-child(4),
.g2048-lb-table td:nth-child(4) { width: 138px; }

@media (max-width: 760px) {
  .g2048-lb-table th:nth-child(1),
  .g2048-lb-table td:nth-child(1),
  .g2048-lb-table th:nth-child(3),
  .g2048-lb-table td:nth-child(3),
  .g2048-lb-table th:nth-child(4),
  .g2048-lb-table td:nth-child(4) { width: auto; }
}

/* v6.9.15 — compact disclosure + stronger podium hierarchy. */
.g2048-lb-starter-note {
  display: none !important;
}

.g2048-lb-ranking-panel .g2048-lb-panel__head h2 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.g2048-lb-ranking-info {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(119, 110, 101, .16);
  border-radius: 50%;
  background: #f7f2e9;
  color: #9a8f85;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  cursor: help;
}

.g2048-lb-ranking-info:focus-visible {
  outline: 2px solid rgba(119, 110, 101, .42);
  outline-offset: 2px;
}

/* Podium rows: premium but still inside the theme's warm neutral palette. */
.g2048-lb-table tbody tr.g2048-lb-top-1 td {
  background: #fff7dc;
  border-top-color: rgba(205, 158, 38, .24);
  border-bottom-color: rgba(205, 158, 38, .24);
}

.g2048-lb-table tbody tr.g2048-lb-top-2 td {
  background: #f2f0ed;
  border-top-color: rgba(126, 126, 126, .18);
  border-bottom-color: rgba(126, 126, 126, .18);
}

.g2048-lb-table tbody tr.g2048-lb-top-3 td {
  background: #f8eee5;
  border-top-color: rgba(168, 102, 56, .18);
  border-bottom-color: rgba(168, 102, 56, .18);
}

.g2048-lb-table tbody tr.g2048-lb-top-1 td:first-child {
  border-left-color: rgba(205, 158, 38, .24);
  box-shadow: inset 4px 0 0 #d6aa37;
}

.g2048-lb-table tbody tr.g2048-lb-top-2 td:first-child {
  border-left-color: rgba(126, 126, 126, .18);
  box-shadow: inset 4px 0 0 #aaa49d;
}

.g2048-lb-table tbody tr.g2048-lb-top-3 td:first-child {
  border-left-color: rgba(168, 102, 56, .18);
  box-shadow: inset 4px 0 0 #b77a50;
}

.g2048-lb-table tbody tr.g2048-lb-top-1 td:last-child { border-right-color: rgba(205, 158, 38, .24); }
.g2048-lb-table tbody tr.g2048-lb-top-2 td:last-child { border-right-color: rgba(126, 126, 126, .18); }
.g2048-lb-table tbody tr.g2048-lb-top-3 td:last-child { border-right-color: rgba(168, 102, 56, .18); }

.g2048-lb-top-1 .g2048-lb-rank,
.g2048-lb-top-2 .g2048-lb-rank,
.g2048-lb-top-3 .g2048-lb-rank {
  width: 46px;
  height: 46px;
  min-width: 46px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 14px;
  font-size: 21px;
  box-shadow: 0 4px 12px rgba(119, 110, 101, .10);
}

.g2048-lb-top-1 .g2048-lb-rank {
  background: linear-gradient(180deg, #f9df79 0%, #e8bf43 100%);
  color: #6a5110;
}

.g2048-lb-top-2 .g2048-lb-rank {
  background: linear-gradient(180deg, #eeece9 0%, #d3cfca 100%);
  color: #655f59;
}

.g2048-lb-top-3 .g2048-lb-rank {
  background: linear-gradient(180deg, #edd2bb 0%, #d6a579 100%);
  color: #70482d;
}

.g2048-lb-top-1 .g2048-lb-player {
  color: #725817;
  font-weight: 800;
}

.g2048-lb-top-2 .g2048-lb-player,
.g2048-lb-top-3 .g2048-lb-player {
  font-weight: 800;
}

.g2048-lb-top-1 .g2048-lb-score { color: #b37e08; }
.g2048-lb-top-2 .g2048-lb-score { color: #6f6a65; }
.g2048-lb-top-3 .g2048-lb-score { color: #a45f34; }

.g2048-lb-top-1 .g2048-lb-tile-value {
  background: #f5e5a6;
  color: #765c17;
}
.g2048-lb-top-2 .g2048-lb-tile-value {
  background: #e7e4e0;
  color: #625d58;
}
.g2048-lb-top-3 .g2048-lb-tile-value {
  background: #ecd8c7;
  color: #744c31;
}

@media (max-width: 760px) {
  .g2048-lb-table tbody tr.g2048-lb-top-1 {
    background: #fff7dc;
    border-color: rgba(205, 158, 38, .24);
    box-shadow: inset 4px 0 0 #d6aa37;
  }
  .g2048-lb-table tbody tr.g2048-lb-top-2 {
    background: #f2f0ed;
    border-color: rgba(126, 126, 126, .18);
    box-shadow: inset 4px 0 0 #aaa49d;
  }
  .g2048-lb-table tbody tr.g2048-lb-top-3 {
    background: #f8eee5;
    border-color: rgba(168, 102, 56, .18);
    box-shadow: inset 4px 0 0 #b77a50;
  }

  .g2048-lb-top-1 .g2048-lb-rank,
  .g2048-lb-top-2 .g2048-lb-rank,
  .g2048-lb-top-3 .g2048-lb-rank {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 11px;
    font-size: 18px;
  }
}
