.lbPage .pageHeader p {
  margin-bottom: 12px;
}

.lbTabs {
  display: inline-flex;
  gap: 8px;
  margin-top: 14px;
  padding: 4px;
  border-radius: 12px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
}

.lbTab {
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .04em;
  cursor: pointer;
}

.lbTab.active {
  background: var(--green-dim);
  color: var(--green);
  box-shadow: inset 0 0 0 1px rgba(61,232,138,.25);
}

.lbPage .brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .8rem;
  color: var(--green);
  text-decoration: none;
}

.podium {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 16px;
  align-items: end;
  margin-bottom: 28px;
  min-height: 220px;
}

.podiumCard {
  border-radius: 16px;
  padding: 20px 16px;
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  animation: podiumIn .6s ease forwards;
  position: relative;
  overflow: hidden;
}

.podiumCard.place-1 {
  background: linear-gradient(180deg, rgba(255,209,102,.2), rgba(255,209,102,.05));
  border: 1px solid rgba(255,209,102,.45);
  animation-delay: .15s;
  order: 2;
}

.podiumCard.place-2 {
  background: linear-gradient(180deg, rgba(192,192,192,.15), rgba(192,192,192,.04));
  border: 1px solid rgba(192,192,192,.35);
  animation-delay: .05s;
  order: 1;
}

.podiumCard.place-3 {
  background: linear-gradient(180deg, rgba(205,127,50,.15), rgba(205,127,50,.04));
  border: 1px solid rgba(205,127,50,.35);
  animation-delay: .25s;
  order: 3;
}

@keyframes podiumIn {
  to { opacity: 1; transform: none; }
}

.podiumCard.place-1::after {
  content: "👑";
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 1.2rem;
  animation: crownBob 2s ease infinite;
}

@keyframes crownBob {
  50% { transform: translateY(-4px) rotate(5deg); }
}

.podiumMedal {
  font-size: 2rem;
  margin-bottom: 8px;
}

.podiumAvatar {
  font-size: 2.4rem;
  margin-bottom: 6px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.4));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-inline: auto;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(0,0,0,.25);
  border: 2px solid rgba(255,255,255,.12);
}

.lbAvatarImg {
  display: block;
  border-radius: 50%;
  object-fit: cover;
  object-position: center center;
}

.podiumAvatar.lbAvatarImg {
  width: 56px;
  height: 56px;
  border: none;
}

.lbSearchAvatar.lbAvatarImg {
  width: 28px;
  height: 28px;
  border: none;
}

.lbListAvatarWrap {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 50%;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.12);
}

.lbListAvatarWrap .lbListAvatar,
.lbListAvatarWrap .lbListAvatar.lbAvatarImg,
.lbListAvatarWrap .lbAvatarEmoji {
  margin: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
}

.lbListAvatarWrap .lbListAvatar.lbAvatarImg {
  border: none;
}

.lbListAvatarWrap .lbAvatarEmoji {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  line-height: 1;
}

.podiumAvatar.lbAvatarEmoji {
  font-size: 2rem;
  line-height: 1;
}

.lbSearchAvatar {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  overflow: hidden;
  border-radius: 50%;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.12);
}

.lbSearchAvatar.lbAvatarEmoji {
  font-size: 1rem;
  line-height: 1;
}

.lbPlayerMain {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.lbPlayerText {
  min-width: 0;
  flex: 1;
}

.lbPlayerText .name {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lbPlayerExtra {
  display: block;
  margin-top: 2px;
  font-size: .75rem;
  color: var(--muted);
}

.lbSearchWrap {
  position: relative;
  max-width: 360px;
  margin: 16px auto 0;
}

.lbSearch {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(0,0,0,.35);
  color: var(--text);
  font-size: .9rem;
}

.lbSearchResults {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 20;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #0a1018;
  box-shadow: 0 12px 32px rgba(0,0,0,.45);
  max-height: 280px;
  overflow: auto;
}

.lbSearchRow {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.lbSearchRow:hover { background: rgba(61,232,138,.08); }

.lbSearchName { font-weight: 700; flex: 1; }
.lbSearchMeta { font-size: .75rem; color: var(--muted); }
.lbSearchEmpty { padding: 12px; color: var(--muted); font-size: .85rem; }

.lbClickable { cursor: pointer; transition: transform .12s, box-shadow .12s; }
.lbClickable:hover { transform: translateY(-2px); }
.lbRest .leaderList li.lbClickable:hover { background: rgba(61,232,138,.06); border-radius: 8px; }

.podiumName {
  font-weight: 800;
  font-size: .95rem;
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.streakBadge {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: .7rem;
  font-weight: 700;
  color: #f9f06b;
  white-space: nowrap;
}

.podiumStats {
  display: flex;
  justify-content: center;
  gap: 12px;
  font-size: .78rem;
  color: var(--muted);
}

.podiumStats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--text);
}

.podiumScore {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  margin-top: 10px;
}

.place-1 .podiumScore { color: var(--yellow); text-shadow: 0 0 16px rgba(255,209,102,.4); }
.place-2 .podiumScore { color: #c0c0c0; }
.place-3 .podiumScore { color: #cd7f32; }

.lbRest .leaderList li {
  opacity: 0;
  animation: rowIn .4s ease forwards;
}

@keyframes rowIn {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: none; }
}

.lbPagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.pageBtn {
  min-width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.03);
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
}

.pageBtn:hover { border-color: var(--green); color: var(--text); }
.pageBtn.active {
  border-color: var(--green);
  background: var(--green-dim);
  color: var(--green);
}

@media (max-width: 640px) {
  .podium {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .podiumCard { order: unset !important; }
}
