﻿/* =========================================================
   BoomArena — Leaderboard v3.0 "HALL OF FAME"
   ========================================================= */

.lb3-page {
  min-height: 100vh;
  padding-top: var(--nav-height);
  background: #060610;
  color: #e0e0f8;
  position: relative;
  overflow-x: hidden;
}

/* Header */
.lb3-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 3rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.lb3-header-center { text-align: center; flex: 1; }
.lb3-header-right { min-width: 80px; }
.lb3-title-tag {
  font-family: var(--font-display);
  font-size: 0.5rem;
  letter-spacing: 0.35em;
  color: rgba(0,229,255,0.5);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.lb3-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 900;
  letter-spacing: 0.05em;
  color: #fff;
  text-shadow: 0 0 30px rgba(0,229,255,0.25);
  margin: 0 0 6px;
}
.lb3-subtitle {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  margin: 0;
}

.lb3-back-btn {
  font-family: var(--font-display);
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.5);
  background: transparent;
  border: 1px solid rgba(255,255,255,0.12);
  padding: 8px 16px;
  cursor: pointer;
  transition: all 0.2s;
  min-width: 80px;
}
.lb3-back-btn:hover { border-color: rgba(0,229,255,0.4); color: #00e5ff; }

/* Tabs */
.lb3-tabs-wrap {
  display: flex;
  justify-content: center;
  padding: 1.5rem 3rem 0;
}
.lb3-tabs { display: flex; gap: 2px; }
.lb3-tab {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 9px 20px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all 0.2s;
}
.lb3-tab:hover { color: rgba(255,255,255,0.75); border-color: rgba(0,229,255,0.2); }
.lb3-tab.active { background: rgba(0,229,255,0.08); border-color: rgba(0,229,255,0.4); color: #00e5ff; }
.lb3-tab-icon { font-size: 0.85rem; }

/* Table */
.lb3-container { max-width: 860px; margin: 1.5rem auto 4rem; padding: 0 2rem; }
.lb3-table { border: 1px solid rgba(255,255,255,0.07); overflow: hidden; }
.lb3-table-head {
  display: grid;
  grid-template-columns: 80px 1fr 160px 100px;
  padding: 12px 20px;
  background: rgba(0,0,0,0.4);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.lb3-th {
  font-family: var(--font-display);
  font-size: 0.5rem;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
}
.lb3-th-score,.lb3-th-level { text-align: right; }

/* Rows */
.lb3-row {
  display: grid;
  grid-template-columns: 80px 1fr 160px 100px;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  background: #080818;
  transition: background 0.15s;
  animation: row-in 0.35s both;
  animation-delay: var(--delay,0ms);
}
.lb3-row:last-child { border-bottom: none; }
.lb3-row:hover { background: rgba(255,255,255,0.035); }
@keyframes row-in { from{opacity:0;transform:translateX(-12px)} to{opacity:1;transform:none} }

/* Top 3 */
.lb3-row-top { background: rgba(255,255,255,0.025); }
.lb3-rank-1 { border-left: 3px solid #ffd700; }
.lb3-rank-2 { border-left: 3px solid #aab8c2; }
.lb3-rank-3 { border-left: 3px solid #cd7f32; }
.lb3-row-me { background: rgba(0,229,255,0.06) !important; border-left: 3px solid rgba(0,229,255,0.5) !important; }

.lb3-rank-cell { display: flex; align-items: center; justify-content: center; }
.lb3-medal { font-size: 1.4rem; }
.lb3-rank-num {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(255,255,255,0.3);
}

.lb3-player-cell { display: flex; align-items: center; gap: 12px; }
.lb3-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}
.lb3-player-name {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: #e0e0f8;
}
.lb3-you {
  font-family: var(--font-display);
  font-size: 0.48rem;
  letter-spacing: 0.1em;
  color: #00e5ff;
  border: 1px solid rgba(0,229,255,0.4);
  padding: 1px 6px;
  margin-left: 6px;
  vertical-align: middle;
}

.lb3-score-cell {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  text-align: right;
}
.lb3-level-cell { text-align: right; }
.lb3-lv-badge {
  font-family: var(--font-display);
  font-size: 0.52rem;
  letter-spacing: 0.1em;
  color: rgba(185,69,255,0.8);
  border: 1px solid rgba(185,69,255,0.3);
  padding: 2px 8px;
}

/* Loading / empty */
.lb3-loading {
  display: flex; align-items: center; gap: 12px;
  justify-content: center;
  padding: 3rem;
  font-family: var(--font-display);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
}
.lb3-loading-spinner {
  width: 18px; height: 18px;
  border: 2px solid rgba(0,229,255,0.2);
  border-top-color: #00e5ff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.lb3-empty { text-align: center; padding: 4rem 2rem; color: rgba(255,255,255,0.3); }
.lb3-empty-icon { font-size: 2.5rem; display: block; margin-bottom: 1rem; }

@media (max-width: 600px) {
  .lb3-header { padding: 1.5rem 1rem 1rem; flex-direction: column; gap: 1rem; text-align: center; }
  .lb3-table-head { grid-template-columns: 60px 1fr 100px; }
  .lb3-row { grid-template-columns: 60px 1fr 100px; }
  .lb3-th-level,.lb3-level-cell { display: none; }
}
@media (max-width: 480px) {
  .lb3-container { padding: 0 0.75rem; }
  .lb3-tabs-wrap { padding: 0 0.75rem; }
  .lb3-tabs { gap: 0; }
  .lb3-tab { padding: 9px 10px; font-size: 0.55rem; }
  .lb3-tab-icon { display: none; }
  .lb3-table-head { grid-template-columns: 48px 1fr 88px; padding: 10px 12px; }
  .lb3-row { grid-template-columns: 48px 1fr 88px; padding: 11px 12px; }
  .lb3-rank { font-size: 0.75rem; }
  .lb3-player-name { font-size: 0.75rem; }
  .lb3-score-cell { font-size: 0.72rem; }
  .lb3-medal { font-size: 1.1rem; }
}