/* CargoX Adventures — leaderboard UI (added for site integration).
   Scoped to .lb-* so it won't clash with the game's own style.css. */

.lb-block {
    margin-top: 18px;
    width: 100%;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}
.lb-title {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    letter-spacing: 1px;
    text-align: center;
    margin: 0 0 10px;
    color: #7cd15a;
}
.lb-submit {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}
.lb-nick {
    flex: 1;
    min-width: 0;
    padding: 9px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
}
.lb-nick:focus { outline: none; border-color: #7cd15a; }
.lb-save-btn { flex: 0 0 auto; padding-left: 16px; padding-right: 16px; }
.lb-msg {
    min-height: 16px;
    font-size: 12px;
    color: #a7f3d0;
    text-align: center;
    margin-bottom: 8px;
}
.lb-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 240px;
    overflow-y: auto;
}
.lb-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.03);
    margin-bottom: 4px;
}
.lb-row.lb-me {
    background: rgba(124, 209, 90, 0.18);
    box-shadow: inset 0 0 0 1px rgba(124, 209, 90, 0.5);
}
.lb-rank { flex: 0 0 28px; text-align: center; font-weight: 700; color: #cbd5e1; }
.lb-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #fff;
}
.lb-score { flex: 0 0 auto; font-weight: 700; color: #7cd15a; font-variant-numeric: tabular-nums; }
.lb-empty { color: rgba(255, 255, 255, 0.5); font-size: 13px; text-align: center; padding: 10px; }

/* Start-menu variant: read-only, a touch more compact. */
.lb-block-menu { margin-top: 14px; max-width: 100%; }
.lb-block-menu .lb-list { max-height: 48vh; }
