/* Leaderboard page styles — v1.0.0 */

.lb-page {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

.lb-header-nav {
  padding: 16px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.lb-back {
  color: var(--text2);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: color 0.15s;
}
.lb-back:hover { color: var(--accent); }

.lb-hero {
  text-align: center;
  padding: 24px 0 20px;
}
.lb-hero-icon { font-size: 2.6rem; margin-bottom: 10px; line-height: 1; }
.lb-title {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 4px;
}
.lb-sub {
  font-size: 0.88rem;
  color: var(--text2);
  margin-bottom: 16px;
}
.lb-play-btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 10px 24px;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.15s;
}
.lb-play-btn:hover { background: var(--accent-h); }

/* Tab bar */
.lb-tabs {
  display: flex;
  gap: 6px;
  margin: 24px 0 16px;
  background: var(--surface2);
  padding: 4px;
  border-radius: 12px;
}
.lb-tab {
  flex: 1;
  padding: 9px;
  border-radius: 9px;
  border: none;
  background: transparent;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text2);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}
.lb-tab.active {
  background: var(--surface);
  color: var(--accent);
  box-shadow: 0 1px 6px rgba(0,0,0,0.1);
}

/* Podium */
.lb-podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}
.lb-podium-slot {
  flex: 1;
  max-width: 140px;
  text-align: center;
}
.lb-podium-block {
  border-radius: 10px 10px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 10px 6px;
}
.lb-podium-block.p1 { height: 90px; background: linear-gradient(135deg, #f6d365, #fda085); }
.lb-podium-block.p2 { height: 65px; background: linear-gradient(135deg, #a8b8c8, #c8d8e8); }
.lb-podium-block.p3 { height: 50px; background: linear-gradient(135deg, #d4a574, #c8956b); }
.lb-podium-medal { font-size: 1.3rem; margin-bottom: 2px; }
.lb-podium-score {
  font-size: 0.9rem;
  font-weight: 900;
  color: rgba(0,0,0,0.75);
}
.lb-podium-name {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text2);
  margin-top: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Table */
.lb-table {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.lb-row {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  gap: 12px;
  transition: background 0.1s;
}
.lb-row:last-child { border-bottom: none; }
.lb-row:hover { background: var(--surface2); }
.lb-row.lb-row-you {
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  border-left: 3px solid var(--accent);
}
.lb-rank {
  width: 28px;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text2);
  text-align: center;
  flex-shrink: 0;
}
.lb-rank-medal { font-size: 1rem; }
.lb-player { flex: 1; min-width: 0; }
.lb-player-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lb-player-meta {
  font-size: 0.72rem;
  color: var(--text2);
  margin-top: 1px;
}
.lb-score-col {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--text);
  flex-shrink: 0;
}
.lb-streak-col {
  font-size: 0.78rem;
  color: var(--text2);
  flex-shrink: 0;
}

.lb-your-rank-banner {
  margin-top: 14px;
  padding: 12px 16px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border: 1.5px solid color-mix(in srgb, var(--accent) 25%, transparent);
  border-radius: 12px;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
}
.lb-your-rank-banner span { color: var(--accent); }

.lb-cta-row {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.lb-cta-play {
  flex: 1;
  display: block;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 13px;
  border-radius: 12px;
  text-decoration: none;
  text-align: center;
  transition: background 0.15s;
}
.lb-cta-play:hover { background: var(--accent-h); }
.lb-cta-share {
  flex: 1;
  display: block;
  background: var(--surface2);
  color: var(--text);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 13px;
  border-radius: 12px;
  text-decoration: none;
  text-align: center;
  border: 1px solid var(--border);
  transition: background 0.15s;
}
.lb-cta-share:hover { background: var(--border); }

/* Hidden panels */
.lb-panel { display: none; }
.lb-panel.active { display: block; }
