
/* Team / room lobby - collapsible so the match remains playable on tablets. */
#teamPanel{position:fixed;z-index:6;right:14px;top:160px;width:208px;max-height:min(53vh,380px);color:#e8faff;background:rgba(1,40,70,.88);border:1px solid #79cce6;border-radius:12px;box-shadow:0 4px 12px #0019;pointer-events:auto;overflow:auto}
#teamPanel>summary{cursor:pointer;font-size:12px;font-weight:800;padding:9px;list-style-position:inside;color:#d9f9ff}
#teamPanel .team-fields{padding:0 9px 10px}
#teamPanel .team-title{font-size:11px;color:#b8ddea;margin-bottom:6px}
#teamPanel .team-code-row{display:flex;justify-content:space-between;gap:8px;font-size:12px;margin:8px 0;align-items:center}
#teamCodeLabel{color:#afffa9;font-variant-numeric:tabular-nums}
#teamJoinCode{width:100%;height:34px;padding:4px 7px;font-size:12px;text-align:left;background:#023451;border:1px solid #86d9e9;border-radius:8px;box-shadow:none}
#teamPanel .team-actions{display:grid;grid-template-columns:1fr 1fr;gap:5px;margin-top:7px}
#teamPanel .team-actions button{width:100%;margin:0;padding:7px 3px;min-height:34px;font-size:11px;color:#f5fdff;background:#0c6485;box-shadow:none;border:1px solid #51bed3;border-radius:7px}
#teamPanel .team-actions button:active{background:#1789a7}
#teamPanel #teamFeedback{font-size:11px;margin:6px 0;color:#f5d998;min-height:12px;white-space:normal}
#teamMembers{list-style:none;margin:4px 0 0;padding:0;font-size:12px;max-height:135px;overflow-y:auto}
#teamMembers li{padding:3px 2px;border-bottom:1px solid #ffffff20}
#teamMembers li:before{content:"●";color:#7bf79b;margin-right:5px}
#teamMembers li.ai:before{color:#8ad6ff}
#hud.touch-active #teamPanel{top:calc(94px + env(safe-area-inset-top));left:calc(11px + env(safe-area-inset-left));right:auto;max-width:min(190px,49vw);max-height:50vh}
#hud.touch-active #teamPanel:not([open]){width:max-content}
@media(max-height:490px) and (orientation:landscape){
 #hud.touch-active #teamPanel{top:calc(79px + env(safe-area-inset-top));max-height:46vh}
 #teamPanel .team-fields{padding-bottom:5px}
}
