/* One framed choice at a time, over the frozen battlefield. */
#lobby{position:fixed;inset:52px 0 0;display:flex;align-items:center;justify-content:center;padding:12px;overflow:hidden;background:#11150c36;touch-action:manipulation}
#lobby .selectionFrame{display:flex;flex-direction:column;width:min(540px,100%);max-height:100%;padding:8px;background:linear-gradient(90deg,#2a1810,#72503b 4%,#3b2419 10%,#4e3022 90%,#866046 97%,#281911);border:2px solid #271910;box-shadow:inset 0 0 0 2px #aa795052,0 7px 20px #0009;color:#eee2c3}
#lobby[data-step="team"] .selectionFrame{width:min(380px,100%)}
#lobby .selectionStep{display:flex;flex-direction:column;min-height:0}
#lobby h2{font:22px Georgia,serif;text-align:center;color:#f1e4c7;margin:0;padding:9px 5px;background:linear-gradient(#65432d,#352116);text-shadow:1px 2px #000;border:1px solid #9e755445}
#lobby button{font:16px Georgia,serif;color:#eee2c3;background:linear-gradient(#654831,#39261a);border:1px solid #a7835b78;box-shadow:inset 0 1px #d9ba7838,inset 0 -2px #160e0a80;padding:9px 10px;min-height:40px;letter-spacing:.4px}
#lobby button:hover,#lobby button:focus-visible{background:linear-gradient(#697145,#344021);color:#fff4d8}
#lobby button:disabled{opacity:.55}
#lobby .sessionChoices{display:grid;gap:9px;padding:18px 24px;background:linear-gradient(#19231ae8,#171e15ed),url('loading/france.jpg') center/cover}
#lobby label{font:11px Georgia,serif;letter-spacing:1.3px;color:#ddcfb0}
#lobby select,#lobby input{font:16px Georgia,serif;color:#ece0bf;background:#182017;border:1px solid #96815d;padding:10px;width:100%;margin:0;min-width:0;border-radius:0}
#lobby .sessionChoices select{margin-bottom:9px}
#lobby .sessionTools{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:7px}
#lobby .sessionTools button{font-size:13px}
#lobby .teamPainting{height:min(340px,calc(100dvh - 258px));min-height:80px;background:#394334 url('menu/team-room.jpg') center/contain no-repeat;border:2px solid #201e14}
#lobby .teamChoices{display:grid;grid-template-columns:1fr 1.3fr 1fr;gap:5px;margin-top:5px}
#lobby .teamChoices button{padding:9px 4px;font-size:16px}
#lobby .cancelChoice{align-self:center;min-width:42%;margin-top:7px;font-size:16px;padding:7px 14px}
#lobby #selectedWeapon{background:linear-gradient(#4d6029,#304518);border:1px solid #8b8f53;padding:8px 4px;text-align:center;font:15px Georgia,serif;letter-spacing:.7px}
#lobby #weaponChoices{display:grid;grid-template-rows:repeat(6,minmax(0,1fr));height:min(330px,calc(100dvh - 260px));min-height:120px;gap:4px;margin-top:5px}
#lobby #weaponChoices button{position:relative;padding:2px 12px;min-height:0;height:100%;background:linear-gradient(0deg,#513623,#775438);border-color:#a37b54;overflow:hidden}
#lobby #weaponChoices button.selected,#lobby #weaponChoices button:hover,#lobby #weaponChoices button:focus-visible{background:linear-gradient(#7f8056,#4b542e);border-color:#d6ca87}
#lobby #weaponChoices img{display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(1px 2px 2px #0c0905);pointer-events:none}
#lobby #settingsStep{gap:13px;padding-bottom:8px}#lobby #settingsStep label{display:grid;gap:7px;padding:0 12px}
#lobby #status{font:12px/1.35 Georgia,serif;text-align:center;margin:7px 4px 0;color:#e0d5ba;overflow-wrap:anywhere}
#lobby #status:empty{display:none}
@media(max-width:600px){#lobby{inset:50px 0 0;padding:10px}#lobby .selectionFrame{width:min(440px,100%);padding:6px}#lobby h2{font-size:18px;padding:8px 4px}#lobby .teamPainting{height:min(360px,calc(100dvh - 245px))}#lobby .teamChoices button{font-size:13px;letter-spacing:0}#lobby .sessionChoices{padding:16px;gap:10px}#lobby #weaponChoices{height:min(350px,calc(100dvh - 245px))}#lobby .cancelChoice{min-height:40px}#lobby #status{font-size:11px}}
@media(max-height:500px){#lobby{inset:42px 0 0;padding:5px}#lobby .selectionFrame{width:min(500px,100%);padding:4px}#lobby h2{font-size:16px;padding:5px}#lobby .sessionChoices{padding:8px 16px;gap:5px}#lobby .sessionChoices select{margin-bottom:2px;padding:6px}#lobby button{min-height:30px;padding:5px;font-size:14px}#lobby .sessionTools{margin-top:5px}#lobby .teamPainting{height:calc(100dvh - 184px);min-height:45px}#lobby .teamChoices button{padding:5px;font-size:13px}#lobby .cancelChoice{min-height:28px;margin-top:4px;padding:4px}#lobby #weaponChoices{height:calc(100dvh - 181px);min-height:60px;gap:3px}#lobby #selectedWeapon{padding:4px;font-size:13px}#lobby #status{font-size:10px;margin-top:4px;flex-shrink:0}#lobby #settingsStep{gap:6px}#lobby #settingsStep input,#lobby #settingsStep select{padding:6px}}
@media(max-width:330px){#lobby h2{font-size:16px}#lobby .teamChoices button{font-size:11px}#lobby .sessionChoices{padding:12px}#lobby #selectedWeapon{font-size:12px}}

.kitIncluded{font:12px/1.5 Arial,sans-serif;color:#eee2c3;padding:8px 10px;margin:0;background:#182017;text-align:center;flex-shrink:0}
#lobby #settingsStep{overflow-y:auto}
#lobby #weaponStep .kitIncluded{font-size:11px}
/* Fixed-height, scrollable rows prevent an implicit seventh grid row consuming the list. */
#lobby[data-step="weapon"] .selectionFrame{width:min(600px,100%)}
#lobby #weaponChoices{display:flex;flex-direction:column;grid-template-rows:none;height:min(560px,calc(100dvh - 230px));min-height:64px;overflow-y:auto;overscroll-behavior:contain;gap:6px;padding:2px}
#lobby #weaponChoices button{display:grid;grid-template-columns:44% 1fr;align-items:center;flex:0 0 72px;min-height:72px;height:72px;padding:6px 10px;text-align:left;gap:12px}
#lobby #weaponChoices img{width:100%;height:56px;object-fit:contain}
#lobby #weaponChoices button span{position:static;background:none;font:bold 14px/1.3 Arial,sans-serif;padding:0;letter-spacing:.4px}
@media(max-height:500px){#lobby #weaponChoices{height:calc(100dvh - 168px);min-height:56px}#lobby #weaponChoices button{flex-basis:64px;min-height:64px;height:64px}#lobby #weaponChoices img{height:48px}}
@media(max-width:330px){#lobby #weaponChoices button{grid-template-columns:40% 1fr;gap:7px}#lobby #weaponChoices button span{font-size:12px}}
