/* Combat presents health, enemies, aim and actionable status. Details live in Pause. */
.playing header{top:16px;right:16px;left:auto;justify-content:flex-end;pointer-events:none}
.playing .brand,.playing .pill,.playing #resetcampaign,.playing #fullscreenbutton,.playing #music,.playing #sound,.playing #padstatus{display:none}
.playing header .topright{max-width:none;gap:6px;flex-wrap:nowrap}
.playing #controllerbutton,.playing #pause{pointer-events:auto;font-size:0;min-width:44px;min-height:44px;padding:0;border-radius:10px}
.playing #controllerbutton::before{content:'⚙';font-size:24px}
.playing #pause::before{content:'Ⅱ';font-size:24px}
#hud .hudtop{top:16px;left:16px;gap:6px}
#hud .stat{min-width:62px;padding:7px 11px;box-shadow:none;background:#0b293cb3;border:1px solid #b1dce633;border-radius:10px}
#hud .stat small{font-size:12px;letter-spacing:.6px}
#hud .stat strong{font-size:23px;line-height:1.1;margin-top:2px}
#hud #missionpanel{top:88px;left:16px;width:auto;max-width:min(360px,42vw);padding:6px 9px;box-shadow:none;background:#0b293ca6;border:0}
#hud #missionhud{font-size:14px;line-height:1.3;margin:0}
#hud #bossbar{top:16px;left:50%;width:min(420px,44vw);padding:7px 12px;background:#231e30dc;border-color:#df9c6470}
#hud #bossname{font-size:14px;line-height:1.2}
#hud #bossbar .track{height:6px;margin-top:6px}
#hud #bosscue{font-size:12px;margin-top:5px;line-height:1.2;color:#ffd69d}
#hud.boss-entrance #bossbar{visibility:hidden}
#hud #targetinfo{width:92px;max-width:92px;top:calc(50% + 22px)}
#hud #targetinfo>div{margin:0;height:4px}
#hud .hudbottom{left:16px;right:284px;bottom:16px;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:10px}
#hud .healthbox{flex:none;width:160px;padding:9px 11px;box-shadow:none;background:#0b293cbd;border:1px solid #b1dce638}
#hud .healthbox small{font-size:12px;letter-spacing:.4px}
#hud .healthbox .track{height:7px;margin-top:7px}
#hud .weapon{min-width:0;max-width:230px;flex:1;padding:9px 11px;background:#0b293cbd;box-shadow:none}
#hud #weaponlabel{display:block;font-size:12px;line-height:1.3;letter-spacing:.25px;color:#ffe4b6}
#hud #specialhud{position:static;transform:none;flex:none;width:114px;max-width:none;min-height:44px;padding:8px;border:1px solid #72c8b84a;border-radius:10px;background:linear-gradient(90deg,#236b68aa var(--charge,0%),#0b293ccc var(--charge,0%));font-size:13px;line-height:1.2;pointer-events:auto;color:#d4f8ed}
#hud #specialhud:disabled{cursor:default;opacity:.85}
#hud #specialhud.ready,#touch #specialaction.ready{border-color:#ffe09c;color:#ffe6ad;box-shadow:0 0 12px #efbf443b}
#hud #weaponslots{left:16px;right:284px;top:auto;bottom:82px;justify-content:flex-start;max-width:none;max-height:46px;gap:5px;padding:2px 0}
#hud #weaponslots button{width:36px;min-height:36px;padding:5px;flex:none;font-size:13px;text-align:center;box-shadow:none}
#hud #weaponslots button:last-child{min-width:42px}
#hud #powers{top:auto;bottom:136px;left:16px;display:flex;flex-direction:row;gap:5px;width:auto;max-width:40vw}
#hud #powers span{display:flex;gap:5px;align-items:center;padding:4px 7px;border-radius:7px;font-size:13px;background:#0b293cbd}
#hud #powers i{font-size:17px;font-style:normal;line-height:1}
#hud #powers b{margin:0}
#hud #notice{top:auto;bottom:179px;left:16px;transform:none;width:max-content;max-width:min(470px,65vw);padding:7px 10px;border-radius:8px;background:#0b293cc9;text-align:left;font-size:14px;line-height:1.25;text-shadow:none;white-space:normal}
#hud #notice:empty{display:none}
#hud #radarbox{height:auto;padding:0;background:transparent;box-shadow:none;border:0}
#hud #bossalert{top:24%;width:min(520px,60vw);padding:12px 16px;border-color:#ffb250;background:#391829ed;box-shadow:0 0 30px #ff81365c}
#hud #bossalert strong{font-size:clamp(24px,3vw,38px)}
#hud #bossalertname{font-size:14px}
#pauserundetails{margin:16px 0 0;text-align:left;border-top:1px solid #8cc5c43d;padding-top:10px}
#pauserundetailstoggle{font-size:14px;font-weight:bold;color:#ffdda0;cursor:pointer;padding:5px 0;min-height:32px}
#pausedetails{white-space:pre-line;font-size:14px;line-height:1.45;max-height:30dvh;overflow-y:auto;color:#d4e9e8;margin-top:7px;padding-right:5px}

