#identity{
 display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:7px;align-items:end;
 margin-bottom:9px
}
#identity label,#identity input{margin-bottom:0}
#identity input,#lobby #identity button{height:46px}
#lobby #identity button{
 box-shadow:none;background:linear-gradient(140deg,#134655,#153648);border:1px solid #59d4cc87;
 color:#a3ffe5;display:flex;gap:6px;align-items:center;justify-content:center;padding:0 10px;font-size:14px
}
#lobby #shooting{color:#c4eaff}
#identity svg{max-width:19px}
#menu #rangeSet{margin-bottom:10px}
#rangeSet>div{display:grid;grid-template-columns:1fr 1fr;gap:9px}
@media(max-width:390px){#rangeSet>div{grid-template-columns:1fr}}
#rangeSet label{min-width:0}
#menu #rangeSet select{font-size:16px;margin-top:4px;width:100%;padding:8px 6px}
#rangeSet #rangeHealth{margin-top:9px;display:flex;align-items:center;gap:6px;flex-wrap:wrap}
#menu #rangeHealth button{padding:0 6px;flex:1;white-space:nowrap;font-variant-numeric:tabular-nums;color:#ffcdc7}
#menu #rangeHealth button[aria-pressed=true]{color:#fff;box-shadow:inset 0 0 0 1px #ffaea4;background:#572c40}
@media(max-width:390px){#rangeHealth span{flex-basis:100%}}
#menu #rangeAmmo{margin-top:8px;width:100%;background:#164454;color:#93f4e4}
#hud.drill :is(#mic,#talk){display:none}
#hud.drill #score{font-variant-numeric:tabular-nums}
@media(max-width:1020px){
 #lobby #identity svg{display:none}
 #lobby #identity button{font-size:13px;padding:0 8px}
}
@media(orientation:portrait),(max-width:660px){
 #identity{grid-template-columns:1fr 1fr}
 #identity label{grid-column:1/-1}
 #lobby #identity svg{display:block}
}
@media(orientation:portrait){
 #hud.drill #score{top:calc(2% + 101px);white-space:nowrap;width:auto}
 #hud.drill :is(#notice,#halo){top:calc(2% + 150px)}
 #hud.drill:has(#halo:not([hidden])) #notice{top:calc(2% + 190px)}
}
.rs-name em.botBadge{white-space:nowrap;color:#c6e6f7;background:#375874}
#menu :is(#bots,#botsTab)[hidden]{display:none}
#menu #bots{max-width:460px;margin:auto}
.botHeader,.botAdd,#botList>div{display:flex;align-items:center;gap:10px}
.botHeader b{flex:1;font-size:1.1em}
#botSeats{color:var(--aqua)}
#menu .botAdd{margin-block:14px 8px;align-items:end}
#menu .botAdd label{color:var(--sub);flex:1;font-size:12px}
#menu #bots select{height:44px;font-size:16px;padding:6px 8px;border:1px solid #456478;color:white}
#menu #botLevel{margin-top:4px;display:block}
#menu #botAdd{color:#0d3046;background:var(--aqua);font-weight:700}
#menu #botList>div{margin-top:7px;padding-top:7px;border-top:1px solid var(--border)}
#menu #botList b{min-width:0;flex:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
#menu #botList .blue{color:#85dffa}#menu #botList .coral{color:#ffaf95}
#menu #botList select{width:132px}
#menu #botList button{width:44px;color:#ffaf95;background:#482f3c;padding:6px}
#menu #botStatus{font-size:.9em;margin:12px 0 3px;color:var(--sub)}
@media(max-width:380px){
 #menu:has(#botsTab:not([hidden])) [role=tab]{font-size:12px}
 #menu #botList select{width:115px}
}
#hud.coaching :is(#score,#mic,#talk,#net:not(.offline)){display:none}
#coach{
 --tone:#ffcb72;--course:0%;
 z-index:6;top:2%;left:50%;transform:translateX(-50%);padding:8px 12px 12px;
 width:min(440px,58vw);text-shadow:none;color:white;
 background:linear-gradient(120deg,#14354bf5,#0a2137f5);box-shadow:0 5px 18px #081d3438;
 border:1px solid #def8ff3a;border-radius:14px;overflow:hidden;
 font:600 15px/1.15 system-ui
}
#coach>div{display:flex;align-items:center;gap:8px}
#lessonGoal{flex:1;font-weight:730}
#lessonN{font-size:.86em;font-variant-numeric:tabular-nums;color:var(--tone)}
#lessonHint{margin:5px 0 0;color:#d6ecef;font-size:.92em}
#coach i{position:absolute;bottom:0;left:0;width:var(--course);height:3px;background:var(--tone)}
#hud #coach button{
 display:flex;align-items:center;justify-content:center;height:34px;min-width:34px;
 margin:0;border:1px solid #c2dff43a;padding:0 8px;border-radius:8px;box-shadow:none;
 font:700 .83em system-ui;white-space:nowrap;color:#bff4ef;background:#34546f8a
}
#hud #coach button[hidden],#coach[hidden],#coachMenu[hidden],#menu #lessonListen[hidden]{display:none}
#lessonVoice svg{width:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round}
#coach.cleared{--tone:#77edd4}
#coach.cleared strong{color:var(--tone)}
#coachMenu{
 margin-bottom:18px;padding:12px;background:#163749;border-radius:12px;border:1px solid #42657d
}
#coachMenu div{display:flex;align-items:center;gap:6px}
#coachMenu p{margin:9px 0;font-size:14px;color:#d5ebf6}
#menu #coachMenu select{width:auto;min-width:0;flex:1;margin:0;font-size:16px;padding:9px}
#menu #coachMenu button{box-shadow:none;padding:6px 10px;min-width:40px;font-size:14px;background:#224961}
#menu #coachMenu div:last-child button{flex:1}
#hud.coaching .guided{outline:2px solid #ffe38d;outline-offset:3px}
#hud.coaching:is(#hud):has(#mission:not([hidden])){--goalTop:calc(2% + 87px)}
#hud.coaching #halo,#hud.coaching #notice{top:calc(2% + 88px)}
#hud.coaching:has(#halo:not([hidden])) #notice{top:calc(2% + 130px)}
#hud.coaching #net.offline{top:35%;right:2%}
@media(max-height:610px),(max-width:800px){
 #identity{margin-bottom:5px}#identity input,#lobby #identity button{height:34px}
 #coach{padding:4px 9px 7px;font-size:13px;width:min(390px,57vw)}
 #coach>div{gap:6px}#lessonHint{margin-top:2px}
 #hud #coach button{padding:0 6px}
 #hud.coaching:is(#hud):has(#mission:not([hidden])){--goalTop:calc(2% + 70px)}
 #hud.coaching #halo,#hud.coaching #notice{top:calc(2% + 70px)}
 #hud.coaching:has(#halo:not([hidden])) #notice{top:calc(2% + 108px)}
}
@media(max-width:690px){
 #lobby #learn{padding:4px;gap:4px}#lobby #learn svg{width:16px}
 #hud.coaching #tools{display:none}
 #coach{width:min(370px,96%)}
 #hud.coaching :is(#tideInfo,#train){top:calc(2% + 72px)}
 #hud.coaching:has(#train:not([hidden])) :is(#notice,#halo){top:calc(2% + 116px)}
}
@media(max-height:340px){
 #hud.coaching #notice{display:none}
 #hud.coaching:is(#hud):has(#mission:not([hidden])) #mission{left:2%;transform:none}
}
@media(prefers-reduced-motion:no-preference){
 #coach i{transition:width .34s ease-out}
 #hud.coaching .guided{animation:coachLight 1.7s ease-in-out infinite alternate}
 @keyframes coachLight{to{outline-color:#ffbf48;outline-offset:6px}}
}
