/* Avatars, the quick-message sheet and the leaderboard. Used by the game page (inside its dialogs) and /leaderboard/;
   both show them on the light "paper" panel. */
.avatar { display: inline-block; flex: none; border-radius: 22%; overflow: hidden; line-height: 0; vertical-align: middle; background: #111; box-shadow: 0 0 0 1px rgba(0,0,0,.25); }
.avatar-svg { display: block; width: 100%; height: 100%; }
.scorebar .nm { display: inline-flex; align-items: center; gap: 6px; }
.scorebar .cpu .nm { flex-direction: row-reverse; }

.say .quick { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.chipbtn { font: inherit; font-size: 15px; font-weight: 600; padding: 10px 14px; border-radius: 20px; border: 2px solid #bbb; background: #fff; color: #111; cursor: pointer; min-height: 44px; }
.chipbtn:active { background: #eee; }
.say .btn + .key { margin-top: 8px; }

.lb { text-align: left; }
.lb-me { display: flex; gap: 14px; align-items: center; background: #eef3ee; border: 1px solid #cfdacf; border-radius: 12px; padding: 12px; margin: 10px 0 8px; }
.lb-me-text { min-width: 0; flex: 1; }
.lb-me-text b { font-size: 22px; letter-spacing: .06em; }
.lb-rank { font-weight: 700; color: #0f5132; }
.lb-stats, .lb-level { font-size: 13px; color: #4a4a4a; margin-top: 2px; }
.lb-bar { height: 6px; border-radius: 3px; background: #d6ded6; margin: 6px 0 8px; overflow: hidden; }
.lb-bar span { display: block; height: 100%; background: #0f5132; border-radius: 3px; }
.lb-join { background: #eef3ee; border: 1px solid #cfdacf; border-radius: 12px; padding: 12px; margin: 10px 0 8px; }
.lb-join p { font-size: 14px; color: #3a3a3a; margin: 6px 0 10px; }
.lb-form { display: flex; gap: 8px; align-items: stretch; margin: 6px 0; }
.lb-form input { flex: 1; min-width: 0; font: inherit; font-size: 22px; font-weight: 800; letter-spacing: .25em; text-transform: uppercase; text-align: center; padding: 8px; border: 2px solid #aaa; border-radius: 10px; background: #fff; color: #111; }
.lb-form .btn, .lb-me .btn { width: auto; margin: 0; flex: none; }
.lb-me .chip { color: #0f5132; border-color: #8fb09b; margin-top: 4px; }
.lb-me .btn.quiet { color: #444; }
.lb-error { color: #a31515; font-size: 14px; margin: 6px 0; }
.lb-h { font-size: 16px; margin: 14px 0 6px; }
.lb-list { list-style: none; margin: 0; padding: 0; }
.lb-list li { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-bottom: 1px solid #e4e1d4; }
.lb-list li.mine { background: #fff4c9; border-radius: 8px; }
.lb-list .n { width: 26px; text-align: right; color: #666; font-variant-numeric: tabular-nums; }
.lb-list b { flex: 1; letter-spacing: .08em; font-size: 17px; }
.lb-list .r { font-weight: 700; font-variant-numeric: tabular-nums; }
.lb-list .w { width: 54px; text-align: right; color: #555; font-size: 13px; font-variant-numeric: tabular-nums; }
.lb-empty, .lb-note { font-size: 13px; color: #555; margin: 8px 0; }

/* account section of the panel and the /account/ page */
.lb-account { background: #fff8e1; border: 1px solid #ecd58a; border-radius: 12px; padding: 12px; margin: 8px 0; font-size: 14px; line-height: 1.45; color: #3a3a3a; }
.lb-account.big { padding: 18px; font-size: 16px; }
.lb-account.big h2 { margin: 0 0 6px; font-size: 22px; border: 0; padding: 0; }
.lb-account.ok { background: #e8f5e9; border-color: #a5d6a7; }
.lb-account .lb-form { margin: 8px 0 4px; }
.lb-account .lb-form input[type=email] { font-size: 17px; letter-spacing: 0; font-weight: 500; text-align: left; text-transform: none; padding: 10px 12px; }
.lb-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; align-items: center; }
.lb-account .btn.small { padding: 8px 14px; font-size: 14px; width: auto; margin: 0; }
.chip.danger { color: #a31515; border-color: #d9a1a1; }
.lb-ok { background: #e8f5e9; border-radius: 8px; padding: 8px 10px; margin: 8px 0; color: #1b4d20; }
.lb-small { font-size: 12px; color: #555; margin: 4px 0; }
.lb-account .chip { color: #0f5132; border-color: #8fb09b; }
.lb-account .chip.danger { color: #a31515; }
.content .lb-account a.cta { color: #1b1b1b; }

/* Buttons used inside the panel. The game pages get these from game.css; the plain site pages (leaderboard, account) don't load it. */
.lb .btn, .lb-account .btn { font: inherit; font-size: 16px; font-weight: 700; padding: 11px 18px; border: 0; border-radius: 10px; background: #e8e8e8; color: #111; cursor: pointer; width: auto; }
.lb .btn.primary, .lb-account .btn.primary { background: #f5c542; color: #1b1b1b; box-shadow: 0 2px 0 rgba(0,0,0,.18); }
.lb .btn:disabled, .lb-account .btn:disabled { opacity: .45; cursor: default; }
.lb .btn.small { padding: 8px 14px; font-size: 14px; }
.lb .btn.quiet { background: transparent; color: #444; text-decoration: underline; padding-left: 4px; }
.lb .chip, .lb-account .chip { font: inherit; font-size: 13px; font-weight: 600; color: #0f5132; background: transparent; border: 1px solid #8fb09b; border-radius: 16px; padding: 6px 12px; min-height: 32px; cursor: pointer; }
.lb .chip:hover { background: rgba(15,81,50,.08); }
.lb .chip.danger, .lb-account .chip.danger { color: #a31515; border-color: #d9a1a1; }
.lb .chip.danger:hover { background: rgba(163,21,21,.08); }
