/* ══════════════════════════════════════════════════════════════
   leaderboard.css — game page, leaderboard games only
   (guest prompt, score toast, top-10 panel). All classes lbg-*.
   ══════════════════════════════════════════════════════════════ */

/* ── Guest prompt ─────────────────────────────────────────── */
.lbg-modal {
    position: fixed; inset: 0; z-index: 10050;
    display: flex; align-items: center; justify-content: center;
    padding: 16px;
    background: rgba(8, 10, 24, .72);
    backdrop-filter: blur(4px);
}
.lbg-modal__box {
    width: 100%; max-width: 400px;
    padding: 28px 24px 22px;
    border-radius: 16px;
    text-align: center;
    color: #fff;
    background: linear-gradient(160deg, #2b2f5c 0%, #1a1c38 100%);
    border: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
}
.lbg-modal__trophy { font-size: 44px; line-height: 1; margin-bottom: 10px; }
.lbg-modal__title  { margin: 0 0 8px; font-size: 20px; font-weight: 800; line-height: 1.25; }
.lbg-modal__text   { margin: 0 0 20px; font-size: 14px; line-height: 1.5; opacity: .85; }
.lbg-modal__actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

.lbg-btn {
    flex: 1 1 140px;
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 44px; padding: 0 18px;
    border-radius: 999px;
    font: inherit; font-size: 15px; font-weight: 700;
    text-decoration: none; cursor: pointer;
    border: 0;
}
.lbg-btn--primary { color: #1a1300; background: linear-gradient(135deg, #ffd54a, #ffab1a); }
.lbg-btn--primary:hover { filter: brightness(1.07); }
.lbg-btn--ghost { color: #fff; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .25); }
.lbg-btn--ghost:hover { background: rgba(255, 255, 255, .18); }
.lbg-btn:focus-visible { outline: 3px solid #8fb4ff; outline-offset: 2px; }

/* ── Score toast (inside the game frame) ──────────────────── */
.lbg-toast {
    position: absolute; left: 50%; top: 14px; z-index: 30;
    max-width: calc(100% - 24px);
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 14px; line-height: 1.35; color: #fff;
    background: rgba(20, 22, 44, .92);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
    opacity: 0; pointer-events: none;
    transform: translate(-50%, -8px);
    transition: opacity .25s ease, transform .25s ease;
}
.lbg-toast.is-on { opacity: 1; pointer-events: auto; transform: translate(-50%, 0); }
.lbg-toast--good { background: linear-gradient(135deg, #1f8a4c, #13663a); }
.lbg-toast--warn { background: rgba(150, 60, 20, .95); }
.lbg-toast a { color: #ffd54a; font-weight: 700; }

/* ── Top-10 panel (under the action bar) ──────────────────── */
.lbg-panel {
    margin: 12px 0;
    padding: 14px 16px;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(160deg, #262a52 0%, #191b36 100%);
    border: 1px solid rgba(255, 255, 255, .08);
}
.lbg-panel__head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; margin-bottom: 8px; }
.lbg-panel__title { margin: 0; font-size: 17px; font-weight: 800; }
.lbg-panel__me { font-size: 13px; opacity: .85; }
.lbg-panel__list {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 4px 16px;
}
.lbg-panel__empty, .lbg-panel__locked { margin: 0; font-size: 14px; opacity: .85; }
.lbg-panel__locked a { color: #ffd54a; font-weight: 700; }
.lbg-row {
    display: flex; align-items: center; gap: 10px;
    min-width: 0; padding: 6px 8px; border-radius: 8px;
    font-size: 14px;
}
.lbg-row:nth-child(odd) { background: rgba(255, 255, 255, .04); }
.lbg-row__rank  { flex: 0 0 34px; text-align: center; font-weight: 800; opacity: .9; }
.lbg-row__name  { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lbg-row__score { flex: 0 0 auto; font-weight: 800; font-variant-numeric: tabular-nums; color: #ffd54a; }

@media (prefers-reduced-motion: reduce) {
    .lbg-toast { transition: none; }
}
