.lb-card { width: 100%; max-width: 560px; }

.lb-tabs { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 4px 0 16px; }
.lb-tab {
  font: 600 13px system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: #cfc3d6; background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 999px;
  padding: 7px 13px; cursor: pointer;
}
.lb-tab[aria-selected="true"] { color: #0a0710; background: #00e5ff; border-color: #00e5ff; }

.lb-me {
  font: 14px/1.5 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: #e6dcec; margin: 0 0 14px; min-height: 21px;
}
.lb-me strong { color: #ffe600; }
.lb-me a { color: #00e5ff; }

.lb-table-wrap { overflow-x: auto; }
.lb-table {
  width: 100%; border-collapse: collapse;
  font: 15px system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; color: #e6dcec;
}
.lb-table th {
  font-weight: 600; font-size: 12px; letter-spacing: .6px; text-transform: uppercase;
  color: #8f8199; text-align: left; padding: 6px 8px; border-bottom: 1px solid rgba(255,255,255,.12);
}
.lb-table td { text-align: left; padding: 9px 8px; border-bottom: 1px solid rgba(255,255,255,.06); }
.lb-table th:first-child, .lb-table td:first-child { width: 40px; text-align: center; }
.lb-table th:last-child, .lb-table td:last-child { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lb-table tr.is-me td { background: rgba(255, 230, 0, 0.1); color: #ffe600; }
.lb-nick { overflow-wrap: anywhere; }
.lb-empty { text-align: center !important; color: #8f8199; padding: 22px 8px !important; }

.lb-actions { display: flex; gap: 10px; justify-content: center; margin: 20px 0 12px; }
.lb-note { font: 12px/1.5 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; color: #8f8199; }
.lb-back { margin-top: 18px; }
.lb-back a { font: 14px system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; color: #cfc3d6; text-decoration: none; }
.lb-back a:hover { color: #fff; }

/* avatar accanto al nickname */
.lb-who { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.lb-av { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex-shrink: 0; box-shadow: 0 0 0 2px rgba(255,255,255,.15); }
.lb-table tr.is-me .lb-av { box-shadow: 0 0 0 2px #ffe600; }

.lb-limit {
  font: 600 12px/1.4 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  letter-spacing: .4px; color: #8f8199; margin: 0 0 8px;
}

/* ===================== PODIO (primi 3) ===================== */
.lb-podium {
  list-style: none; margin: 8px 0 22px; padding: 0;
  display: flex; justify-content: center; align-items: flex-end; gap: 8px;
}
.lb-podium > .lb-pod { flex: 1 1 0; max-width: 33%; }
.lb-podium > .lb-pod--1 { flex-grow: 1.15; max-width: 37%; }
.lb-podium[hidden] { display: none; }
.lb-pod {
  --c: #d9e2ec;
  display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0;
  padding: 26px 6px 14px; border-radius: 16px 16px 10px 10px;
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  border: 2px solid rgba(255,255,255,.08);
}
.lb-pod--1 { --c: #ffe600; padding-top: 30px; padding-bottom: 26px; border-color: rgba(255,230,0,.35); background: linear-gradient(180deg, rgba(255,230,0,.14), rgba(255,230,0,.02)); }
.lb-pod--2 { --c: #d9e2ec; }
.lb-pod--3 { --c: #ff9f5a; }
.lb-pod.is-me { border-color: #00e5ff; }

.lb-pod-avwrap { position: relative; display: inline-block; line-height: 0; margin-bottom: 10px; }
.lb-pod-av {
  width: 74px; height: 74px; border-radius: 50%; object-fit: cover; display: block;
  box-shadow: 0 0 0 3px #0a0710, 0 0 0 6px var(--c);
}
.lb-pod--1 .lb-pod-av { width: 96px; height: 96px; box-shadow: 0 0 0 3px #0a0710, 0 0 0 6px var(--c), 0 0 22px rgba(255,230,0,.5); }
.lb-pod-rank {
  position: absolute; left: 50%; bottom: -12px; transform: translateX(-50%);
  min-width: 34px; padding: 3px 7px; border-radius: 999px;
  font: 22px/1 'Bangers', cursive; letter-spacing: 1px; text-align: center;
  color: #0a0710; background: var(--c); box-shadow: 0 3px 0 #000;
}
.lb-pod-name {
  margin-top: 6px; max-width: 100%;
  font: 700 15px/1.25 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lb-pod--1 .lb-pod-name { font-size: 17px; color: #ffe600; }
.lb-pod-score {
  font: 600 14px system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--c); font-variant-numeric: tabular-nums;
}
@media (max-width: 420px) {
  .lb-podium { gap: 5px; }
  .lb-pod { padding-left: 2px; padding-right: 2px; }
  .lb-pod-av { width: 60px; height: 60px; }
  .lb-pod--1 .lb-pod-av { width: 78px; height: 78px; }
  .lb-pod-name { font-size: 12px; letter-spacing: -.2px; }
  .lb-pod--1 .lb-pod-name { font-size: 13px; }
  .lb-pod-score { font-size: 12px; }
}
