/* A short visual lobby, before entering the neighborhood. */
.players-dialog{width:min(650px,calc(100% - 24px));background:linear-gradient(145deg,#f8edcf,#eadab9);max-height:calc(100svh - 28px);overflow:auto}
.players-dialog h2{margin:0 35px 19px 0;font-size:32px}
.team-count{display:flex;align-items:center;gap:13px;margin-bottom:16px}
.players-dialog .team-count>span{margin:0}.players-dialog .team-count select{width:auto;min-width:135px}
.team-pickers{display:grid;gap:14px;margin-bottom:20px}
.team-picker{padding:14px;border:1px solid #c9af8a;border-radius:16px;background:#fffaed99}
.picker-name{display:flex;align-items:center;gap:12px;margin-bottom:13px}
.players-dialog .picker-name>span{flex:none;margin:0}.players-dialog .picker-name input{min-width:0;max-width:230px}
.players-dialog .character-options{margin:0}.character-options legend{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden;white-space:nowrap}
.character-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
.character-choice{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;padding:5px 4px 9px;border:2px solid #b9a6bc70;border-radius:13px;background:linear-gradient(#38304c,#211a31);cursor:pointer;box-shadow:0 3px 0 #c8b28e;transition:border-color .15s,background .15s}
.character-choice input{position:absolute;opacity:0;width:1px;height:1px}
.players-dialog .character-choice .character-portrait{display:block;width:min(100%,100px);aspect-ratio:1;margin:0;filter:drop-shadow(0 4px 3px #0006)}
.players-dialog .character-choice .character-name{display:block;margin:0;color:#f8e8d0;font-size:10px;font-weight:800}
.character-check{position:absolute;right:5px;top:5px;display:none!important;place-items:center;width:19px;height:19px;border-radius:50%;background:#ffcf80;color:#422b36;font-size:12px!important}
.character-choice:has(input:checked){border-color:#bd762a;background:linear-gradient(#665035,#352234);box-shadow:0 0 0 2px #f6c77b,0 4px 0 #ba9563}
.character-choice:has(input:checked) .character-check{display:grid!important}.character-choice:has(input:focus-visible){outline:3px solid #8e4c24;outline-offset:4px}
.score-avatar{flex:none;width:34px;height:34px;filter:drop-shadow(0 2px 2px #0005)}
/* Reserve both rows so switching 4,3,2,1 to the playing cue never moves the panel. */
.challenge-status,.challenge-status:empty,.counting .challenge-status{height:36px;min-height:36px;margin:13px 0 9px;display:flex;align-items:center;justify-content:center;line-height:1}
.challenge-controls{display:grid;align-items:center;min-height:66px}.challenge-controls>div,.challenge-controls>.tap-pad{grid-area:1/1}.challenge-controls .challenge-actions{margin:0}
@media(max-width:600px){.players-dialog{padding:22px 15px}.players-dialog h2{font-size:27px}.team-picker{padding:10px}.character-grid{gap:6px}.character-choice{padding:3px 1px 7px;border-radius:10px}.players-dialog .character-choice .character-name{font-size:9px}.picker-name{gap:9px;margin-bottom:11px}.players-dialog .picker-name>span{font-size:10px}.score-avatar{width:26px;height:26px}.score-card{gap:5px}}
/* The large number includes the current bag; keep the banked portion visible. */
.team-score-copy{min-width:0;flex:1}.team-score-copy .team-name{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.score-card .team-score-copy small{display:flex;flex-direction:column;gap:2px;margin-top:3px;font-size:9px;letter-spacing:0;line-height:1.2;color:#c2b4cd;white-space:nowrap}.score-bag.has-candy{color:#ffd184}.score-card>strong{flex:none}.score-card>svg{flex:none}.street-bottom .control-hint{margin-inline:auto}
@media(max-width:600px){.score-card .team-score-copy small{font-size:8px}.score-card .score-avatar{width:24px;height:24px}.score-card>svg{display:none}.score-card .team-name{max-width:100%;font-size:9px}}
