/* Quiet cream panel, in normal document flow below the playfield. */
.lb-panel{box-sizing:border-box;width:100%;max-width:680px;margin:28px auto;padding:20px;border:1px solid #173f3530;border-radius:12px;background:#faf7ef;color:#173f35;overflow-wrap:anywhere}
.lb-panel[hidden]{display:none}
.lb-heading{font-size:20px;line-height:1.3;margin:0 0 8px}
.lb-game-title{font-size:14px;margin:0 0 18px}
.lb-level{font-size:14px;margin:-10px 0 18px}
.lb-form{display:flex;flex-direction:column;gap:10px}
.lb-field-row{display:flex;flex-wrap:wrap;gap:10px;align-items:stretch}
.lb-label{font-size:14px;font-weight:600;flex-basis:100%}
.lb-field-row input{box-sizing:border-box;flex:1 1 200px;min-width:0;width:100%;min-height:44px;padding:10px 12px;border:1px solid #173f3570;border-radius:6px;background:#fffdf7;color:#173f35;font:inherit;font-size:16px}
.lb-panel button{box-sizing:border-box;min-height:44px;min-width:44px;padding:10px 16px;border:1px solid #173f3570;border-radius:8px;background:transparent;color:#173f35;font:inherit;font-size:14px;cursor:pointer}
.lb-panel .lb-submit,.lb-tab.active{background:#173f35;color:#faf7ef}
.lb-panel :focus-visible{outline:3px solid #8a5624;outline-offset:3px}
.lb-panel :disabled{opacity:.65;cursor:default}
.lb-privacy{font-size:14px;margin:0;line-height:1.5}
.lb-status{font-size:14px;min-height:42px;margin:0;line-height:1.5}
.lb-status-error{color:#8e3028}
.lb-personal-best{font-size:14px;margin:14px 0 0}
.lb-tabs{display:flex;gap:8px;margin:18px 0 12px;flex-wrap:wrap}
/* Reserve board space so network responses never move the footer or rank. */
.lb-board-wrap{height:200px;overflow:auto;overscroll-behavior:contain;box-sizing:border-box;padding:2px 10px;border:1px solid #173f3524;border-radius:10px;background:#173f3504}
.lb-empty{font-size:14px;margin:0}
/* An empty or unavailable board fills its reserved box as a framed placeholder
   (the 200px stays reserved so arriving scores never shift the page). */
.lb-board-wrap:has(> .lb-empty){display:flex;align-items:center;justify-content:center;border-style:dashed;border-color:#173f3545;background:#173f3506}
.lb-board-wrap > .lb-empty{padding:0 16px;text-wrap:pretty;text-align:center;font-size:15px;line-height:1.5}
.lb-list{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.lb-row{display:grid;grid-template-columns:24px minmax(0,1fr) auto;align-items:center;gap:8px;padding:10px 8px;border-bottom:1px solid #173f3520;font-size:14px;min-height:44px;box-sizing:border-box}
.lb-row-mine{background:#173f350a}
.lb-rank{font-weight:700}
.lb-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lb-score{font-variant-numeric:tabular-nums;white-space:nowrap}
.lb-your-rank{font-size:14px;margin:14px 0 0;min-height:42px;line-height:1.5}
@media(max-width:420px){.lb-panel{padding:16px}.lb-submit{width:100%}.lb-row{gap:5px;padding-inline:0;font-size:13px}}

.lb-entry{display:inline-block;min-height:44px;min-width:44px;margin:8px 0 0 12px;padding:10px 16px;border:1px solid currentColor;border-radius:8px;background:#faf7ef;color:#173f35;font:inherit;font-size:16px;cursor:pointer}
.lb-entry:focus-visible{outline:3px solid #8a5624;outline-offset:3px}
