.board-layout-choice{display:inline-flex;align-items:center;gap:.65rem;margin:.4rem 0;color:inherit;font:600 .92rem/1.3 system-ui,sans-serif}
.board-layout-choice select{min-height:42px;color:inherit;background:#1d3026;border:1px solid #71816d;border-radius:.5rem;padding:.45rem}
:is(#marshlight-game,#records-leaderboard) [data-layout="compact"]{container-type:inline-size;scrollbar-gutter:auto}
:is(#marshlight-game,#records-leaderboard) [data-layout="compact"] table:not([hidden]){display:block;width:100%;box-sizing:border-box}
:is(#marshlight-game,#records-leaderboard) [data-layout="compact"] thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
:is(#marshlight-game,#records-leaderboard) [data-layout="compact"] tbody{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;padding:4px}
:is(#marshlight-game,#records-leaderboard) [data-layout="compact"] tbody tr{display:grid;grid-template-columns:auto minmax(0,1fr);gap:1px 5px;align-content:start;align-items:baseline;border:1px solid #485b4c;border-radius:7px;padding:5px 6px;min-width:0}
:is(#marshlight-game,#records-leaderboard) [data-layout="compact"] tbody td{border:0;padding:0;text-align:left;font-size:13px;line-height:1.25;width:auto;overflow-wrap:anywhere}
:is(#marshlight-game,#records-leaderboard) [data-layout="compact"] tbody td:first-child{font-weight:bold;color:#e2c784}
:is(#marshlight-game,#records-leaderboard) [data-layout="compact"] tbody td:first-child::before{content:'#'}
:is(#marshlight-game,#records-leaderboard) [data-layout="compact"] tbody td:nth-child(n+3){grid-column:2;font-variant-numeric:tabular-nums}
:is(#marshlight-game,#records-leaderboard) [data-layout="compact"] tbody td:last-child::after{content:none}
:is(#marshlight-game,#records-leaderboard) [data-layout="compact"] tbody td:last-child::before{content:'Score ';font-weight:400}
#records-leaderboard [data-layout="compact"] tbody td:nth-child(3):not(:last-child)::before{content:'Time '}
:is(#marshlight-game,#records-leaderboard) [data-layout="compact"] small{font-size:11px;margin:0}
@container (min-width: 610px){:is(#marshlight-game,#records-leaderboard) [data-layout="compact"] tbody{grid-template-columns:repeat(3,minmax(0,1fr))}}
/* The live expanded board has an earlier card layout. Reset it for list view. */
:is(#marshlight-game,#records-leaderboard) [data-layout="list"] table:not([hidden]){display:table;width:100%}
:is(#marshlight-game,#records-leaderboard) [data-layout="list"] thead{display:table-header-group;position:static;width:auto;height:auto;clip-path:none;overflow:visible}
:is(#marshlight-game,#records-leaderboard) [data-layout="list"] tbody{display:table-row-group}
:is(#marshlight-game,#records-leaderboard) [data-layout="list"] tr{display:table-row}
:is(#marshlight-game,#records-leaderboard) [data-layout="list"] td{display:table-cell}