@media(orientation:landscape){
 .touch-device.playing header{top:calc(8px + var(--safe-top));right:calc(12px + var(--safe-right));left:auto}
 .touch-device #hud .hudtop{top:calc(8px + var(--safe-top));left:calc(12px + var(--safe-left))}
 .touch-device #hud .stat{min-width:58px;padding:5px 9px}
 .touch-device #hud .stat strong{font-size:20px}
 .touch-device #hud #mobilebrief{top:calc(65px + var(--safe-top));gap:6px;max-width:42vw}
 .touch-device #hud #missionpanel{position:static;max-width:100%;width:auto;padding:5px 7px}
 .touch-device #hud #missionhud{font-size:12px!important}
 .touch-device #hud #bossbar{position:static;transform:none;width:100%;max-width:none;padding:6px 8px}
 .touch-device #hud #bossname{font-size:13px}
 .touch-device #hud #bossbar .track{height:5px;margin-top:5px}
 .touch-device #hud #bosscue{font-size:12px;margin-top:4px}
 .touch-device #hud .hudbottom{left:calc(12px + var(--safe-left));right:auto;bottom:calc(12px + var(--safe-bottom));gap:0}
 .touch-device #hud .healthbox{width:140px;padding:7px 9px}
 .touch-device #hud .weapon,.touch-device:not(.controller-input) #hud #specialhud,.touch-device #hud #weaponslots{display:none}
 .touch-device.controller-input #hud .hudbottom{gap:8px}
 .touch-device #hud #powers{left:calc(12px + var(--safe-left));bottom:calc(70px + var(--safe-bottom));max-width:30vw;gap:4px}
 .touch-device #hud #powers span{padding:3px 5px;font-size:12px}
 .touch-device #hud #notice{left:50%;bottom:calc(76px + var(--safe-bottom));transform:translateX(-50%);width:max-content;max-width:40vw;text-align:center;font-size:13px;padding:5px 8px}
 .touch-device #hud #bossalert{top:22%;width:min(380px,55vw);padding:9px 12px}
 .touch-device #hud #bossalert strong{font-size:26px}
 .touch-device #hud #bossalertname{font-size:13px}
 .touch-device #pauserundetails{margin-top:10px;padding-top:6px}
 .touch-device #pauserundetailstoggle{font-size:13px}
 .touch-device #pausedetails{font-size:13px;line-height:1.35;max-height:24dvh}
 .touch-device #touch #specialaction{background:linear-gradient(90deg,#286b68e6 var(--charge,0%),#143d51dd var(--charge,0%));font-size:12px;border:1px solid #96d9c66b}
}

@media(max-width:720px){
 html:not(.touch-device) #hud .weapon{display:none}
 html:not(.touch-device) #hud .healthbox{width:128px}
 html:not(.touch-device) #hud #specialhud{width:104px}
html:not(.touch-device) #hud .hudbottom{right:auto;gap:8px}
}

