#setup{max-width:660px}
#setup fieldset{border:0;padding:0;margin:20px 0;min-width:0}
#setup legend{font-size:11px;letter-spacing:1px;margin-bottom:8px;color:#f5cd7d}
.setup-options-row,.setup-sizes-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;align-items:end;margin:20px 0}
#setup .setup-options-row label,#setup .setup-sizes-row fieldset{margin:0;min-width:0}
#setup .setup-options-row .setup-check{min-height:44px;align-self:end;line-height:1.5;letter-spacing:.5px}
.setup-options-row:has(#aiDifficultyRow[hidden]) .setup-check{grid-column:1/-1}
#setup select[hidden],#addTeam[hidden]{display:none!important}
.choice-buttons{display:flex;gap:8px}
#setup .choice-buttons label{flex:1;margin:0;position:relative;letter-spacing:0;text-align:center}
.choice-buttons input{position:absolute;opacity:0;width:1px;height:1px}
#setup .choice-buttons span{display:flex;align-items:center;justify-content:center;min-height:45px;margin:0;padding:7px;border:2px solid #96703e;border-radius:8px;background:#102e34;color:#e8d5a8;font-size:14px;cursor:pointer}
#setup .choice-buttons input:checked+span{border-color:#ffe093;background:#3c5b4c;color:#fff3c5;box-shadow:inset 0 0 0 2px #d5a447}
#setup .choice-buttons input:focus-visible+span{outline:3px solid #fff;outline-offset:2px}
#setup .choice-buttons input:disabled+span{opacity:.35;cursor:not-allowed}
#setup .setup-check{display:flex;align-items:center;gap:12px;font-size:12px;cursor:pointer}
#setup .setup-check span{margin:0}
.setup-check input{width:23px;height:23px;accent-color:#e7c56d;flex-shrink:0}
#teamChips,#teamChoices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#teamChips{grid-auto-rows:1fr}
.roster-item{display:flex;align-items:center;gap:5px;min-width:0}
#setup .add-team-tile{align-self:stretch;width:100%;height:100%;min-height:105px;margin:0;padding:12px;font-size:14px;letter-spacing:0}
#teamChips:has(.remove-team) .add-team-tile{width:calc(100% - 37px);flex:0 0 calc(100% - 37px)}
dialog .roster-chip{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;margin:0;min-width:0;width:100%;padding:10px 9px 12px;min-height:105px;font-size:11px;letter-spacing:0;line-height:1.4}
.roster-chip span{overflow-wrap:anywhere;text-align:center}
.roster-preview{display:block;width:100%;height:auto;aspect-ratio:56/15;object-fit:contain}
dialog .remove-team{width:32px;min-width:32px;height:44px;margin:0;padding:3px;font-size:23px;color:#ffb49b}
dialog .roster-chip[aria-pressed=true]{filter:brightness(1.3);background:#496050}
#teamPicker{max-width:760px}
#teamPicker h2{font-size:23px;margin-top:0}
#mapStyleOptions[hidden]{display:none}
#setup .map-style-trigger{display:grid;grid-template-columns:minmax(0,204px) minmax(100px,1fr) auto;align-items:center;gap:14px;width:100%;margin:0;padding:10px;text-align:left;font-size:13px;letter-spacing:0;min-height:80px}
.map-style-trigger img{width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;border-radius:4px}
.map-style-trigger span,.map-style-option span{min-width:0;white-space:normal;overflow-wrap:anywhere}
.map-style-trigger span:last-child{margin-left:auto;font-size:20px}
#mapStyleOptions{margin-top:6px;max-height:340px;overflow-y:auto;overscroll-behavior:contain;border:2px solid #b18b4f;background:#102e34;padding:4px;border-radius:5px}
#setup .map-style-option{display:grid;grid-template-columns:minmax(0,272px) minmax(120px,1fr);align-items:center;gap:14px;margin:0;padding:8px;text-align:left;min-height:100px;border:2px solid transparent;border-radius:4px;background:#163a3d;color:#ffebbb;font-size:12px;line-height:1.4}
.map-style-option img{width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;border-radius:3px}
#setup .map-style-option[aria-selected=true]{border-color:#efcb7d;background:#36584f}
#setup .map-style-option:hover,#setup .map-style-option:focus-visible{background:#466557;outline:2px solid #ffe3a5;outline-offset:-3px}
@media(max-width:500px){#setup .map-style-trigger{grid-template-columns:minmax(0,160px) minmax(90px,1fr) auto;gap:9px;font-size:11px}#setup .map-style-option{grid-template-columns:minmax(0,212.5px) minmax(90px,1fr);font-size:11px;gap:9px;padding:6px;min-height:86px}}
@media(max-width:500px){#setup,#teamPicker{padding:18px}#teamChips,#teamChoices{gap:8px}dialog .roster-chip{padding:8px 6px;min-height:88px;font-size:10px}.roster-item{gap:2px}dialog .remove-team{width:27px;min-width:27px}}
@media(max-width:500px){#setup .add-team-tile{min-height:88px;font-size:12px}}
@media(max-width:500px){#teamChips:has(.remove-team) .add-team-tile{width:calc(100% - 29px);flex-basis:calc(100% - 29px)}}
@media(max-width:500px){.setup-options-row,.setup-sizes-row{gap:12px}.setup-sizes-row{grid-template-columns:minmax(0,3fr) minmax(0,2fr)}#setup .setup-sizes-row legend{font-size:9px;letter-spacing:.3px}#setup .setup-sizes-row .choice-buttons{gap:4px}#setup .setup-sizes-row .choice-buttons span{font-size:9px;padding:5px 2px;overflow-wrap:anywhere}#setup .setup-options-row label{font-size:9px;letter-spacing:.5px}#setup .setup-options-row .setup-check{font-size:10px;gap:8px}#aiDifficulty{padding:10px 6px}}
