/* Paper Chain's and Cross Stitch's leaderboards (public/leaderboard.js): the game-show games' layout in the paper games'
 * own colors (--ink, --muted, --line, --slot, --card, --accent from each game's style.css, light and dark). */
.lbt { display: flex; gap: 4px; margin: 0 0 12px; padding: 4px; border-radius: 12px; background: var(--slot); }
.lbt button { flex: 1; padding: 9px; border: 0; border-radius: 9px; background: none; color: var(--muted); font: 700 1rem/1 var(--body); cursor: pointer; }
.lbt button[aria-selected="true"] { color: var(--ink); background: var(--card); box-shadow: 0 1px 0 rgba(43, 38, 32, .08), 0 2px 8px -4px rgba(43, 38, 32, .3); }
.lbm { display: flex; justify-content: center; gap: 6px; margin: 0 0 12px; }
.lbm button { padding: 6px 14px; border: 0; border-radius: 999px; background: none; color: var(--muted); font: 700 .88rem/1.2 var(--body); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; }
.lbm button[aria-pressed="true"] { color: var(--ink); background: var(--slot); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 25%, transparent); }

.lb__list { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.lb__row, .lb__head { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 10px; }
.lb__list--all .lb__row, .lb__list--all .lb__head { grid-template-columns: 30px 1fr auto 40px; }
.lb__list--all span:last-child { text-align: right; }
.lb__head { padding-top: 0; padding-bottom: 2px; color: var(--muted); font-size: .8rem; }
.lb__row { background: var(--slot); font-variant-numeric: tabular-nums; }
.lb__row span:first-child { color: var(--muted); font-weight: 700; }
.lb__row span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb__row span:nth-child(3) { font-weight: 700; text-align: right; }
.lb__row small { display: block; color: var(--muted); font-size: .75rem; font-weight: 400; }
.lb__row.is-you { background: color-mix(in srgb, var(--accent) 14%, var(--card)); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 55%, transparent); }
.lb__note, .lb__you { margin: 10px 0 0; color: var(--muted); font-size: .9rem; text-align: center; text-wrap: pretty; }
.lb__you { color: var(--ink); font-weight: 700; }

/* "Put your name on today's board": after today's game, for someone without a name today. */
.lbn { margin: 16px 0 0; padding: 14px; border-radius: 14px; background: var(--slot); }
.lbn[hidden] { display: none; }
.lbn label { display: block; margin: 0 0 8px; font-weight: 700; }
.lbn__row { display: flex; gap: 8px; }
.lbn input { flex: 1; min-width: 0; padding: 11px 14px; border: 0; border-radius: 10px; color: var(--ink); background: var(--card); box-shadow: inset 0 0 0 1.5px var(--line);
  font: 400 max(16px, 1rem)/1.2 var(--body); }
.lbn input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--hit); }
.lbn button { padding: 0 18px; border: 0; border-radius: 10px; color: #fff; background: var(--hit); font: 700 1rem/1 var(--body); cursor: pointer; }
.lbn__note { min-height: 1.2em; margin: 6px 0 0; color: var(--muted); font-size: .88rem; }
.lbn__note:empty { display: none; }

html.a11y .lb__row, html.a11y .lb__note { font-size: 1.05rem; }