/* Progress and competition stay in the menu, leaving the arena unobstructed. */
#unlockpromise{font-size:14px;line-height:1.4;color:#ffdda0;margin:8px 0 14px;max-width:34em}
.endlessmapactions{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}
.endlessmapactions button{font-size:14px;padding:10px 14px;margin:0;width:auto;flex:1}
#recoveryboard,#leaderboarddialog,#endlessentry{box-sizing:border-box;width:min(760px,94vw);max-height:94dvh;overflow:auto;background:#102f40;color:#e6f3ee;border:1px solid #78b7be;border-radius:18px;padding:24px}
.boardheader,.boardactions{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.boardheader h2{font-size:26px;margin:0 0 12px}
.boardheader button,.boardactions button{font-size:14px;min-height:42px}
.boardactions .primary{width:auto;margin:0}
.rankcard{padding:18px;border:1px solid #ddbe7155;background:#24536355;border-radius:12px;margin:12px 0}
.rankcard>span{font-size:12px;letter-spacing:1px;color:#ffdda0}.rankcard h3{font-size:26px;margin:6px 0}.rankcard p{font-size:14px;line-height:1.3;margin:7px 0}
#recoveryboard progress{width:100%;height:10px;accent-color:#71e1b7}
#recoverygoals{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.goalcard{display:flex;flex-direction:column;gap:8px;padding:14px;background:#0a2234;border:1px solid #71959d55;border-radius:10px;font-size:14px}
.goalcard strong{color:#ffdda0}.goalcard span{color:#bddbdf}
#endlessentry{max-width:600px}#endlessentry p{font-size:16px;line-height:1.45}#endlessentry label{display:block;margin:12px 0 6px;font-size:14px}
#endlessname,#leaderboardworld{background:#082637;color:#f4f8eb;border:1px solid #82afb9;border-radius:8px;padding:10px;font:inherit;font-size:16px;max-width:100%;box-sizing:border-box}
#endlessname{width:100%}#endlessentrystatus{min-height:1.4em;color:#ffdda0}
#leaderboarddialog table{width:100%;border-collapse:collapse;margin:14px 0;font-size:14px}
#leaderboarddialog th{text-align:left;font-size:12px;color:#aed4d5;padding:8px}#leaderboarddialog td{padding:10px 8px;border-top:1px solid #7aabad33}#leaderboarddialog td:nth-child(3){color:#ffdc91;font-weight:bold}
#leaderboarddialog p{font-size:14px;margin:8px 0}#leaderboardbest{color:#ffdda0}#leaderboardstatus{min-height:1.4em;color:#bedce0}
#endlessresults{padding:8px 12px;border:1px solid #83b6b333;border-radius:10px;font-size:14px}#endlessresults p{margin:0 0 6px;color:#c9e4df}#endlessresults button{font-size:14px;padding:8px;margin:3px}
#endlessresults{margin-top:12px}
@media(orientation:landscape) and (max-height:550px){
 .touch-device #unlockpromise{font-size:12px;margin:5px 0;line-height:1.2}
 .touch-device .endlessmapactions{margin:5px 0;gap:5px;flex-wrap:nowrap}.touch-device .endlessmapactions button{font-size:12px;padding:7px 10px;min-height:34px;margin:0;width:auto}
 .touch-device #worldweaponbrief{font-size:12px;line-height:1.2;padding:4px 6px}
 .touch-device #recoveryboard,.touch-device #leaderboarddialog,.touch-device #endlessentry{padding:12px;max-height:96dvh}
 .touch-device .boardheader h2{font-size:20px;margin:0}.touch-device .boardheader button,.touch-device .boardactions button{min-height:32px;padding:6px 10px}
 .touch-device .rankcard{padding:10px;margin:8px 0}.touch-device .rankcard h3{font-size:20px;margin:3px 0}.touch-device .rankcard p{margin:3px 0}
 .touch-device .goalcard{padding:8px;gap:5px}.touch-device #recoveryboard>.tiny{font-size:12px;margin:6px 0}
 .touch-device #leaderboarddialog table{margin:6px 0}.touch-device #leaderboarddialog td,.touch-device #leaderboarddialog th{padding:5px}
 .touch-device #leaderboarddialog p{margin:5px 0;font-size:12px}.touch-device #leaderboardworld{padding:6px;font-size:14px}
 .touch-device #endlessentry h2{font-size:22px;margin:0}.touch-device #endlessentry p{font-size:14px;margin:8px 0}.touch-device #endlessentry label{margin:5px 0}.touch-device #endlessname{padding:7px}
 .touch-device #endlessresults{padding:5px;font-size:12px;margin-top:8px}.touch-device #endlessresults button{padding:5px;font-size:12px;min-height:30px}
}
@media(orientation:landscape) and (max-height:400px){
 .touch-device .menuactions{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
 .touch-device #worldmap{grid-column:span 2}
 .touch-device #menu .menuactions button{font-size:13px;min-height:44px;padding:5px}
 .touch-device #menu h1{font-size:26px;margin-bottom:5px}
 .touch-device #menu .eyebrow{margin-bottom:4px}
 .touch-device #campaignprogress{font-size:12px;line-height:1.2;margin:4px 0}
 .touch-device #titleaudio{margin-top:4px}
 .touch-device .volumerocker button,.touch-device .volumerocker input{min-height:36px}
 .touch-device .watchintro{min-height:28px}
 .touch-device #leaderboarddialog td,.touch-device #leaderboarddialog th{padding:4px}
}
