/* Leaderboards page — sits on top of style.css (same colours as the menu). */
.lb-head { position: relative; }
.back, .back-btn { color: var(--muted); font-size: 14px; text-decoration: none; background: none; border: 0; padding: 0; }
.back { position: absolute; left: 0; top: 0; }
.back:hover, .back-btn:hover { color: var(--amber); }
.lb-head .kicker { margin-top: 28px; }

.lb-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 620px) { .lb-grid { grid-template-columns: 1fr 1fr; } }
.lb-card {
  --accent: var(--amber);
  display: flex; flex-direction: column; gap: 10px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 7%, var(--panel)), var(--panel) 60%);
  border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 16px;
  padding: 14px; color: var(--bone); text-align: left; font: inherit; cursor: pointer;
  transition: transform .15s, border-color .15s;
}
.lb-card:hover, .lb-card:focus-visible { transform: translateY(-2px); border-color: var(--accent); outline: none; }
.lb-top { display: flex; align-items: center; gap: 12px; }
.lb-icon { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 12px; background: var(--panel-2); display: grid; place-items: center; font-size: 26px; }
.lb-icon img { width: 32px; height: 36px; object-fit: contain; }
.lb-card h2 { font-size: 18px; text-transform: uppercase; letter-spacing: .04em; }
.lb-lab { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.lb-more { font-size: 12px; color: var(--muted); text-align: right; }

.lb-list { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.lb-list li { display: flex; gap: 10px; align-items: baseline; padding: 6px 10px; border-radius: 8px; font-size: 15px; }
.lb-list li:nth-child(odd) { background: rgba(243,237,224,.04); }
.lb-list li .r { width: 36px; flex: 0 0 36px; color: var(--muted); font-variant-numeric: tabular-nums; }
.lb-list li .n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-list li .s { font-weight: 700; font-variant-numeric: tabular-nums; }
.lb-list li.p1 .r::before { content: '🥇'; } .lb-list li.p2 .r::before { content: '🥈'; } .lb-list li.p3 .r::before { content: '🥉'; }
.lb-list li.p1 .r, .lb-list li.p2 .r, .lb-list li.p3 .r { font-size: 0; } 
.lb-list li.p1 .r::before, .lb-list li.p2 .r::before, .lb-list li.p3 .r::before { font-size: 16px; }
.lb-list li.me { background: rgba(251,173,54,.18); outline: 1px solid rgba(251,173,54,.5); }
.lb-list li.empty { color: var(--muted); justify-content: center; background: none; font-size: 14px; }
.lb-list li.gap { background: none; justify-content: center; color: var(--muted); padding: 0; line-height: .8; }
.lb-list.big li { font-size: 17px; padding: 8px 12px; }

.lb-detail { display: flex; flex-direction: column; gap: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.back-btn { align-self: flex-start; cursor: pointer; }
.lb-dhead { display: flex; gap: 14px; align-items: center; }
.lb-dhead .lb-icon { width: 60px; height: 60px; flex-basis: 60px; font-size: 34px; }
.lb-dhead .lb-icon img { width: 44px; height: 50px; }
.lb-dhead h2 { font-size: 24px; text-transform: uppercase; letter-spacing: .04em; }
.lb-dhead .play { font-size: 14px; font-weight: 700; }
.lb-detail .chips { justify-content: flex-start; }
.lb-note { color: var(--muted); font-size: 13px; }
.lb-rules { color: var(--muted); font-size: 13px; text-align: center; line-height: 1.5; }
.chips select.chip { appearance: none; color: var(--bone); }
.lb-list li .lb-flag { background: none; border: 0; padding: 0 0 0 6px; color: var(--muted); font: inherit; font-size: 12px; opacity: .65; cursor: pointer; white-space: nowrap; }
.lb-list li .lb-flag:hover, .lb-list li .lb-flag:focus-visible { opacity: 1; color: #ff8a7a; }
.lb-list li .chip { font-size: 12px; padding: 3px 9px; }

/* Weekly top 10 (the Chamber prize race) */
.lb-weekly { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; background: linear-gradient(180deg, rgba(251,173,54,.09), var(--panel) 55%); border: 1px solid var(--line); border-top: 3px solid var(--amber); border-radius: 18px; padding: 16px; }
.lb-whead { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; justify-content: space-between; }
.lb-whead .lb-lab { color: var(--amber); }
.lb-whead h2 { font-size: 22px; text-transform: uppercase; letter-spacing: .04em; }
.lb-weekly .chips { justify-content: flex-start; }
.lb-list li .prize { flex: 0 0 auto; font-size: 12px; font-weight: 700; letter-spacing: .03em; padding: 2px 9px; border-radius: 999px; white-space: nowrap; color: #1c1b1a; align-self: center; }
.lb-list li .prize.g1 { background: linear-gradient(180deg, #ffd56a, #fbad36); }
.lb-list li .prize.g2 { background: linear-gradient(180deg, #eef0f2, #b9bec4); }
.lb-list li .prize.g3 { background: linear-gradient(180deg, #f0b98a, #c98048); }
@media (max-width: 420px) { .lb-list li .prize { font-size: 11px; padding: 2px 7px; } }
