/* Lobby and shared game shell. The arena artwork stays unobscured during play. */
:root{--accent:#ffce52;--paper:#fff2d0;--dark:#17291f}
button{transition:transform .12s,background .15s,border-color .15s}button:active:not(:disabled){transform:translateY(2px)}
#overlay{background:#1122189c;backdrop-filter:blur(4px);padding:22px}
#overlay[data-view=menu],#overlay[data-view=loading]{background:linear-gradient(90deg,#0b201ce8,#0c231a33 74%),url('art/lobby.jpg') center/cover;backdrop-filter:none}
.menu{position:relative;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(240px,.85fr);gap:20px 35px;width:min(1080px,100%);max-width:none;min-height:min(590px,100%);padding:28px 32px;color:var(--paper);background:linear-gradient(135deg,#123326b8,#112d2099);border:1px solid #cce2b63d;border-radius:24px;box-shadow:0 20px 70px #071b1380;overflow:hidden;isolation:isolate}
#menu-tools{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:10px;z-index:2}.brand{font-size:28px;font-weight:1000;line-height:.95;letter-spacing:-1.5px;text-shadow:0 3px #13291d}.brand span{color:#ffce52;margin-left:5px}.brand small{display:block;font-size:8px;letter-spacing:2px;margin-top:10px;color:#c2d3ad;font-weight:750}.lobby-tools{display:flex;gap:8px}.lobby-tools button{background:#173c2cdb;border-color:#d4dfb348;min-height:42px;font-size:12px;font-weight:800}#settings-open{width:44px;font-size:21px}
#menu-intro{grid-column:1;grid-row:2;z-index:1;align-self:center}.menu .eyebrow{font-size:9px;color:#ffdc80;letter-spacing:.18em;margin:0 0 13px}.menu h2{font-size:clamp(36px,4.6vw,64px);font-weight:1000;line-height:1;letter-spacing:-.055em;margin:0;text-shadow:0 4px #122b1d}.menu #summary{font-size:12px;line-height:1.6;color:#d8e2c5;max-width:43ch;margin:13px 0 0}
#hero-showcase{position:relative;grid-column:2;grid-row:2/4;align-self:center;display:flex;flex-direction:column;align-items:center;min-height:220px;pointer-events:none}#hero-showcase>img{height:210px;max-width:85%;object-fit:contain;filter:drop-shadow(0 14px 0 #081c1244);animation:hero-float 4s ease-in-out infinite;z-index:1}.hero-halo{position:absolute;width:240px;height:240px;top:-10px;border-radius:50%;background:radial-gradient(circle,#ffda7540,#b8d67c09 65%,transparent 70%)}.hero-label{margin-top:18px;background:#102e23b8;border:1px solid #c9ddad33;padding:7px 22px;border-radius:30px;font-size:11px;letter-spacing:.14em;font-weight:950;text-align:center;z-index:1}.hero-label small{display:block;font-size:9px;letter-spacing:0;color:#d5deb9;margin-top:2px;font-weight:600}
#career{grid-column:1;grid-row:3;display:flex;gap:24px;align-self:start}#career>div{display:grid;gap:3px}#career b{font-size:23px;line-height:1;color:#ffe6a6;font-variant-numeric:tabular-nums}#career span{font-size:7px;font-weight:800;letter-spacing:.08em;color:#b2c8a9}
#map-picker{grid-column:1;grid-row:4;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;z-index:2}.map-card{display:block;position:relative;padding:0;overflow:hidden;background:#163326;color:#fff1d1;border:2px solid #b8d0a52b;border-radius:13px;text-align:left;box-shadow:0 5px 0 #0a2319;transition:transform .18s,border-color .18s}.map-card:hover{transform:translateY(-3px)}.map-card.selected{background:#1c3d29;border-color:#ffdc70}.map-card img{display:block;width:100%;height:76px;object-fit:cover}.map-card span{display:grid;padding:8px;gap:3px}.map-card b{font-size:10px;line-height:1.25}.map-card small{font-size:8px;line-height:1.2;color:#b8cdae}.map-card i{position:absolute;top:6px;left:6px;font-style:normal;font-size:8px;background:#14271bba;padding:2px 5px;border-radius:5px}.map-card.selected i{background:#ffce52;color:#172b1f}
.menu-actions{grid-column:2;grid-row:4;display:flex;flex-direction:column;gap:8px;align-self:end;margin:0;z-index:2}#selected-mode{font-weight:950;font-size:13px;letter-spacing:.12em;margin-bottom:4px}#selected-mode small{display:block;font-size:9px;letter-spacing:0;font-weight:550;color:#d5e0bf;margin-top:3px}#start{font-size:22px;font-weight:1000;letter-spacing:.03em;min-height:59px;border-radius:13px;background:linear-gradient(#ffe49a,#ffc642);border:2px solid #4d3b13;box-shadow:0 5px #785a22,0 10px 25px #0003;color:#312b16;position:relative;overflow:hidden}#start:hover:not(:disabled){background:linear-gradient(#fff1bf,#ffd867)}#menu-back,#spectate-trigger{background:#204632;color:#e4edd1;border:1px solid #bed6a64d;font-size:11px;min-height:35px;border-radius:9px}#menu-note{grid-column:1/-1;grid-row:5;font-size:9px;color:#b7c9a7;margin:0;padding-top:4px}
#overlay[data-view=paused] .menu{width:min(450px,100%);min-height:0;display:flex;flex-direction:column;gap:23px;background:#153629f5}#overlay[data-view=paused] #menu-intro{min-height:0}#overlay[data-view=paused] .menu h2{font-size:47px}
#overlay[data-view=won],#overlay[data-view=lost],#overlay[data-view=draw]{background:linear-gradient(#123323aa,#0a2119e8),url('art/lobby.jpg') center/cover}
#overlay[data-view=won] .menu,#overlay[data-view=lost] .menu,#overlay[data-view=draw] .menu{min-height:0;width:min(850px,100%)}#overlay[data-view=won] #heading{color:#ffdc70}#result-stats{grid-column:1/-1;grid-row:3;display:grid;grid-template-columns:repeat(4,1fr);gap:8px;z-index:2}#result-stats>div{padding:15px 9px;background:#102b20cc;border:1px solid #d0dcaf2e;border-radius:12px;display:grid;text-align:center;gap:5px}#result-stats b{font-size:30px;color:#ffe29b;font-variant-numeric:tabular-nums}#result-stats span{font-size:8px;color:#c2d3b2;letter-spacing:.05em}#overlay:is([data-view=won],[data-view=lost],[data-view=draw]) .menu-actions{grid-column:1/-1;grid-row:4;display:grid;grid-template-columns:1fr 1fr}#overlay:is([data-view=won],[data-view=lost],[data-view=draw]) #start{grid-column:1/-1}#overlay:is([data-view=won],[data-view=lost],[data-view=draw]) #hero-showcase{grid-row:2;height:150px;min-height:0}#overlay:is([data-view=won],[data-view=lost],[data-view=draw]) #hero-showcase>img{height:125px}#overlay:is([data-view=won],[data-view=lost],[data-view=draw]) .hero-label{display:none}
.panel-dialog{color:#f5e8ca;background:#18362a;border:1px solid #c8d7ae66;border-radius:20px;padding:23px;width:min(480px,calc(100vw - 24px));max-height:calc(100dvh - 30px);overflow:auto;box-shadow:0 20px 70px #0009}.panel-dialog::backdrop{background:#071c15bd;backdrop-filter:blur(7px)}.panel-dialog header{display:flex;justify-content:space-between;align-items:center;margin-bottom:19px;gap:12px}.panel-dialog header small{font-size:8px;letter-spacing:.16em;color:#ffdb85}.panel-dialog h2{font-size:29px;letter-spacing:-.03em}.panel-dialog header button{font-size:25px;width:39px;height:39px;padding:0;border-radius:50%;background:#284c36}.setting-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:14px 0;border-top:1px solid #bdcfa126;font-size:13px;font-weight:800}.setting-row small{display:block;font-size:10px;font-weight:500;line-height:1.5;color:#bfd1b3;max-width:260px;margin-top:4px}.setting-row input[type=checkbox]{width:21px;height:21px;accent-color:#ffcf5b;flex-shrink:0}.setting-row input[type=range]{width:110px;accent-color:#ffcf5b}.dialog-note{font-size:10px;color:#adbea2;line-height:1.5}.guide-dialog{width:min(760px,calc(100vw - 24px))}.guide-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.guide-grid article{background:#244631;border-radius:12px;padding:13px}.guide-grid img{width:80px;height:55px;object-fit:contain}.guide-grid h3{font-size:13px;margin:12px 0 7px}.guide-grid p,.control-guide p{font-size:11px;line-height:1.7;color:#c7d9b8}.control-guide{display:grid;grid-template-columns:1fr 1fr;gap:20px;border-top:1px solid #b7c8a433;padding-top:12px;margin-top:18px}.control-guide h3{font-size:14px;color:#ffda7c}
#zone-alert{position:absolute;top:16px;left:50%;transform:translateX(-50%);color:#ffdf8d;background:#223c2aee;border:1px solid #ffdc6c66;border-radius:8px;padding:5px 10px;font-size:10px;font-weight:900;letter-spacing:.06em;pointer-events:none}#zone-alert[data-danger=true]{color:#ffd5d8;background:#6e2834ee;border-color:#ff8e9b}#kill-feed{position:absolute;right:12px;top:113px;white-space:pre-line;font-size:9px;color:#f6eacb;background:#142e24d9;border-radius:7px;padding:5px 8px;line-height:1.7;pointer-events:none}.health[data-low=true] #hp{color:#ff9a9d}.health[data-low=true]{border-color:#ff8b8b77}
html[data-screen=menu] #bottom,html[data-screen=menu] .match-hud,html[data-screen=menu] #radar{visibility:hidden}html[data-screen=menu] .topbar{opacity:.6}html[data-motion=reduced] *,html[data-motion=reduced] *::before{animation:none!important;transition:none!important}
@keyframes hero-float{0%,100%{transform:translateY(0) rotate(-1deg)}50%{transform:translateY(-7px) rotate(1deg)}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
@media(max-width:600px){#overlay{padding:10px;align-items:start}.menu{width:100%;padding:17px 15px;gap:15px 12px;border-radius:19px;grid-template-columns:minmax(0,1fr) 112px;min-height:0;margin:auto}.brand{font-size:21px;letter-spacing:-1px}.brand small{font-size:6px;letter-spacing:1.1px;margin-top:7px}.lobby-tools{gap:4px}.lobby-tools button{min-height:33px;padding:4px 7px;font-size:10px}#settings-open{width:33px;font-size:18px}#menu-intro{align-self:center}.menu h2{font-size:34px}.menu .eyebrow{font-size:7px;letter-spacing:.12em;margin-bottom:9px}.menu #summary{font-size:10px;line-height:1.55;margin-top:10px}#hero-showcase{grid-column:2;grid-row:2/4;min-height:0}#hero-showcase>img{height:129px;max-width:110px}.hero-halo{width:150px;height:150px;top:-10px}.hero-label{font-size:7px;letter-spacing:.04em;padding:5px 9px;margin-top:10px}.hero-label small{font-size:7px}#career{gap:15px}#career b{font-size:20px}#career span{font-size:6px;max-width:65px}#map-picker{grid-column:1/-1;grid-row:4;gap:7px}.map-card img{height:72px}.map-card span{padding:7px 6px}.map-card b{font-size:9px}.map-card small{font-size:7px}.menu-actions{grid-column:1/-1;grid-row:5;gap:7px}#selected-mode{font-size:10px;display:flex;align-items:center;justify-content:space-between;margin:3px 0}#selected-mode small{font-size:8px;margin:0}#start{font-size:21px;min-height:51px}#menu-note{grid-row:6;font-size:7px;line-height:1.5}#result-stats{gap:5px}#result-stats b{font-size:24px}#result-stats span{font-size:6px}#result-stats>div{padding:11px 3px}#overlay[data-view=paused] .menu{margin:auto}#overlay[data-view=won] #heading,#overlay[data-view=lost] #heading{font-size:34px}#overlay:is([data-view=won],[data-view=lost],[data-view=draw]) #hero-showcase>img{height:100px}.panel-dialog{padding:18px}.setting-row{font-size:12px}.guide-grid{grid-template-columns:1fr}.guide-grid article{display:grid;grid-template-columns:65px 1fr;gap:0 10px;padding:11px}.guide-grid img{width:60px;height:56px;grid-row:1/3;align-self:center}.guide-grid h3{margin:0}.guide-grid p{margin:4px 0 0;font-size:10px}.control-guide{gap:12px}.control-guide p{font-size:10px}#zone-alert{top:83px;font-size:8px;padding:4px 7px}#kill-feed{top:122px;right:8px;font-size:8px;max-width:160px}}
@media(max-height:520px) and (orientation:landscape){#overlay{padding:8px}.menu{width:min(830px,100%);padding:12px 20px;gap:9px 20px;min-height:0;grid-template-columns:1.2fr .8fr;border-radius:16px}.brand{font-size:21px}.brand small{font-size:6px;margin-top:5px}.lobby-tools button{min-height:30px;padding:3px 8px}#settings-open{height:30px;width:32px;font-size:17px}.menu h2{font-size:34px}.menu .eyebrow{font-size:7px;margin-bottom:6px}.menu #summary{font-size:10px;line-height:1.4;margin-top:7px;max-width:50ch}#hero-showcase{min-height:0;grid-row:2/4}#hero-showcase>img{height:112px}.hero-halo{height:140px;width:140px}.hero-label{font-size:7px;padding:4px 12px;margin-top:7px}.hero-label small{font-size:7px}#career{gap:20px}#career b{font-size:18px}#career span{font-size:6px}#map-picker{grid-column:1;grid-row:4}.map-card img{height:44px}.map-card span{padding:5px 6px}.map-card b{font-size:9px}.map-card small{display:none}.menu-actions{grid-column:2;grid-row:4}#start{min-height:43px;font-size:20px}#selected-mode{font-size:10px;margin-bottom:0}#selected-mode small{font-size:8px}#menu-note{font-size:7px;grid-row:5;padding:0}.panel-dialog{max-height:calc(100dvh - 16px);padding:16px 20px}.setting-row{padding:10px 0}.menu #result-stats{grid-row:3}#result-stats>div{padding:8px}#result-stats b{font-size:22px}#result-stats span{font-size:7px}#overlay:is([data-view=won],[data-view=lost],[data-view=draw]) #hero-showcase>img{height:90px}#overlay[data-view=paused] .menu{gap:14px}#overlay[data-view=paused] .menu h2{font-size:34px}#zone-alert{top:9px;font-size:8px}#kill-feed{top:114px}}
html[data-screen=menu] .topbar{display:none}html[data-screen=menu] #arena{height:calc(100dvh - 29px)}
@media(max-height:520px) and (orientation:landscape){html[data-screen=menu] #arena{height:100dvh}}

#arena{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}.panel-dialog{-webkit-user-select:text;user-select:text}#notice{max-width:calc(100% - 24px)}

#equipment-status{display:flex;gap:5px;margin-left:4px}#equipment-status>span{display:flex;align-items:center;gap:2px;color:#e0eac9;font-size:8px}#equipment-status img{width:15px;height:15px;object-fit:contain}#equipment-status b{font-size:8px}
@media(max-height:520px) and (orientation:landscape){#equipment-status img{height:12px;width:12px}#equipment-status b{font-size:7px}}
html:is([data-screen=paused],[data-screen=won],[data-screen=lost],[data-screen=draw]) .topbar{display:none}
html:is([data-screen=paused],[data-screen=won],[data-screen=lost],[data-screen=draw]) #arena{height:calc(100dvh - 29px)}
@media(max-height:520px) and (orientation:landscape){
 html:is([data-screen=paused],[data-screen=won],[data-screen=lost],[data-screen=draw]) #arena{height:100dvh}
 #overlay:is([data-view=won],[data-view=lost],[data-view=draw]) #hero-showcase{height:90px;min-height:0}
 #overlay:is([data-view=won],[data-view=lost],[data-view=draw]) .menu{gap:8px 20px}
}
@media(max-height:700px) and (orientation:portrait){
 .menu{gap:10px 12px;padding:14px}.menu h2{font-size:30px}.menu #summary{display:none}#hero-showcase>img{height:105px}.map-card img{height:50px}.map-card small{display:none}.hero-label{margin-top:5px}#start{min-height:45px}#menu-note{font-size:7px}#career b{font-size:18px}
}

@media(min-width:901px) and (min-height:521px) and (pointer:fine){
 #bottom #ammo-hud{width:350px;grid-template-columns:25px 85px minmax(0,1fr);gap:8px;min-height:60px}#bottom #ammo-count{font-size:24px}#bottom #ammo-image{width:24px;height:35px}#bottom #magazine{grid-column:3;grid-row:1;align-content:center;padding:0 0 0 8px;border:0;border-left:1px solid #fff2;gap:3px 2px}#bottom #magazine img{width:7px;height:20px}
}
@media(min-width:561px) and (max-width:900px) and (min-height:521px) and (pointer:fine){
 #bottom{flex-wrap:wrap;width:min(560px,calc(100% - 18px));justify-content:center}#bottom #ammo-hud{width:100%;grid-template-columns:25px 85px minmax(0,1fr);border:0;border-bottom:1px solid #fff2;gap:8px}#bottom #magazine{grid-column:3;grid-row:1;align-content:center;border:0;border-left:1px solid #fff2;padding:0 0 0 8px;gap:3px 2px}#bottom #magazine img{width:7px;height:20px}
}

@keyframes hero-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-6px)}}
