#fight-lobby { width:min(590px,94vw); box-sizing:border-box; max-height:90dvh; overflow:auto; padding:clamp(14px,3vw,30px); background:#142922; color:#faf7e7; border:1px solid #607568; border-top:4px solid #e7fb4c; border-radius:6px; box-shadow:0 20px 75px #05120dc9 }
#fight-lobby::backdrop { background:#061311bd }
#fight-lobby [hidden],#fight-network[hidden] { display:none }
.net-heading,.net-actions,#fight-lobby [data-net=rooms]>div { display:flex; align-items:center; justify-content:space-between; gap:8px }
#fight-lobby h2,#fight-lobby h3 { margin:0 0 .5em; font-weight:850 }
#fight-lobby h2 { font-size:clamp(22px,4vw,32px) }
#fight-lobby h3 { margin-top:1em; font-size:16px }
#fight-lobby form { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:end; gap:10px; margin:8px 0 }
#fight-lobby label { display:grid; gap:4px; color:#dae5d7; font-size:14px }
#fight-lobby input,#fight-lobby select,#fight-lobby button { box-sizing:border-box; color:#fcf9e8; font:inherit; background:#213c31; border:1px solid #657865; border-radius:4px; padding:8px 10px; min-width:0 }
#fight-lobby button { cursor:pointer; min-height:38px }
#fight-lobby button:disabled { opacity:.55 }
#fight-lobby button[type=submit],#fight-lobby button[data-net=ready] { color:#15251b; background:#e7fb4c; font-weight:750 }
#fight-lobby [data-net=rooms]>div { padding:8px 0; border-top:1px solid #415649 }
#fight-lobby [data-net=rooms] span { color:#c4d3c3; margin-left:auto; font-size:13px }
#fight-lobby [data-net=seats] { padding:0; list-style:none; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px }
#fight-lobby li { padding:9px; background:#21382e; border-left:2px solid #64796c; font-size:14px }
#fight-lobby li.my-seat { border-color:#e7fb4c; color:#f3ffc1 }
.net-actions { margin-top:12px; justify-content:flex-end }
#fight-lobby [data-net=note] { margin:8px 0 0; color:#f2dfa8 }
#fight-network { position:fixed; z-index:4; top:73px; right:12px; color:#f5f8de; background:#14291feb; border:1px solid #8ba779; border-radius:5px; padding:7px 12px }
.handheld #fight-network { top:max(8px,env(safe-area-inset-top)); right:max(65px,env(safe-area-inset-right)); font-size:12px }
@media(max-height:480px){#fight-lobby{padding:10px 16px;max-height:94dvh}#fight-lobby li{padding:5px 8px}#fight-lobby h3{margin-top:.55em}}


#fight-lobby .net-mode{grid-column:1/-1;display:flex;gap:.6em;margin:0;padding:0;border:0}
.net-mode legend{margin-bottom:4px;color:#dae5d7;font-size:14px}
#fight-lobby .net-mode label{display:flex;align-items:center;gap:.6em;flex:1;cursor:pointer;padding:8px 12px;background:#213c31;border:1px solid #657865;border-radius:4px}
#fight-lobby .net-mode label:has(:checked){color:#eef9a1;border-color:#d5ed60}
#fight-lobby .net-mode input{margin:0;accent-color:#c4e75b}

#net-hud{position:absolute;top:max(6px,env(safe-area-inset-top));right:max(66px,env(safe-area-inset-right));z-index:6;pointer-events:none;display:grid;justify-items:end;gap:4px;max-width:65%;font:600 clamp(10px,1.4vw,13px)/1.35 system-ui;color:white}
#net-hud[hidden],#net-alert:empty{display:none}
#net-line,#net-alert{padding:3px 8px;border-radius:5px;background:#112c24eb;box-shadow:0 1px 3px #0007}
#net-alert{color:#e8ff89}

.handheld #fight-lobby .room-tools { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:8px 0 }
.handheld #fight-lobby .room-tools h3 { margin:0 }
.handheld #fight-lobby [data-net=toggle-create] { flex:none }
.handheld #fight-lobby [data-net=rooms]>div { flex-wrap:wrap }
.handheld #fight-lobby [data-net=rooms] b { overflow-wrap:anywhere }
