/* Test 9: compact gameplay HUD. Scoped to the arena and launch screen. */
.baant #nw-arena progress{appearance:none;-webkit-appearance:none;border:0;background:#17212ce0}
.baant #nw-launch{padding:18px;max-height:calc(100dvh - 24px)}
.baant #nw-launch .nw-launch-grid{gap:16px}
.baant #nw-launch .nw-dialog-head{margin-bottom:8px}
.baant #nw-launch .nw-launch-intro{margin:4px 0 10px;font-size:12px}
.baant #nw-launch .nw-launch-grid h3{margin:8px 0;font-size:15px}
.baant #nw-launch .nw-launch-actions{position:sticky;bottom:-18px;z-index:2;margin-top:10px;padding:10px 0;background:#101318f5}
.baant #nw-launch .nw-launch-actions button{min-height:44px;padding:8px 12px;font-size:13px}
.baant #nw-launch .nw-launch-note{margin:5px 0 0;font-size:10px}
@media(min-width:601px) and (min-height:501px) and (max-height:800px){.baant #nw-launch .nw-launch-heroes{max-height:236px!important}.baant #nw-launch .nw-launch-portrait{height:200px!important}.baant #nw-launch #nw-launch-art{height:82px!important}}
body.baant-playing{overscroll-behavior:none}
.baant #nw-arena{touch-action:none;overscroll-behavior:none;inset:auto 0 auto 0;top:var(--nw-screen-top,0px);height:var(--nw-screen-height,100dvh);width:100%;max-width:none;overflow:hidden;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.baant #nw-arena :is(button,summary,[data-control],canvas,#nw-joystick){touch-action:none;-webkit-tap-highlight-color:transparent}
.baant #nw-arena input{font-size:16px!important;user-select:text;-webkit-user-select:text;touch-action:manipulation}
.baant #nw-arena :is(.nw-camera-pad,.nw-equipment-bar,.nw-game-hint){display:none!important}
.baant #nw-arena .nw-hud-top{position:absolute;inset:max(8px,env(safe-area-inset-top)) max(10px,env(safe-area-inset-right)) auto max(10px,env(safe-area-inset-left));display:block;padding:0;border:0;background:none;pointer-events:none;z-index:7}
.baant #nw-arena .nw-hud-top>div:first-child{width:180px;max-width:31%;padding:0;border:0;background:none;box-shadow:none;border-radius:0;text-shadow:0 1px 4px #000;font-size:10px;line-height:1.4}
.baant #nw-mode-label{font-size:10px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#eddfbb}
.baant #nw-connection{display:none}
.baant #nw-wave-label{font-size:9px;color:#c4cdd5}
.baant #nw-arena .nw-core{position:absolute;top:0;left:50%;transform:translateX(-50%);width:160px;min-width:0;max-width:27%;padding:0;background:none;border:0;box-shadow:none;border-radius:0;font-size:10px;text-shadow:0 1px 4px #000}
.baant #nw-core-meter{height:6px!important;display:block;width:100%;margin-top:3px;border:0;background:#11171ddd;border-radius:3px;overflow:hidden}
.baant #nw-arena progress::-webkit-progress-bar{background:#17212ce0;border-radius:3px}
.baant #nw-arena progress::-webkit-progress-value{background:var(--health-color,#67e3bc);border-radius:3px}
.baant #nw-arena progress::-moz-progress-bar{background:var(--health-color,#67e3bc)}
.baant #nw-arena .nw-team-hud{position:absolute;top:49px;left:max(10px,env(safe-area-inset-left));width:138px;max-width:32%;display:grid;gap:4px;z-index:4}
.baant #nw-arena .nw-team-hud>div{display:grid;grid-template-columns:1fr 28px;gap:2px 4px;padding:0;background:none;border:0;border-radius:0;text-shadow:0 1px 4px #000}
.baant #nw-arena .nw-team-hud b{grid-column:1/-1;max-width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-size:10px;line-height:1.2}
.baant #nw-arena .nw-team-hud progress{width:100%;height:4px;align-self:center}
.baant #nw-arena .nw-team-hud span{font-size:9px;line-height:1;text-align:right}
.baant #nw-arena .nw-large-team{width:260px!important;max-width:36%!important;grid-template-columns:1fr 1fr;max-height:80px!important;overflow:auto;touch-action:pan-y}
.baant #nw-arena .nw-team-communication{position:absolute;top:max(6px,env(safe-area-inset-top));right:calc(max(10px,env(safe-area-inset-right)) + 48px);display:flex;gap:3px;z-index:8}
.baant #nw-arena .nw-team-communication button{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:1px;width:58px;min-width:44px;height:44px;min-height:44px;padding:3px;border:1px solid #bcc9d535;border-radius:8px;background:#070c1390;box-shadow:none;color:#ecf2f7;font-size:9px}
.baant #nw-arena .nw-team-communication .nw-icon{width:19px;height:19px}
.baant #nw-hud-mic.is-unavailable{color:#b8c2ce}.baant #nw-hud-mic.is-unavailable .nw-icon{color:#e1a26f}.baant #nw-hud-mic[aria-pressed=true]{border-color:#67e3bc;color:#67e3bc}
.baant #nw-hud-menu{position:absolute;right:0;top:0;pointer-events:auto}
.baant #nw-hud-menu summary{display:flex;align-items:center;justify-content:center;list-style:none;width:44px;height:44px;min-height:44px;border:1px solid #bcc9d535;background:#070c1390;border-radius:8px;cursor:pointer;color:#fff}
.baant #nw-hud-menu summary::-webkit-details-marker{display:none}.baant #nw-hud-menu summary .nw-icon{width:21px;height:21px}
.baant #nw-hud-menu .nw-hud-buttons{position:absolute;top:48px;right:0;display:grid;grid-template-columns:repeat(3,44px);max-width:none;gap:4px;padding:5px;background:#090e17f2;border:1px solid #465160;border-radius:9px;box-shadow:0 4px 20px #0007}
.baant #nw-hud-menu:not([open]) .nw-hud-buttons{display:none!important}
.baant #nw-hud-menu .nw-hud-buttons button{width:44px;height:44px;min-width:44px;min-height:44px;margin:0;border-radius:6px;font-size:18px;background:#17202dcc;color:#eef5ff}
.baant #nw-arena .nw-joystick{width:94px;height:94px;left:max(18px,env(safe-area-inset-left));bottom:max(18px,env(safe-area-inset-bottom));border:1px solid #b5d0d96b;background:#08121e52;box-shadow:inset 0 0 20px #9acae014}
.baant #nw-stick{width:38px;height:38px;left:calc(50% - 19px);top:calc(50% - 19px);border:1px solid #abd6e8a0;background:#8ac4d464;box-shadow:0 1px 8px #0004}
.baant #nw-arena .nw-action-pad{position:absolute;right:max(16px,env(safe-area-inset-right));bottom:max(16px,env(safe-area-inset-bottom));width:206px;height:166px;z-index:5;pointer-events:none}
.baant #nw-arena .nw-action-pad button{position:absolute;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:4px;min-width:44px;min-height:44px;border-radius:50%;border:1px solid #b6c5d68c;background:radial-gradient(at 40% 30%,#1e2b3bd9,#080e19d9);color:#e8edf4;box-shadow:inset 0 0 10px #ffffff0b,0 3px 8px #0005;pointer-events:auto}
.baant #nw-arena .nw-action-pad b{display:flex;align-items:center;justify-content:center;font-size:22px;line-height:1}.baant #nw-arena .nw-action-pad span{font-size:9px;font-weight:600;line-height:1.1}
.baant #nw-arena .nw-action-pad .nw-icon{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.baant #nw-arena .nw-action-pad #nw-attack{width:72px;height:72px;bottom:0;right:0;border:2px solid #e3b268;background:radial-gradient(at 40% 30%,#653126cf,#201620eb);color:#ffe1a8}
.baant #nw-arena .nw-action-pad #nw-attack .nw-icon{width:29px;height:29px}
.baant #nw-arena .nw-action-pad #nw-skill{width:58px;height:58px;bottom:87px;right:5px;border-color:#7ee0ce;color:#a6f4e1}
.baant #nw-arena .nw-action-pad #nw-dodge{width:52px;height:52px;bottom:72px;right:80px;border-color:#ae9ad4;color:#decaff}
.baant #nw-arena .nw-action-pad #nw-help{width:50px;height:50px;bottom:4px;right:92px;border-color:#c3af78;color:#f3dca1}
.baant #nw-arena .nw-action-pad #nw-jump{width:46px;height:46px;bottom:118px;right:147px;border-color:#89b4d2;color:#bfe4fb}
.baant #nw-arena .nw-action-pad .pressed{filter:brightness(1.5);box-shadow:0 0 0 3px #ffffff30,inset 0 0 12px #ffffff35;transform:scale(.96)}
.baant #nw-arena .nw-sound-caption{top:46px;left:50%;transform:translateX(-50%);max-width:38%;font-size:10px;line-height:1.3;padding:4px 7px;background:#101925cc;border:0;pointer-events:none}
.baant #nw-arena .nw-nameplate{width:90px;padding:0;grid-template-columns:1fr 25px;gap:2px 3px;background:none;border:0;box-shadow:none;border-radius:0;text-shadow:0 1px 3px #000,0 0 5px #000}
.baant #nw-arena .nw-nameplate b{grid-column:1/-1;font-size:10px;text-align:center;line-height:1.2}
.baant #nw-arena .nw-nameplate .nw-head-badge{position:absolute;left:-12px;top:0;width:12px;height:12px;opacity:.85}
.baant #nw-arena .nw-head-health{grid-column:1;height:4px;align-self:center;background:#161c28dd}
.baant #nw-arena .nw-head-health i{background:var(--health-color,#67e3bc)}
.baant #nw-arena .nw-nameplate small{grid-column:2;font-size:8px;text-align:right;white-space:nowrap;overflow:hidden;max-width:25px;line-height:1.1}
.baant #nw-chat-feed{position:absolute;left:max(10px,env(safe-area-inset-left));top:94px;width:240px;max-width:36%;max-height:90px;overflow:hidden;z-index:4;pointer-events:none;text-shadow:0 1px 3px #000,0 0 5px #000;background:linear-gradient(90deg,#050a1288,transparent);border:0;border-radius:0;padding:3px 6px 3px 0;font-size:11px;line-height:1.45}
.baant #nw-chat-feed small{font-size:8px;color:#b9c4d0}.baant #nw-chat-feed p{margin:2px 0;font-size:11px;color:#f1f5f9;line-height:1.4;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow-wrap:anywhere}.baant #nw-chat-feed b{font-weight:700}.baant #nw-chat-feed .nw-feed-empty{color:#adbaca;font-size:10px}
.baant #nw-arena .nw-large-team~#nw-chat-feed{top:142px;max-height:60px}
.baant #nw-arena>#nw-chat{top:58px!important;right:max(8px,env(safe-area-inset-right))!important;left:auto!important;bottom:auto!important;width:min(320px,calc(100% - 20px))!important;height:auto!important;max-height:calc(var(--nw-screen-height,100dvh) - 68px)!important;padding:7px!important;gap:5px;background:#0a101be8;backdrop-filter:blur(8px);border:1px solid #4c596b;border-top:1px solid #be354b;box-shadow:0 6px 20px #0006;border-radius:8px;overflow:auto!important;touch-action:pan-y}
.baant #nw-arena>#nw-chat .nw-dialog-head{order:0;min-height:0;height:0;margin:0;padding:0}.baant #nw-arena>#nw-chat .nw-dialog-head b{display:none}.baant #nw-arena>#nw-chat #nw-chat-close{position:absolute;right:7px;top:7px;width:44px;height:44px}
.baant #nw-arena>#nw-chat .nw-chat-tabs{order:1;margin:0 48px 0 0;padding:0;min-height:44px}.baant #nw-arena>#nw-chat .nw-chat-tabs button{min-height:44px;padding:3px;font-size:10px}
.baant #nw-arena>#nw-chat #nw-chat-status{order:2;font-size:10px;line-height:1.3;margin:0}
.baant #nw-arena>#nw-chat :is(.nw-chat-text-pane,.nw-voice,.nw-chat-style){order:3;flex:none;overflow:visible}
.baant #nw-arena>#nw-chat .nw-chat-log{display:none!important}
.baant #nw-arena>#nw-chat .nw-chat-footer{min-height:18px;font-size:9px;gap:3px}
.baant #nw-arena>#nw-chat .nw-chat-footer button{min-height:32px;font-size:9px}
.baant #nw-arena>#nw-chat .nw-voice{padding:6px;background:transparent;border:0;font-size:11px}.baant #nw-arena>#nw-chat .nw-voice>b,.baant #nw-arena>#nw-chat .nw-voice small{display:none}
.baant #nw-arena>#nw-chat .nw-voice-actions button{font-size:11px;min-height:44px}.baant #nw-arena>#nw-chat .nw-voice p{font-size:11px}
.baant #nw-arena.is-typing .nw-chat-tabs,.baant #nw-arena.is-typing #nw-quick-chat,.baant #nw-arena.is-typing #nw-chat-status{display:none!important}
.baant #nw-arena.is-typing>#nw-chat{top:8px!important;padding-right:55px!important;max-height:calc(var(--nw-screen-height,100dvh) - 16px)!important}
/* Character-first launch: the exact in-game character render, never stretched. */
.baant #nw-launch .nw-launch-heroes{display:grid;grid-template-columns:1fr 1fr;gap:6px;max-height:300px;overflow:auto}
.baant #nw-launch .nw-launch-hero{display:flex;align-items:center;gap:8px;min-height:76px;padding:5px 7px;border-radius:8px;text-align:left;position:relative}
.baant #nw-launch .nw-launch-hero img{display:block;width:50px;height:64px;object-fit:contain;flex:none;border-radius:5px;background:#121c2a}
.baant #nw-launch .nw-launch-hero>span{min-width:0;display:flex;flex-direction:column;gap:3px}.baant #nw-launch .nw-launch-hero b{font-size:13px;line-height:1.3}.baant #nw-launch .nw-launch-hero small{font-size:10px;line-height:1.3}
.baant #nw-launch .nw-launch-card{display:flex;flex-direction:column;align-self:start;min-height:0;background:#090f17;overflow:hidden}
.baant #nw-launch .nw-launch-portrait{margin:0;width:100%;height:242px;position:relative;background:radial-gradient(ellipse at center,#29394d,#0a1019);border-bottom:1px solid #35414f}
.baant #nw-launch #nw-launch-character{width:100%;height:100%;object-fit:contain;display:block;min-height:0}
.baant #nw-launch #nw-launch-character-name{position:absolute;bottom:8px;left:50%;transform:translateX(-50%);font-size:16px;font-weight:700;color:#fff;text-shadow:0 1px 4px #000;background:#080e19b0;padding:3px 14px;border-radius:6px;white-space:nowrap}
.baant #nw-launch #nw-launch-art{width:100%;height:102px;object-fit:contain;display:block;min-height:0;background:#080e16}
.baant #nw-launch .nw-image-label{display:none}.baant #nw-launch .nw-launch-card>div{padding:12px}.baant #nw-launch .nw-launch-card h3{font-size:17px;margin:4px 0}.baant #nw-launch .nw-launch-card p{font-size:11px;margin:4px 0}
@media(max-height:500px) and (orientation:landscape){
 .baant #nw-launch{padding:14px;max-height:calc(100dvh - 16px)}.baant #nw-launch .nw-launch-intro{display:none}.baant #nw-launch .nw-launch-heroes{max-height:160px}.baant #nw-launch .nw-launch-portrait{height:160px}.baant #nw-launch #nw-launch-art{height:65px}.baant #nw-launch .nw-launch-hero{min-height:66px}.baant #nw-launch .nw-launch-hero img{height:54px;width:42px}
}
@media(max-height:350px) and (orientation:landscape){
 .baant #nw-arena .nw-core{width:124px}.baant #nw-arena .nw-joystick{width:82px;height:82px;bottom:12px;left:12px}.baant #nw-arena .nw-action-pad{bottom:10px;right:10px}.baant #nw-arena .nw-action-pad #nw-attack{width:62px;height:62px}.baant #nw-arena .nw-action-pad #nw-skill{bottom:74px;right:0;width:52px;height:52px}.baant #nw-arena .nw-action-pad #nw-dodge{bottom:61px;right:68px;width:48px;height:48px}.baant #nw-arena .nw-action-pad #nw-help{bottom:0;right:76px;width:46px;height:46px}.baant #nw-arena .nw-action-pad #nw-jump{bottom:104px;right:124px;width:44px;height:44px}.baant #nw-chat-feed{top:85px;max-height:75px;font-size:10px}.baant #nw-chat-feed p{font-size:10px}.baant #nw-arena .nw-sound-caption{top:40px;font-size:9px}
}
@media(max-width:600px) and (orientation:portrait){.baant #nw-launch .nw-launch-grid{grid-template-columns:1fr}.baant #nw-launch .nw-launch-card{order:-1;display:grid;grid-template-columns:110px 1fr;gap:0}.baant #nw-launch .nw-launch-portrait{grid-row:span 2;height:150px;border:0}.baant #nw-launch #nw-launch-character-name{font-size:11px;bottom:0;padding:1px 4px}.baant #nw-launch #nw-launch-art{height:70px}.baant #nw-launch .nw-launch-card>div{padding:6px 10px}.baant #nw-launch .nw-launch-card h3{font-size:14px}.baant #nw-launch .nw-launch-card .nw-eyebrow,.baant #nw-launch .nw-launch-card .nw-pill{display:none}.baant #nw-launch .nw-launch-heroes{max-height:230px}.baant #nw-launch .nw-launch-hero{min-height:70px}.baant #nw-launch .nw-launch-hero img{width:42px;height:58px}}

/* Keep the newest messages below the whole team roster, including four-player rooms. */
.baant #nw-arena #nw-chat-feed{top:max(94px,calc(53px + var(--nw-team-rows,1)*24px));display:flex;flex-direction:column;justify-content:flex-end;max-height:min(90px,calc(100dvh - max(94px,calc(53px + var(--nw-team-rows,1)*24px)) - 100px))}
.baant #nw-arena #nw-chat-feed p{flex-shrink:0;-webkit-line-clamp:1}
.baant #nw-arena .nw-large-team~#nw-chat-feed{top:142px;max-height:min(74px,calc(100dvh - 242px))}

/* Test 10 survival: readable feedback without covering the arena. */
.baant #nw-arena .nw-action-pad #nw-ultimate{position:absolute;bottom:0;right:155px;width:48px;height:48px;background:#2d1740c9;border:1px solid #ba91ef;color:#e7d8ff}
.baant #nw-ultimate.is-ready{background:#8026c4;box-shadow:0 0 16px #a655d970}.baant #nw-help.is-healing{border-color:#66ffba;box-shadow:0 0 12px #31c68c80}
.baant #nw-arena .nw-survival-status{position:absolute;left:50%;top:41px;transform:translateX(-50%);max-width:45%;margin:0;padding:5px 10px;border-radius:6px;background:#0a1723e6;border:1px solid #66dfba70;font-size:11px;line-height:1.4;color:#dcffee;z-index:6;pointer-events:none;text-align:center}
.baant #nw-arena .nw-survival-status.is-danger{border-color:#ff5268;color:#ffe2e8}.baant #nw-arena #nw-end{background:#02050a99;backdrop-filter:blur(2px);padding:20px;gap:8px}.baant #nw-end h2{font-size:clamp(22px,3.5vw,36px);margin:0}.baant #nw-end p{font-size:clamp(12px,1.4vw,16px);max-width:520px;margin:4px}.baant #nw-end .nw-btn{min-height:44px;padding:10px 20px}
.baant .nw-name-row{display:grid;grid-template-columns:auto 1fr;gap:10px;align-items:center;margin:0 0 10px}.baant .nw-name-row label{font-size:12px}.baant .nw-name-row input,.baant #nw-edit-name{font-size:16px!important;min-height:44px;margin:0;padding:8px 12px;width:100%;min-width:0}.baant #nw-name-dialog{width:min(440px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto}.baant #nw-name-dialog p{font-size:12px;line-height:1.6}
.baant .nw-dialog :is(button,input){max-width:100%;box-sizing:border-box}.baant .nw-dialog{overscroll-behavior:contain;scrollbar-gutter:stable}.baant :is(.nw-section,.nw-portal-sidebar,.nw-hero-copy,.nw-store-content){min-width:0}.baant :is(h1,h2,h3,p,button){overflow-wrap:break-word}
@media(max-width:600px){.baant .nw-name-row{grid-template-columns:1fr;gap:4px}.baant .nw-dialog h2{font-size:clamp(18px,5vw,24px)}.baant .nw-dialog p{font-size:12px}.baant .nw-dialog .nw-btn{font-size:12px;min-height:44px}.baant .nw-hero h1{font-size:clamp(34px,10vw,54px)}.baant .nw-section>h2{font-size:24px}.baant .nw-section{padding-inline:14px}.baant .nw-header nav a{font-size:12px}.baant #nw-arena .nw-survival-status{font-size:10px;top:40px;max-width:40%}}
@media(max-height:350px) and (orientation:landscape){.baant #nw-arena .nw-action-pad #nw-ultimate{right:134px;width:44px;height:44px}.baant #nw-arena .nw-survival-status{font-size:9px;max-width:40%;padding:3px 6px}}

.baant select[hidden]{display:none!important}.baant .nw-choice-trigger{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:44px;padding:9px 12px;border:1px solid #53616d;border-radius:8px;background:linear-gradient(160deg,#242a32,#10141a);color:#fff;font-size:14px;text-align:left;box-shadow:inset 0 1px #ffffff12}.baant .nw-choice-trigger b{color:#ff4565;font-size:23px}.baant .nw-choice-trigger:focus-visible,.baant .nw-choice-tile:focus-visible{outline:3px solid #ffc765;outline-offset:2px}
.baant .nw-choice-picker{width:min(900px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:18px;overflow:auto;background:#0d1016;border:1px solid #4b555f;border-top:2px solid #ff234c;border-radius:14px;box-shadow:0 22px 80px #000a}.baant .nw-choice-picker::backdrop{background:#03060abf;backdrop-filter:blur(6px)}.baant .nw-choice-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.baant .nw-choice-tile{position:relative;display:flex;flex-direction:column;align-items:stretch;gap:8px;padding:8px;min-width:0;min-height:90px;border:1px solid #414b58;background:#171e28;color:#fff;border-radius:9px;text-align:left}.baant .nw-choice-tile[aria-pressed=true]{border:2px solid #ff3f61;padding:7px;background:#3d1824}.baant .nw-choice-tile img{width:100%;height:115px;object-fit:contain;border-radius:5px;background:#070d15}.baant .nw-choice-tile>svg{height:28px;width:28px;fill:#ff3357;stroke:#ffc875}.baant .nw-choice-tile span{display:grid;gap:4px;padding-right:20px}.baant .nw-choice-tile b{font-size:13px;line-height:1.4}.baant .nw-choice-tile small{font-size:10px;color:#aebdcf}.baant .nw-choice-tile em{position:absolute;right:10px;bottom:12px;font-style:normal;color:#ffcf70}.baant .nw-choice-pages{display:flex;align-items:center;justify-content:center;gap:16px;margin-top:12px}.baant .nw-choice-pages[hidden]{display:none}.baant .nw-choice-pages button{width:52px;min-height:44px;padding:4px}.baant .nw-choice-pages span{font-size:13px}
@media(max-width:900px){.baant .nw-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.baant .nw-choice-picker{width:min(560px,calc(100vw - 20px));padding:12px}.baant .nw-choice-tile img{height:105px}.baant .nw-choice-tile b{font-size:12px}.baant .nw-choice-tile small{font-size:10px}}
@media(max-height:500px) and (orientation:landscape){.baant .nw-choice-picker{width:min(650px,calc(100vw - 32px));padding:10px;max-height:calc(100dvh - 12px)}.baant .nw-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.baant .nw-choice-tile img{height:80px}.baant .nw-choice-picker .nw-dialog-head{margin-bottom:6px}.baant .nw-choice-pages{margin-top:6px}}

.baant #nw-arena .nw-hud-buttons .nw-icon{width:21px;height:21px;fill:none;stroke:#e8eff5;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.baant #nw-arena .nw-action-pad .nw-icon{stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.baant :is(.nw-choice-tile,.nw-choice-trigger,.nw-launch-hero):active{transform:none!important}.baant :is(.nw-btn,.nw-choice-trigger,.nw-choice-tile){transition:background-color .15s,border-color .15s,box-shadow .15s}.baant #nw-arena .nw-action-pad button:active{transform:none!important}

/* Thumb zone: communication above the left stick; combat remains on the right. */
.baant #nw-arena .nw-team-communication{top:auto;right:auto;left:max(18px,env(safe-area-inset-left));bottom:calc(max(18px,env(safe-area-inset-bottom)) + 104px);gap:8px}
.baant #nw-arena .nw-team-communication button{width:48px;height:44px;border-radius:11px;background:#080c12cc;backdrop-filter:none;font-size:8px}
.baant #nw-arena .nw-team-communication .nw-icon{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.baant #nw-arena .nw-action-pad button.pressed{transform:none!important;filter:brightness(1.35)}
.baant #nw-arena>#nw-chat{top:auto!important;right:auto!important;left:max(12px,env(safe-area-inset-left))!important;bottom:max(12px,env(safe-area-inset-bottom))!important;width:min(340px,calc(100% - 24px))!important;max-height:calc(var(--nw-screen-height,100dvh) - 24px)!important;backdrop-filter:none;background:#0b1019f5;z-index:20}
.baant #nw-arena>#nw-chat .nw-chat-text-pane{display:flex;flex-direction:column}
.baant #nw-arena>#nw-chat [hidden]{display:none!important}
.baant #nw-arena>#nw-chat #nw-chat-form{order:-1;margin-top:0;gap:6px}
.baant #nw-arena>#nw-chat #nw-chat-text{height:44px;min-height:44px;padding:8px;flex:1;width:0}
.baant #nw-arena>#nw-chat #nw-chat-send{width:52px;min-height:44px;flex:none}
.baant #nw-arena>#nw-chat .nw-quick-chat{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin-top:7px}
.baant #nw-arena>#nw-chat .nw-quick-chat button{min-height:44px;padding:4px;font-size:10px;white-space:normal;line-height:1.3}
.baant #nw-arena.is-typing>#nw-chat{top:auto!important;bottom:6px!important;max-height:calc(var(--nw-screen-height,100dvh) - 12px)!important}
.baant #nw-arena.is-typing :is(.nw-team-communication,.nw-joystick,.nw-action-pad){visibility:hidden}
.baant #nw-arena #nw-chat-feed{max-height:max(24px,min(80px,calc(var(--nw-screen-height,100dvh) - max(94px,calc(53px + var(--nw-team-rows,1)*24px)) - 176px)))}
.baant #nw-exit-confirm{width:min(420px,calc(100vw - 24px));padding:22px;max-height:calc(100dvh - 24px);overflow:auto;background:#10151d;border-top:2px solid #ff3357;border-radius:12px}
.baant #nw-exit-confirm h2{font-size:22px}.baant #nw-exit-confirm p{font-size:13px;margin:12px 0 20px;line-height:1.7}.baant #nw-exit-confirm .nw-inline{display:grid;grid-template-columns:1fr 1fr;gap:8px}.baant #nw-exit-confirm button{font-size:12px;padding:8px;min-height:44px}
.baant #nw-rotate{background:#070a10dc}.baant #nw-rotate h2{font-size:24px}.baant #nw-rotate p{font-size:13px}
@media(orientation:landscape) and (max-height:350px){.baant #nw-arena .nw-team-communication{left:max(12px,env(safe-area-inset-left));bottom:108px}.baant #nw-arena .nw-team-hud,.baant #nw-arena .nw-large-team{max-height:36px!important;overflow:hidden}.baant #nw-arena #nw-chat-feed{top:92px;max-height:calc(var(--nw-screen-height,100dvh) - 252px)}.baant #nw-arena>#nw-chat{width:min(320px,55%)!important}.baant #nw-arena>#nw-chat #nw-chat-status{display:none}}
@media(prefers-reduced-motion:reduce){.baant #nw-arena *{animation:none!important;transition:none!important}}

.baant .nw-sound-samples{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:10px 0}.baant .nw-sound-samples button{min-height:44px;font-size:12px;padding:6px}

/* Small readable enemy identifiers; animation never changes layout. */
.baant .nw-enemy-nameplate{position:absolute;left:0;top:0;display:grid;grid-template-columns:1fr auto;width:88px;gap:2px 4px;padding:3px 5px;border-radius:4px;background:#080b13b8;color:#f4f1e9;text-shadow:0 1px 2px #000;pointer-events:none;font:9px/1.2 Kanit,sans-serif;text-align:center}
.baant .nw-enemy-nameplate[hidden]{display:none}.baant .nw-enemy-nameplate>b{grid-column:1/-1;font-weight:400;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.baant .nw-enemy-nameplate>i{display:block;height:3px;margin-top:3px;background:#ffffff26;border-radius:2px;overflow:hidden}.baant .nw-enemy-nameplate>i>i{height:100%;display:block;background:#f2ad48}.baant .nw-enemy-nameplate small{font-size:8px;line-height:9px;color:#ffdaa4}.baant .nw-enemy-nameplate.is-critical>i>i{background:#ff344f;animation:nw-critical-glow 1.6s ease-in-out infinite}.baant .nw-enemy-nameplate.is-critical small{color:#ff8b9a;font-weight:700}.baant .nw-enemy-nameplate.reduce-motion>i>i{animation:none}
@keyframes nw-critical-glow{50%{filter:brightness(1.7)}}
/* Preparation is one fixed-height sheet. Only the roster scrolls. */
html:has(.baant dialog[open]),body:has(.baant dialog[open]){overflow:hidden!important;overscroll-behavior:none}
.baant #nw-launch[open]{display:grid;grid-template-rows:auto auto minmax(0,1fr) auto auto;gap:8px;width:min(920px,calc(100vw - 24px));height:min(720px,calc(100dvh - 24px));max-height:calc(100dvh - 24px);padding:16px;overflow:hidden;scrollbar-gutter:auto;box-sizing:border-box}
.baant #nw-launch .nw-launch-intro{display:none}.baant #nw-launch .nw-dialog-head{position:static;margin:0;padding:0;min-height:44px}.baant #nw-launch .nw-dialog-head h2{font-size:20px;line-height:1.2}.baant #nw-launch .nw-dialog-head .nw-eyebrow{font-size:9px}
.baant #nw-launch .nw-name-row{margin:0;min-width:0}.baant #nw-launch .nw-launch-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px;min-height:0;overflow:hidden}
.baant #nw-launch .nw-launch-grid>div:first-child{display:grid;grid-template-rows:auto minmax(0,1fr) auto 44px auto;min-height:0;gap:6px;overflow:hidden}
.baant #nw-launch .nw-launch-grid h3{font-size:13px;line-height:1.3;margin:0}.baant #nw-launch .nw-launch-heroes{height:100%;max-height:none!important;min-height:0;overflow-y:auto;overscroll-behavior:contain;align-content:start;scrollbar-width:thin;padding-right:5px}
.baant #nw-launch .nw-launch-hero{min-height:64px;height:64px;padding:4px 6px}.baant #nw-launch .nw-launch-hero img{width:40px;height:54px}.baant #nw-launch .nw-launch-hero b{font-size:12px}.baant #nw-launch .nw-launch-hero small{font-size:9px}
.baant #nw-launch #nw-launch-map-info{margin:0;font-size:11px;line-height:1.4}.baant #nw-launch .nw-launch-card{display:grid;grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) minmax(65px,.42fr) auto;height:100%;min-height:0;align-self:stretch;overflow:hidden}
.baant #nw-launch .nw-launch-portrait{height:auto!important;min-height:0;grid-row:auto;overflow:hidden}.baant #nw-launch #nw-launch-character{height:100%!important;object-fit:contain}.baant #nw-launch #nw-launch-art{height:100%!important;min-height:0;width:100%;object-fit:contain;background:#060b12}.baant #nw-launch .nw-launch-card>div{padding:8px 12px;overflow:hidden}.baant #nw-launch .nw-launch-card .nw-eyebrow{display:none}.baant #nw-launch .nw-launch-card h3{font-size:15px}.baant #nw-launch .nw-launch-card p{margin:3px 0;font-size:10px}.baant #nw-launch .nw-launch-card .nw-pill{font-size:9px;padding:3px 6px}
.baant #nw-launch .nw-launch-actions{position:static;display:grid;grid-template-columns:1.2fr 1fr;gap:8px;min-height:44px;margin:0;padding:0;border:0;background:none}.baant #nw-launch .nw-launch-note{margin:0;text-align:center;font-size:9px;line-height:1.3}
.baant #nw-choice-picker{overflow:hidden;scrollbar-gutter:auto}.baant .nw-choice-tile img{aspect-ratio:16/9;object-fit:contain;background:#060b12}.baant .nw-choice-tile b{white-space:normal;line-height:1.3}
@media(orientation:landscape) and (max-height:500px){.baant #nw-launch[open]{height:calc(100dvh - 16px);max-height:calc(100dvh - 16px);grid-template-rows:44px 44px minmax(0,1fr) 44px;gap:5px;padding:10px;width:min(900px,calc(100vw - 24px))}.baant #nw-launch .nw-dialog-head .nw-eyebrow,.baant #nw-launch .nw-launch-note,.baant #nw-launch #nw-launch-map-info,.baant #nw-launch .nw-launch-grid>div:first-child>h3:nth-of-type(2){display:none}.baant #nw-launch .nw-launch-grid>div:first-child{grid-template-rows:18px minmax(0,1fr) 44px;gap:4px}.baant #nw-launch .nw-launch-card{grid-template-columns:1fr 1fr;grid-template-rows:minmax(0,1fr) auto}.baant #nw-launch .nw-launch-portrait{grid-row:1/-1}.baant #nw-launch .nw-launch-card>div{padding:4px 6px}.baant #nw-launch .nw-launch-card :is(p,.nw-pill){display:none}.baant #nw-launch #nw-launch-character-name{font-size:11px;padding:2px 5px;bottom:3px}.baant #nw-launch .nw-launch-card h3{font-size:11px}.baant #nw-launch .nw-launch-hero{height:58px;min-height:58px}.baant #nw-launch .nw-launch-hero img{height:48px;width:34px}.baant #nw-launch .nw-launch-hero small{display:none}.baant #nw-launch .nw-choice-trigger{font-size:12px}.baant #nw-choice-picker .nw-choice-tile img{height:clamp(70px,24dvh,115px)}.baant #nw-choice-picker .nw-dialog-head{position:static}}
@media(orientation:portrait) and (max-width:600px){.baant #nw-launch[open]{width:calc(100vw - 16px);height:calc(100dvh - 16px);max-height:calc(100dvh - 16px);padding:12px;gap:6px}.baant #nw-launch .nw-launch-grid{grid-template-columns:1fr;grid-template-rows:minmax(110px,.65fr) minmax(160px,1fr);gap:8px}.baant #nw-launch .nw-launch-card{order:-1;grid-template-columns:100px 1fr;grid-template-rows:minmax(0,1fr) auto}.baant #nw-launch .nw-launch-portrait{grid-row:1/-1}.baant #nw-launch .nw-launch-card :is(p,.nw-pill){display:none}.baant #nw-launch .nw-launch-grid>div:first-child{grid-template-rows:18px minmax(0,1fr) 18px 44px}.baant #nw-launch #nw-launch-map-info{display:none}.baant #nw-launch .nw-name-row{grid-template-columns:80px 1fr}.baant #nw-launch .nw-name-row label{font-size:11px}.baant #nw-launch .nw-launch-hero small{font-size:9px}}
.baant #nw-arena>#nw-chat{width:min(320px,calc(100% - 24px))!important;height:auto!important;background:#080c14d9!important;border:1px solid #ffffff29;box-shadow:0 12px 32px #0007;border-radius:12px;padding:10px!important}.baant #nw-arena>#nw-chat .nw-dialog-head{display:contents}.baant #nw-arena>#nw-chat .nw-dialog-head>b{display:none}.baant #nw-arena>#nw-chat .nw-chat-tabs{width:100%;box-sizing:border-box;margin:0 0 7px;padding-right:48px}.baant #nw-arena>#nw-chat .nw-chat-tabs button{min-height:44px;font-size:11px}.baant #nw-arena>#nw-chat[data-mode=practice] .nw-chat-footer{display:none}.baant #nw-arena>#nw-chat .nw-chat-footer:has(#nw-chat-feedback:empty){min-height:0}.baant #nw-arena>#nw-chat #nw-chat-status{font-size:10px;margin:3px 0}.baant #nw-arena>#nw-chat #nw-chat-close{width:44px;height:44px;flex:none}.baant #nw-arena>#nw-chat .nw-quick-chat{gap:4px;margin-top:5px}

/* Head labels remain transparent and keep their identity colour. */
.baant #nw-arena :is(.nw-nameplate,.nw-enemy-nameplate){background:none!important;border:0!important;box-shadow:none!important;padding:0;text-shadow:0 1px 2px #000,0 0 3px #000}
.baant #nw-arena .nw-enemy-nameplate{width:82px;display:flex;flex-direction:column;gap:2px;font:9px/1.25 Kanit,sans-serif}
.baant #nw-arena .nw-enemy-nameplate[hidden]{display:none}.baant #nw-arena .nw-enemy-nameplate>b{color:#fff;font-weight:500}.baant #nw-arena .nw-enemy-nameplate>i{height:3px;margin:0 5px;background:#080c14c9;outline:1px solid #0007;border-radius:2px}.baant #nw-arena .nw-enemy-nameplate>i>i{background:var(--enemy-color);box-shadow:0 0 3px var(--enemy-color)}.baant #nw-arena .nw-enemy-nameplate small{position:absolute;right:-1px;bottom:-2px;font-size:9px;color:#ff5971}.baant #nw-arena .nw-enemy-nameplate::after{content:'';position:absolute;left:50%;top:100%;height:1px;width:var(--tether-length,0);transform:rotate(var(--tether-angle,0));transform-origin:0 50%;background:#c9d5df3d;pointer-events:none}
/* One row of quick messages, with a reachable next-page button. */
.baant #nw-arena>#nw-chat .nw-quick-chat{grid-template-columns:repeat(3,minmax(0,1fr)) 44px}.baant #nw-arena>#nw-chat #nw-quick-more{font-size:23px}.baant #nw-arena>#nw-chat .nw-chat-tabs{margin-bottom:4px}.baant #nw-arena>#nw-chat #nw-chat-status{display:none}.baant #nw-arena>#nw-chat:has([data-chat-tab=text][aria-selected=true]){bottom:calc(max(18px,env(safe-area-inset-bottom)) + 158px)!important;max-height:calc(var(--nw-screen-height,100dvh) - 188px)!important;overflow:hidden!important}
.baant #nw-arena.is-typing>#nw-chat:has([data-chat-tab=text][aria-selected=true]){bottom:6px!important;max-height:calc(var(--nw-screen-height,100dvh) - 12px)!important}
@media(orientation:landscape) and (max-height:350px){.baant #nw-arena>#nw-chat:has([data-chat-tab=text][aria-selected=true]){bottom:160px!important;max-height:calc(var(--nw-screen-height,100dvh) - 168px)!important}.baant #nw-arena>#nw-chat .nw-quick-chat{display:none}.baant #nw-arena>#nw-chat .nw-chat-footer{display:none}}

.baant .nw-member-form,.baant .nw-resend form{display:grid;gap:8px}.baant .nw-member-form input:not([type=checkbox]),.baant .nw-resend input{min-height:44px;font-size:16px;width:100%;box-sizing:border-box}.baant .nw-member-summary{display:flex;gap:12px;padding:12px 0;flex-wrap:wrap}.baant .nw-member-summary span{padding:8px 12px;background:#151b23;border-radius:8px}.baant .nw-resend summary{min-height:44px;display:flex;align-items:center;cursor:pointer;font-size:12px}
