/* ROKSTAD WARS v1.4.2 · Thumb-first mobile landscape UI.
   Desktop and tablets with a pointer mouse keep the established layout. */
#mobile-squad-toggle,#mobile-help-toggle,#mobile-help-panel,#mobile-aim-toggle{display:none}
@media (orientation:landscape) and (pointer:coarse) and (max-height:620px){
 :root{--rw-thumb-bottom:max(7px,env(safe-area-inset-bottom));--rw-thumb-side:max(7px,env(safe-area-inset-left));--rw-thumb-right:max(7px,env(safe-area-inset-right))}
 #mobile-squad-toggle{display:flex;pointer-events:auto;position:absolute;left:var(--rw-thumb-side);top:6px;z-index:14;align-items:center;justify-content:space-between;gap:6px;height:36px;width:min(218px,29vw);min-width:150px;padding:0 8px;color:#f3fbff;background:rgba(8,28,44,.90);border:1px solid rgba(185,230,246,.40);border-radius:10px;box-shadow:0 4px 12px #06182765;font-weight:900;font-size:11px;white-space:nowrap}
 #mobile-squad-label{min-width:0;overflow:hidden;text-overflow:ellipsis;text-align:left;flex:1}
 #mobile-squad-toggle .mobile-heart{color:#9ae7b7;font-size:17px}
 #mobile-squad-toggle .mobile-chevron{font-size:17px;color:#f9d894;transition:transform .12s}
 #hud.mobile-squad-open #mobile-squad-toggle .mobile-chevron{transform:rotate(180deg)}
 #roster{display:none!important}
 #hud.mobile-squad-open #roster{display:flex!important;position:absolute;z-index:13;left:var(--rw-thumb-side);top:45px;right:auto;align-items:stretch;gap:5px;width:min(555px,calc(100vw - 16px));max-height:calc(100dvh - 111px);overflow-y:auto;overflow-x:hidden;padding:6px;border-radius:12px;border:1px solid rgba(180,220,237,.45);background:rgba(6,25,40,.96);box-shadow:0 10px 25px #06152299;pointer-events:auto}
 #hud.mobile-squad-open #roster .roster-card{flex:1 1 0;width:0!important;min-width:0;padding:4px!important;gap:2px;border-radius:7px}
 #hud.mobile-squad-open #roster .roster-head{font-size:8px;margin:0}
 #hud.mobile-squad-open #roster .roster-head i{width:6px;height:6px}
 #hud.mobile-squad-open #roster .roster-line{gap:1px}
 #hud.mobile-squad-open #roster .roster-line strong{font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 #hud.mobile-squad-open #roster .roster-line small{font-size:8px;white-space:nowrap}
 #hud.mobile-squad-open #roster .roster-unit{padding:2px}
 #hud.mobile-squad-open #roster .roster-unit+.roster-unit{margin-top:2px}
 #turn-banner{position:absolute;left:auto!important;right:var(--rw-thumb-right)!important;top:6px!important;transform:none!important;width:auto!important;height:36px!important;max-width:calc(100vw - min(218px,29vw) - 22px)!important;min-width:0;padding:2px 5px!important;gap:6px!important;border-radius:10px!important;z-index:12}
 #turn-banner .mini-brand{display:none!important}
 #turn-label{font-size:10px!important;max-width:115px!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 #timer{font-size:21px!important;min-width:17px!important}
 #turn-banner .clock-wrap{gap:1px}
 #turn-banner #move-wrap{display:flex;min-width:0!important;gap:3px!important;padding:0 2px}
 #move-wrap .move-label{display:none!important}
 #move-wrap .move-meter{display:none!important}
 #move-remaining{font-size:14px!important;max-width:38px;overflow:hidden;text-overflow:ellipsis}
 #swap-fighter{height:29px!important;min-width:46px!important;max-width:75px;padding:1px 3px!important;font-size:10px!important;white-space:nowrap}
 #swap-fighter span{font-size:10px!important}
 #swap-fighter small{display:none!important}
 #bot-speed-toggle{height:29px!important;min-width:34px!important;max-width:44px;padding:0 2px!important;font-size:12px!important}
 #bot-speed-toggle span{font-size:9px!important}
 #pause-button{height:29px!important;width:31px!important;min-width:31px!important;padding:0!important;font-size:17px!important}
 #mobile-help-toggle{display:block;height:29px!important;width:29px!important;min-width:29px!important;padding:0!important;font-size:17px!important;font-weight:900!important;color:#f8d899}
 #mobile-help-panel{display:none;pointer-events:auto;position:absolute;right:var(--rw-thumb-right);top:46px;width:min(305px,85vw);z-index:15;padding:10px 12px 9px;border-radius:11px;background:rgba(7,26,42,.98);border:1px solid #8bb9c9;box-shadow:0 12px 27px #020f1cbb;color:#e3f7ff;font-size:11px;line-height:1.5}
 #mobile-help-panel strong{font-size:11px;color:#ffda92;letter-spacing:.04em}
 #mobile-help-panel p{margin:6px 0}
 #mobile-help-panel small{font-size:9px;color:#afdae9}
 #hud.mobile-help-open #mobile-help-panel{display:block}
 #camera-tools{display:none!important}
 #hud.mobile-help-open #camera-tools{display:flex!important;position:absolute;top:192px;right:var(--rw-thumb-right);z-index:15;gap:4px}
 #hud.mobile-help-open #camera-tools .camera-button{height:33px;min-width:36px;font-size:19px}
 #hud.mobile-help-open #camera-tools .camera-button.map-fit{min-width:100px;font-size:11px}
 #hud.mobile-help-open #camera-tools .zoom-percentage{display:inline;font-size:10px}
 #event-messages{top:45px;right:5px;max-width:150px;z-index:6}
 #event-messages .event-message{padding:4px 7px;font-size:10px}
 #bot-indicator{display:none!important}
 #toast{top:49px!important;left:50%;max-width:48vw!important;font-size:15px!important;pointer-events:none}
 #range-readout{display:none!important}
 #teleport-hint{left:50%;bottom:78px;transform:translateX(-50%);font-size:11px;max-width:60vw;padding:6px 8px}
 #flight-hud{bottom:106px;left:50%;transform:translateX(-50%);max-width:200px;padding:4px 7px;font-size:10px}
 #controls{display:block!important;position:fixed!important;top:auto!important;bottom:max(4px,var(--rw-thumb-bottom))!important;left:0!important;right:0!important;width:100vw!important;max-width:none!important;height:53px!important;min-height:0!important;transform:none!important;pointer-events:none!important;margin:0!important;padding:0!important;z-index:19;overflow:visible!important}
 #controls.hidden{display:none!important}
#controls::before{content:'';position:fixed;left:0;right:0;bottom:0;height:92px;background:linear-gradient(180deg,rgba(5,18,29,0),rgba(5,18,29,.16) 24%,rgba(5,18,29,.36) 100%);pointer-events:none;z-index:-1}
 #controls>.control-cluster{margin:0!important;min-height:0!important;max-height:none!important;border-radius:11px!important;gap:0!important;padding:3px!important;box-shadow:0 3px 13px rgba(0,0,0,.27)!important;background:rgba(6,24,39,.84)!important;border:1px solid rgba(148,205,231,.30)!important}
 #controls .control-heading{display:none!important}
 #controls>.move-group{position:absolute!important;left:var(--rw-thumb-side);bottom:0;right:auto;width:124px!important;height:53px!important;display:flex!important;align-items:center;justify-content:center}
 #controls .move-group .cluster-actions{display:flex;gap:4px!important;height:100%;align-items:center}
 #controls .move-group .cluster-actions .movement{display:flex;align-items:center;justify-content:center;width:55px!important;min-width:55px!important;max-width:55px;height:46px!important;min-height:46px!important;flex:0 0 55px!important;font-size:25px!important;border-radius:10px!important;padding:0!important}
 #controls .move-group .cluster-actions .jump{position:fixed!important;top:auto!important;left:auto!important;bottom:var(--rw-thumb-bottom)!important;right:calc(var(--rw-thumb-right) + 83px)!important;width:65px!important;min-width:65px!important;max-width:65px!important;height:53px!important;min-height:53px!important;flex:none!important;font-size:15px!important;z-index:18!important;border-radius:12px!important;background:linear-gradient(180deg,#3d7b93,#1c526b)!important;border-color:#b4e5f1!important;border-bottom-color:#123b4d!important;box-shadow:0 3px 12px #07182777!important;color:#fff!important;white-space:nowrap}
 #controls .move-group .cluster-actions .jump span{font-size:18px!important}
 #controls .move-group .cluster-actions .descend:not(.hidden){position:fixed!important;right:calc(var(--rw-thumb-right) + 83px)!important;bottom:calc(var(--rw-thumb-bottom) + 59px)!important;z-index:18;width:65px;min-width:65px!important;height:42px!important;min-height:42px!important;flex:none!important;font-size:12px!important;border-radius:10px!important}
 #controls>.attack-group{display:flex!important;position:absolute!important;left:50%!important;right:auto!important;bottom:0!important;transform:translateX(-50%);width:248px!important;height:53px!important;justify-content:center!important}
 #controls .attack-group .cluster-actions{display:flex!important;gap:4px!important;align-items:center;justify-content:center;height:100%;width:100%;min-width:0}
 #controls .attack-group .cluster-actions>.game-button:not(.fire){min-height:46px!important;height:46px!important;border-radius:9px!important;padding:2px!important;flex:none!important}
 #mobile-aim-toggle{display:flex!important;flex-direction:column;align-items:center;justify-content:center;width:47px!important;min-width:47px!important;max-width:47px!important;font-size:18px!important;gap:0}
 #mobile-aim-toggle span{font-size:18px;line-height:20px}
 #mobile-aim-toggle small{font:900 9px 'DM Sans',system-ui,sans-serif;color:#fce2ad;line-height:12px}
 #controls.mobile-aim-open #mobile-aim-toggle{background:#80623a!important;border-color:#ffdc96!important}
 #controls .attack-group .cluster-actions .weapon{width:93px!important;min-width:93px!important;max-width:93px!important;display:flex!important;flex-direction:row!important;gap:4px!important;flex:none!important;padding:2px 4px!important;justify-content:center}
 #controls .attack-group .weapon .weapon-emoji{font-size:17px!important}
 #controls .attack-group .weapon .weapon-stack{width:64px;max-width:64px;overflow:hidden;white-space:nowrap}
 #controls .attack-group .weapon #selected-weapon{font-size:12px!important;max-width:62px!important;line-height:1.1!important}
 #controls .attack-group .cluster-actions .gadget{width:44px!important;min-width:44px!important;max-width:44px!important;flex:none!important;font-size:20px!important;gap:0!important}
 #controls .attack-group .cluster-actions .gadget small{font-size:8px!important;max-width:41px!important;overflow:hidden;text-overflow:ellipsis}
 #controls .attack-group .cluster-actions .ultimate{width:44px!important;min-width:44px!important;max-width:44px!important;flex:none!important;font-size:18px!important}
 #controls .attack-group .ultimate span+span{font-size:9px!important}
 #controls .attack-group .cluster-actions .fire{position:fixed!important;top:auto!important;left:auto!important;right:var(--rw-thumb-right)!important;bottom:var(--rw-thumb-bottom)!important;width:77px!important;min-width:77px!important;max-width:77px!important;height:53px!important;min-height:53px!important;flex:none!important;border-radius:12px!important;font-size:22px!important;padding:0 2px!important;z-index:18!important;white-space:nowrap;line-height:1!important}
 #controls .attack-group .cluster-actions .fire span{font-size:14px!important}
 #controls>.aim-group{display:none!important}
 #controls.mobile-aim-open>.aim-group:not(.hidden){display:flex!important;position:absolute!important;left:50%!important;right:auto!important;bottom:calc(53px + 9px)!important;transform:translateX(-50%)!important;width:min(315px,calc(100vw - 165px))!important;min-height:98px!important;padding:8px!important;gap:7px!important;z-index:20!important;flex-direction:column!important;align-items:stretch!important;background:rgba(6,27,44,.96)!important;border-color:#99c9db!important;box-shadow:0 8px 25px #061323aa!important}
 #controls.mobile-aim-open .aim-group .control-heading{display:flex!important;align-items:center;min-height:20px!important;font-size:10px!important}
 #controls.mobile-aim-open .aim-group .control-heading span{font-size:10px}
 #controls.mobile-aim-open .aim-group .compact-flip{height:24px!important;min-height:24px!important;font-size:11px!important;padding:0 9px!important}
 #controls.mobile-aim-open .aim-touch-row{height:30px!important;gap:5px!important}
 #controls.mobile-aim-open .aim-touch-row .adjust-button{height:30px!important;min-width:33px!important;width:33px!important;font-size:21px!important}
 #controls.mobile-aim-open .aim-drag-pad{height:30px!important;min-height:30px!important;padding:2px 7px!important}
 #controls.mobile-aim-open .aim-drag-pad input[type=range]{height:27px!important}
 #controls.mobile-aim-open .power-touch-row{height:22px!important;min-height:22px!important;gap:8px!important}
 #controls.mobile-bot-turn>.control-cluster{display:none!important}
 #controls.mobile-bot-turn .move-group .cluster-actions .jump,#controls.mobile-bot-turn .attack-group .cluster-actions .fire{display:none!important}
 #weapon-panel,#gadget-panel{position:absolute;right:calc(var(--rw-thumb-right) + 73px)!important;left:auto!important;bottom:calc(var(--rw-thumb-bottom) + 63px)!important;z-index:16;width:min(355px,calc(100vw - 24px))!important;max-width:min(355px,calc(100vw - 24px))!important;max-height:min(240px,62dvh)!important;overflow:auto!important;touch-action:pan-y!important;padding:9px!important}
 #weapon-options{touch-action:pan-x;max-width:100%;gap:5px}
 #weapon-options .weapon-option{min-height:53px;min-width:83px;max-width:145px;padding:5px 3px}
 #weapon-options .weapon-option .wicon{font-size:18px}
 #gadget-options .gadget-choice{min-height:55px}
 #teleport-hint small{display:none}
 #attack-splash{bottom:75px}
}
@media (orientation:landscape) and (pointer:coarse) and (max-height:620px) and (max-width:720px){
 #mobile-squad-toggle{min-width:112px;width:160px;font-size:9px;padding:0 5px}
 #turn-banner{max-width:calc(100vw - 178px)!important;gap:3px!important;padding:2px 3px!important}
 #turn-label{max-width:79px!important;font-size:9px!important}
 #move-wrap{display:none!important}
 #bot-speed-toggle{min-width:28px!important;max-width:31px!important}
 #controls>.move-group{width:108px!important}
 #controls .move-group .cluster-actions .movement{width:48px!important;min-width:48px!important;max-width:48px!important;flex-basis:48px!important}
 #controls>.attack-group{width:212px!important}
 #mobile-aim-toggle{width:42px!important;min-width:42px!important;max-width:42px!important}
 #controls .attack-group .cluster-actions .weapon{width:68px!important;min-width:68px!important;max-width:68px!important}
 #controls .attack-group .weapon .weapon-stack{width:39px;max-width:39px}
 #controls .attack-group .weapon #selected-weapon{max-width:37px!important;font-size:10px!important}
 #controls .attack-group .cluster-actions .gadget{width:40px!important;min-width:40px!important;max-width:40px!important}
 #controls .attack-group .cluster-actions .ultimate{width:40px!important;min-width:40px!important;max-width:40px!important}
 #controls .move-group .cluster-actions .jump{right:calc(var(--rw-thumb-right) + 70px)!important;width:55px!important;min-width:55px!important;max-width:55px!important}
 #controls .attack-group .cluster-actions .fire{width:64px!important;min-width:64px!important;max-width:64px!important;font-size:19px!important}
 #controls.mobile-aim-open>.aim-group:not(.hidden){width:min(300px,calc(100vw - 140px))!important}
 #hud.mobile-squad-open #roster{width:min(485px,calc(100vw - 14px))}
}
/* Fixed actions must not inherit a transformed positioning container. */
@media (orientation:landscape) and (pointer:coarse) and (max-height:620px){
 #controls>.attack-group{left:calc(50% - 124px)!important;transform:none!important}
}
@media (orientation:landscape) and (pointer:coarse) and (max-height:620px) and (max-width:720px){
 #controls>.attack-group{left:calc(50% - 106px)!important;transform:none!important}
}

/* v1.4.3: Small, permanently available aim + power rails.
   Two thumb controls are always independent; the former popup is removed. */
@media (orientation:landscape) and (pointer:coarse) and (max-height:620px){
 #controls>.aim-group:not(.hidden),
 #controls.mobile-aim-open>.aim-group:not(.hidden){
  display:flex!important;position:absolute!important;
  top:auto!important;left:50%!important;right:auto!important;
  bottom:calc(var(--rw-thumb-bottom) + 59px)!important;
  transform:translateX(-50%)!important;
  width:clamp(232px,34vw,298px)!important;
  height:53px!important;min-height:0!important;max-height:53px!important;
  flex-direction:column!important;align-items:stretch!important;
  justify-content:center!important;gap:1px!important;
  padding:4px 8px!important;border-radius:10px!important;
  background:rgba(8,28,44,.81)!important;
  border:1px solid rgba(158,219,241,.38)!important;
  box-shadow:0 3px 14px rgba(4,21,32,.28)!important;
  z-index:12!important;pointer-events:auto!important;
 }
 #controls .aim-group .control-heading{display:none!important}
 #controls .aim-group .aim-touch-row{display:flex!important;height:22px!important;min-height:22px!important;gap:4px!important;align-items:center!important}
 #controls .aim-group .aim-touch-row .adjust-button{height:22px!important;min-height:22px!important;width:26px!important;min-width:26px!important;padding:0!important;font-size:17px!important;border-radius:6px!important}
 #controls .aim-group .aim-drag-pad{height:22px!important;min-height:22px!important;padding:0 5px!important;display:flex!important;align-items:center!important;gap:5px!important}
 #controls .aim-group .aim-drag-pad span{font-size:9px!important;white-space:nowrap}
 #controls .aim-group .aim-drag-pad input[type=range]{height:22px!important;min-height:22px!important;flex:1!important;min-width:0!important;touch-action:none!important;accent-color:#ffd37b!important}
 #controls .aim-group .aim-drag-pad output{font-size:11px!important;min-width:31px!important;white-space:nowrap!important;text-align:right!important}
 #controls .aim-group .power-touch-row{display:flex!important;height:20px!important;min-height:20px!important;gap:6px!important;align-items:center!important}
 #controls .aim-group .power-touch-row span{font-size:9px!important;white-space:nowrap!important;min-width:43px!important}
 #controls .aim-group .power-touch-row input[type=range]{height:20px!important;flex:1!important;min-width:0!important;accent-color:#ffd37b!important;touch-action:none!important}
 #controls .aim-group .power-touch-row output{font-size:11px!important;min-width:34px!important;text-align:right!important}
 #controls .aim-group input[type=range]::-webkit-slider-thumb{width:19px;height:19px;border-radius:50%;box-shadow:0 0 0 2px #fff5;border:2px solid white;background:#ffda87}
 #controls .attack-group .cluster-actions .mobile-aim-toggle{background:rgba(40,83,99,.92)!important;border-color:#86bac8!important}
 #controls .attack-group .cluster-actions .mobile-aim-toggle span{font-size:22px!important}
 #controls.mobile-aim-open #mobile-aim-toggle{background:rgba(40,83,99,.92)!important;border-color:#86bac8!important}
 #controls .move-group .cluster-actions .jump,
 #controls .move-group .cluster-actions .movement{touch-action:none!important;overscroll-behavior:none!important;-webkit-user-select:none!important;user-select:none!important}
 #game{image-rendering:auto!important}
 #controls .game-button{backdrop-filter:none!important;box-shadow:0 2px 8px #04152255!important}
 #controls .game-button.fire{background:#ffd076!important;box-shadow:0 2px 12px #eeb46161!important}
 #controls .game-button.jump{background:#286982!important}
}
@media (orientation:landscape) and (pointer:coarse) and (max-height:620px) and (max-width:720px){
 #controls>.aim-group:not(.hidden),#controls.mobile-aim-open>.aim-group:not(.hidden){width:230px!important;height:51px!important;max-height:51px!important}
 #controls .aim-group .aim-drag-pad span{display:none!important}
 #controls .aim-group .power-touch-row span{min-width:33px!important}
}

/* v1.4.4 · Discrete one-line aim/power controls, super within attack picker. */
.mobile-flip-aim{display:none}
.mobile-super-ready[hidden],.fullscreen-guide[hidden]{display:none!important}
.mobile-super-ready{display:none}
.fullscreen-guide{position:fixed;inset:0;z-index:9999;display:flex;align-items:center;justify-content:center;padding:18px;background:rgba(2,13,24,.88);color:#f5f8ff;touch-action:pan-y}
.fullscreen-guide-card{width:min(450px,94vw);max-height:90dvh;overflow:auto;background:#112c43;border:1px solid #92bfd0;border-radius:16px;padding:19px 21px 16px;position:relative;box-shadow:0 18px 50px #0008;font:500 14px/1.5 system-ui}
.fullscreen-guide-icon{font-size:28px;color:#ffd27c}
.fullscreen-guide-card h2{font:bold 22px/1.2 system-ui;margin:4px 30px 12px 0}
.fullscreen-guide-card p{margin:9px 0}
.fullscreen-guide-card .small{font-size:12px;color:#bad8e6}
#fullscreen-guide-close{position:absolute;right:12px;top:10px;background:#294b60;border:1px solid #6f9baa;color:white;border-radius:8px;padding:7px 12px}
#fullscreen-guide-ok,.fullscreen-link,.lobby-fullscreen{border:1px solid #e5c482;background:#fbd079;color:#10283a;font-weight:900;border-radius:9px;padding:9px 13px;cursor:pointer}
#fullscreen-guide-ok{width:100%;margin-top:8px;font-size:14px}
.fullscreen-link{width:100%;margin:5px 0 8px;font-size:12px}
.lobby-fullscreen{background:rgba(8,30,48,.7);color:#fce4ac;font-size:10px;padding:6px 10px;white-space:nowrap}
@media (orientation:landscape) and (pointer:coarse) and (max-height:620px){
 /* Keep aim/power just above controls, not in the central field of play. */
 #controls>.aim-group:not(.hidden),#controls.mobile-aim-open>.aim-group:not(.hidden){
  bottom:calc(var(--rw-thumb-bottom) + 57px)!important;
  width:min(392px,calc(100vw - 260px))!important;
  height:33px!important;min-height:33px!important;max-height:33px!important;
  padding:2px 5px!important;
  flex-direction:row!important;align-items:center!important;justify-content:center!important;
  gap:5px!important;box-shadow:0 2px 8px #04152260!important;
  border-radius:8px!important;background:rgba(7,26,43,.90)!important;
 }
 #controls .aim-group .aim-touch-row{flex:1.12 1 0!important;width:0!important;gap:3px!important;height:27px!important;min-height:27px!important}
 #controls .aim-group .aim-touch-row .adjust-button{display:none!important}
 #controls .aim-group .mobile-flip-aim{display:flex!important;align-items:center;justify-content:center;flex:0 0 26px;width:26px;height:27px;border:1px solid #7fb6cb;border-radius:6px;background:#28546c;color:white;font-size:19px;font-weight:800;padding:0;touch-action:manipulation}
 #controls .aim-group .aim-drag-pad{height:27px!important;min-height:27px!important;padding:0 2px!important;gap:3px!important;flex:1!important;min-width:0!important}
 #controls .aim-group .aim-drag-pad span{display:none!important}
 #controls .aim-group .aim-drag-pad input[type=range]{height:27px!important;min-height:27px!important;min-width:0!important}
 #controls .aim-group .aim-drag-pad output{font-size:10px!important;min-width:30px!important}
 #controls .aim-group .power-touch-row{height:27px!important;min-height:27px!important;gap:3px!important;flex:.88 1 0!important;width:0!important}
 #controls .aim-group .power-touch-row span{font-size:13px!important;min-width:15px!important;line-height:25px!important}
 #controls .aim-group .power-touch-row input[type=range]{height:27px!important;min-width:0!important}
 #controls .aim-group .power-touch-row output{font-size:10px!important;min-width:32px!important}
 #controls .aim-group input[type=range]::-webkit-slider-thumb{width:19px!important;height:19px!important}
 /* Remove redundant left-of-attack flip, and give that space to the weapon name. */
 #mobile-aim-toggle,#controls .attack-group .cluster-actions .mobile-aim-toggle{display:none!important}
 #controls>.attack-group{width:205px!important;left:calc(50% - 102.5px)!important}
 #controls .attack-group .cluster-actions .weapon{width:117px!important;min-width:117px!important;max-width:117px!important;position:relative;overflow:visible!important}
 #controls .attack-group .weapon .weapon-stack{width:84px!important;max-width:84px!important}
 #controls .attack-group .weapon #selected-weapon{max-width:82px!important;font-size:12px!important}
 #controls .attack-group .cluster-actions .ultimate{display:none!important}
 #controls .attack-group .cluster-actions .gadget{width:53px!important;min-width:53px!important;max-width:53px!important}
 #controls .attack-group .cluster-actions .fire{width:73px!important;min-width:73px!important;max-width:73px!important;height:53px!important;font-size:19px!important}
 #controls .move-group .cluster-actions .jump{right:calc(var(--rw-thumb-right) + 81px)!important}
 .mobile-super-ready:not([hidden]){position:absolute;display:block;top:-22px;left:0;right:0;z-index:5;text-align:center;font-size:9px;line-height:17px;color:#1b2436;background:#ffdc74;border:1px solid #fff3b3;border-radius:6px;box-shadow:0 2px 7px #0006;pointer-events:none;white-space:nowrap;animation:none}
 #controls.mobile-no-aim>.aim-group,#controls.mobile-no-aim>.aim-group:not(.hidden){display:none!important}
 #weapon-panel{bottom:calc(var(--rw-thumb-bottom) + 61px)!important;right:calc(var(--rw-thumb-right) + 73px)!important;max-height:51dvh!important}
 #weapon-panel .weapon-super-option{border:1px solid #e2c371;background:#514371}
 #weapon-panel .weapon-super-option:disabled{opacity:.5;background:#273246}
 #weapon-panel .weapon-super-option:not(:disabled){box-shadow:inset 0 0 9px #d7b36d33}
 #mobile-help-panel{top:42px!important;max-height:calc(100dvh - 102px)!important;overflow:auto!important}
}
@media (orientation:landscape) and (pointer:coarse) and (max-height:620px) and (max-width:720px){
 #controls>.aim-group:not(.hidden),#controls.mobile-aim-open>.aim-group:not(.hidden){width:min(294px,calc(100vw - 220px))!important;height:33px!important;max-height:33px!important}
 #controls>.attack-group{left:calc(50% - 85px)!important;width:172px!important}
 #controls .attack-group .cluster-actions .weapon{width:96px!important;min-width:96px!important;max-width:96px!important}
 #controls .attack-group .weapon .weapon-stack{width:59px!important;max-width:59px!important}
 #controls .attack-group .weapon #selected-weapon{max-width:58px!important;font-size:10px!important}
 #controls .attack-group .cluster-actions .gadget{width:40px!important;min-width:40px!important;max-width:40px!important}
 #controls .attack-group .cluster-actions .fire{width:62px!important;min-width:62px!important;max-width:62px!important;font-size:17px!important}
 #controls .move-group .cluster-actions .jump{right:calc(var(--rw-thumb-right) + 70px)!important}
 #controls .aim-group .power-touch-row output{min-width:29px!important}
 #controls .aim-group .aim-drag-pad output{min-width:25px!important}
}

#intro .lobby-fullscreen-mobile{display:none}
@media (orientation:landscape) and (pointer:coarse) and (max-height:620px){
 #intro .lobby-fullscreen-mobile{display:block;position:absolute;right:6px;top:8px;z-index:3;border:1px solid #7398af;background:rgba(13,36,55,.91);color:#ffde9b;border-radius:7px;padding:6px 8px;font:900 10px/1.1 system-ui;box-shadow:0 1px 6px #04172477;white-space:nowrap}
}


/* v1.4.5 — True one-level HUD: aim/power share the bottom thumb row.
   The arena above the thumb row remains completely unobstructed. */
.mobile-super-progress{display:none}
@media (orientation:landscape) and (pointer:coarse) and (max-height:620px){
 #controls>.aim-group:not(.hidden),
 #controls.mobile-aim-open>.aim-group:not(.hidden){
  display:flex!important;position:absolute!important;
  left:calc(var(--rw-thumb-side) + 126px)!important;
  right:auto!important;top:auto!important;bottom:0!important;
  transform:none!important;
  width:min(220px,27vw)!important;height:53px!important;min-height:53px!important;max-height:53px!important;
  padding:3px 6px!important;gap:2px!important;
  flex-direction:column!important;align-items:stretch!important;justify-content:center!important;
  background:rgba(6,24,39,.84)!important;border-radius:10px!important;
  z-index:10!important;pointer-events:auto!important;
 }
 #controls .aim-group .aim-touch-row{width:100%!important;height:23px!important;min-height:23px!important;flex:0 0 23px!important;gap:3px!important}
 #controls .aim-group .mobile-flip-aim{width:24px!important;flex:0 0 24px!important;height:23px!important;min-height:23px!important;font-size:16px!important}
 #controls .aim-group .aim-drag-pad{height:23px!important;min-height:23px!important;flex:1 1 0!important;padding:0 2px!important}
 #controls .aim-group .aim-drag-pad input[type=range]{height:23px!important;min-height:23px!important}
 #controls .aim-group .aim-drag-pad output{font-size:10px!important;min-width:30px!important;flex:0 0 30px!important}
 #controls .aim-group .power-touch-row{width:100%!important;height:21px!important;min-height:21px!important;flex:0 0 21px!important;gap:3px!important}
 #controls .aim-group .power-touch-row span{min-width:17px!important;flex:0 0 17px!important;font-size:13px!important;line-height:20px!important}
 #controls .aim-group .power-touch-row input[type=range]{height:21px!important;min-height:21px!important}
 #controls .aim-group .power-touch-row output{min-width:29px!important;flex:0 0 29px!important;font-size:10px!important}
 #controls .aim-group input[type=range]::-webkit-slider-thumb{width:17px!important;height:17px!important}
 #controls>.attack-group{left:calc(50% - 50px)!important;width:178px!important;transform:none!important}
 #controls .attack-group .cluster-actions .weapon{width:108px!important;min-width:108px!important;max-width:108px!important}
 #controls .attack-group .weapon .weapon-stack{width:75px!important;max-width:75px!important}
 #controls .attack-group .weapon #selected-weapon{max-width:73px!important;font-size:11px!important}
 #controls .attack-group .cluster-actions .gadget{width:46px!important;min-width:46px!important;max-width:46px!important}
 #controls .attack-group .weapon{position:relative!important}
 .mobile-super-progress:not([hidden]){display:block;position:absolute;right:3px;top:0;line-height:12px;font-size:8px;font-weight:900;color:#dec5ff;background:rgba(40,28,66,.86);border-radius:4px;padding:0px 3px;pointer-events:none;z-index:2}
 .mobile-super-ready:not([hidden]){top:-21px!important;left:0!important;right:0!important}
 #controls.mobile-bot-turn>.control-cluster,
 #controls.mobile-turn-finished>.control-cluster{display:none!important}
 #controls.mobile-turn-finished .jump,#controls.mobile-turn-finished .fire{display:none!important}
 #weapon-panel .weapon-super-option:disabled{opacity:.72!important}
}
@media (orientation:landscape) and (pointer:coarse) and (max-height:620px) and (max-width:720px){
 #controls>.aim-group:not(.hidden),#controls.mobile-aim-open>.aim-group:not(.hidden){left:calc(var(--rw-thumb-side) + 110px)!important;width:154px!important;min-width:0!important}
 #controls>.attack-group{left:calc(50% - 50px)!important;width:162px!important}
 #controls .attack-group .cluster-actions .weapon{width:97px!important;min-width:97px!important;max-width:97px!important}
 #controls .attack-group .weapon .weapon-stack{width:67px!important;max-width:67px!important}
 #controls .attack-group .weapon #selected-weapon{max-width:65px!important;font-size:10px!important}
 #controls .attack-group .cluster-actions .gadget{width:40px!important;min-width:40px!important;max-width:40px!important}
 #controls .aim-group .aim-drag-pad output{min-width:27px!important;flex-basis:27px!important}
 #controls .aim-group .power-touch-row output{min-width:28px!important;flex-basis:28px!important}
}

/* v1.4.9 — Samlet, responsiv startmeny og klikkbart bildegalleri for baner. */
#intro .intro-content{
  width:min(1080px,96vw);max-width:1080px;padding:16px 12px 20px;
  transform:none!important;gap:0;box-sizing:border-box;
}
#intro h1{font-size:clamp(48px,5.5vw,71px);margin:0 0 6px;line-height:.9;}
#intro .selection-caption,#intro .sidekick-heading{font-size:11px;line-height:1.3;letter-spacing:.10em;}
#intro .selection-caption span,#intro .sidekick-heading span{font-size:10px;}
#intro .hero-picker,#intro .sidekick-roster{gap:8px;}
#intro .hero-card{height:clamp(89px,11vh,108px);border-width:2px;padding:10px 12px;border-radius:11px;}
#intro .hero-name{font-size:clamp(20px,2vw,25px);line-height:1.04;}
#intro .hero-tagline{font-size:11px;line-height:1.15;}
#intro .hero-mini-more{min-height:20px;display:inline-flex;align-items:center;justify-content:center;font-size:10px;padding:2px 7px;}
#intro .sidekick-section{margin:9px 0 0;gap:5px;}
#intro .sidekick-mini{height:50px;border-radius:9px;padding:4px 9px;gap:8px;}
#intro .sidekick-mini img{height:41px;width:48px;flex-basis:48px;}
#intro .sidekick-mini span{font-size:12px;font-weight:800;}
#intro .sidekick-mini b{font-size:9px;}
#intro .powerup-toggle{min-height:29px;display:flex;align-items:center;justify-content:center;font-size:11px;padding:4px 8px;}
#intro .match-config{margin-top:6px;padding:8px 12px;min-height:53px;gap:10px;}
#intro .match-config label{font-size:11px;line-height:1.2;}
#intro .match-config select{min-height:35px;font-size:12px;padding:6px 9px;max-width:175px;}
#intro .arena-gallery{width:100%;min-width:0;margin:10px 0 0;text-align:left;}
#intro .arena-gallery-heading{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:5px;}
#intro .arena-gallery-heading strong{font-size:11px;font-weight:900;letter-spacing:.11em;color:#d8ebf6;}
#intro .arena-random-button{display:inline-flex;align-items:center;justify-content:center;min-height:28px;border:1px solid #7295aa;border-radius:8px;background:#21465e;color:#eff9fe;font-size:11px;font-weight:800;padding:4px 12px;white-space:nowrap;}
#intro .arena-random-button:hover{background:#30637c;}
#intro .arena-thumbnails{display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - 48px)/7);gap:8px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;scroll-snap-type:x proximity;padding:2px 2px 5px;touch-action:pan-x;}
#intro .arena-thumb-card{min-width:0;min-height:79px;box-sizing:border-box;display:flex;flex-direction:column;gap:4px;padding:4px;border-radius:9px;background:rgba(20,48,67,.93);border:2px solid #496d85;color:#dbeaf3;cursor:pointer;text-align:left;scroll-snap-align:start;transition:border-color .12s,background .12s;}
#intro .arena-thumb-card:hover{border-color:#a0e2f9;background:#28516b;}
#intro .arena-thumb-card.selected{border-color:#ffd178;background:#2f4a5b;box-shadow:inset 0 0 0 1px #ffd17880;}
#intro .arena-thumb-card:focus-visible{outline:3px solid white;outline-offset:1px;}
#intro .arena-thumb-visual{width:100%;height:50px;display:flex;align-items:center;justify-content:center;overflow:hidden;background:linear-gradient(145deg,#5b8692,#233a57);border-radius:5px;}
#intro .arena-thumb-visual img{width:100%;height:100%;display:block;object-fit:cover;object-position:center;}
#intro .arena-thumb-fallback{font-size:30px;color:#ffdf8c;background:linear-gradient(155deg,#58718d,#203954 55%,#9aa88a);}
#intro .arena-thumb-name{display:block;min-width:0;line-height:1.17;font-size:10px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
#intro .arena-thumb-card.selected .arena-thumb-name{color:#ffdb8c;}
#intro .start-row{width:100%;max-width:none;display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,.7fr) minmax(175px,1.3fr);align-items:stretch;gap:10px;margin:9px 0 0;}
#intro .arena-select,#intro .difficulty{display:flex;flex-direction:column;gap:4px;text-align:left;min-width:0;max-width:none;}
#intro .arena-select label,#intro .difficulty label{font-size:11px;font-weight:900;letter-spacing:.08em;line-height:1.15;}
#intro .arena-select select,#intro .difficulty select{box-sizing:border-box;width:100%;max-width:none;min-width:0;min-height:42px;height:42px;padding:7px 10px;font-size:13px;line-height:1.25;border-radius:9px;}
#intro .map-io-actions{margin-top:5px;gap:7px;}
#intro .map-import-label{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;min-height:28px;font-size:11px;padding:4px 11px;line-height:1.1;}
#intro .primary-button#start{font-size:clamp(19px,2.2vw,25px);min-height:56px;border-radius:10px;letter-spacing:.01em;gap:12px;}
@media(min-width:1100px) and (max-height:820px){
 #intro .hero-card{height:83px;}
 #intro .sidekick-mini{height:40px;}
 #intro .sidekick-mini img{height:33px;}
 #intro .arena-thumb-visual{height:38px;}
 #intro .arena-thumb-card{min-height:65px;}
 #intro h1{font-size:53px;}
}
@media(max-width:900px){
 #intro .intro-content{width:min(98vw,900px);padding:10px 8px 16px;}
 #intro .arena-thumbnails{grid-auto-columns:132px;gap:6px;}
 #intro .arena-thumb-visual{height:46px;}
 #intro .arena-thumb-card{min-height:72px;}
 #intro .hero-card{height:84px;padding:7px 9px;}
 #intro .hero-name{font-size:19px;}
 #intro .hero-tagline{font-size:10px;}
 #intro .sidekick-mini{height:43px;padding:3px 6px;}
 #intro .sidekick-mini img{height:36px;width:41px;flex-basis:41px;}
 #intro .sidekick-mini span{font-size:11px;}
 #intro .match-config select{min-height:34px;}
}
@media(max-height:520px) and (orientation:landscape){
 #intro{align-items:flex-start!important;}
 #intro .intro-content{max-height:none!important;height:auto!important;overflow:visible!important;margin:auto;padding:6px 8px 12px;transform:none!important;}
 #intro h1{font-size:39px;}
 #intro .selection-caption{margin:5px 0 4px;font-size:10px;}
 #intro .hero-picker,#intro .sidekick-roster{gap:5px;}
 #intro .hero-card{height:55px;padding:4px 7px;}
 #intro .hero-name{font-size:16px;}
 #intro .hero-tagline{font-size:8px;}
 #intro .hero-mini-more{min-height:14px;font-size:8px;bottom:2px;padding:0 4px;}
 #intro .sidekick-section{margin-top:4px;gap:2px;}
 #intro .sidekick-mini{height:33px;padding:2px 5px;gap:4px;}
 #intro .sidekick-mini img{height:27px;width:32px;flex-basis:32px;}
 #intro .sidekick-mini span{font-size:10px;}
 #intro .sidekick-mini b{font-size:7px;}
 #intro .powerup-toggle{min-height:18px;font-size:9px;padding:1px 4px;}
 #intro .match-config{margin-top:3px;min-height:34px;padding:3px 7px;gap:6px;}
 #intro .match-config label{font-size:9px;}
 #intro .match-config select{min-height:25px;padding:2px 5px;font-size:10px;}
 #intro .arena-gallery{margin-top:5px;}
 #intro .arena-gallery-heading{margin-bottom:2px;}
 #intro .arena-gallery-heading strong{font-size:10px;}
 #intro .arena-random-button{min-height:22px;padding:2px 7px;font-size:9px;}
 #intro .arena-thumb-card{min-height:53px;padding:3px;gap:2px;}
 #intro .arena-thumb-visual{height:31px;}
 #intro .arena-thumb-name{font-size:9px;}
 #intro .arena-thumbnails{grid-auto-columns:104px;gap:5px;}
 #intro .start-row{margin-top:5px;gap:6px;grid-template-columns:minmax(0,1.1fr) minmax(0,.7fr) minmax(150px,1.25fr);}
 #intro .arena-select label,#intro .difficulty label{font-size:9px;}
 #intro .arena-select select,#intro .difficulty select{min-height:30px;height:30px;font-size:10px;padding:4px 7px;}
 #intro .primary-button#start{min-height:41px;font-size:18px;padding:4px 10px;}
 #intro .map-import-label{min-height:23px;font-size:9px;padding:3px 7px;}
}
@media(max-width:620px) and (orientation:portrait){
 #intro .intro-content{padding:14px 8px 24px;}
 #intro h1{font-size:clamp(39px,11vw,54px);}
 #intro .hero-picker{grid-template-columns:repeat(2,minmax(0,1fr));}
 #intro .hero-card{height:83px;}
 #intro .sidekick-roster{grid-template-columns:repeat(2,minmax(0,1fr));}
 #intro .sidekick-mini{height:44px;}
 #intro .arena-thumbnails{grid-auto-columns:118px;}
 #intro .arena-thumb-visual{height:48px;}
 #intro .start-row{grid-template-columns:1fr 1fr;}
 #intro .start-row #start{grid-column:1 / -1;min-height:52px;}
 #intro .match-config{flex-wrap:wrap;}
}

/* ROKSTAD WARS 3.0.3 — mobile thumb rail and compact attack sheet.
   The old bottom safe-area offset lifted controls too far above the visible game.
   Standalone mode still reserves the iOS home-indicator area. */
@media (pointer:coarse) and (orientation:landscape) and (max-height:620px){
 :root{--rw-thumb-bottom:2px;}
 #controls{bottom:var(--rw-thumb-bottom)!important;height:53px!important;}
 #controls .move-group .cluster-actions .jump,
 #controls .attack-group .cluster-actions .fire{bottom:var(--rw-thumb-bottom)!important;}
 #controls .move-group .cluster-actions .descend:not(.hidden){bottom:calc(var(--rw-thumb-bottom) + 59px)!important;}
 #controls::before{height:65px!important;}
 /* A short panel, vertically scrollable, with strictly bounded text. */
 #weapon-panel{
  position:absolute!important;
  left:50%!important;right:auto!important;
  transform:translateX(-50%)!important;
  bottom:calc(var(--rw-thumb-bottom) + 60px)!important;
  box-sizing:border-box!important;
  width:min(420px,calc(100vw - 20px))!important;
  min-width:0!important;max-width:calc(100vw - 20px)!important;
  max-height:min(193px,calc(100dvh - 100px))!important;
  padding:7px!important;overflow-x:hidden!important;overflow-y:auto!important;
  overscroll-behavior:contain!important;
 }
 #weapon-panel .panel-label{font-size:13px!important;letter-spacing:.045em!important;margin:0 0 5px!important;}
 #weapon-options,#weapon-options.dense{
  display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:5px!important;max-width:100%!important;min-width:0!important;
  overflow:visible!important;touch-action:pan-y!important;
 }
 #weapon-options .weapon-option,#weapon-options.dense .weapon-option{
  box-sizing:border-box!important;min-width:0!important;max-width:100%!important;
  min-height:60px!important;height:auto!important;
  padding:5px 6px!important;display:flex!important;align-items:center!important;
  justify-content:flex-start!important;gap:4px!important;
  overflow:hidden!important;text-align:left!important;
 }
 #weapon-options .weapon-option .wmeta{min-width:0!important;max-width:100%!important;display:flex!important;flex-direction:column!important;gap:2px!important;}
 #weapon-options .weapon-option .wicon{flex:0 0 21px!important;font-size:17px!important;margin:0!important;}
 #weapon-options .weapon-option .wname{font-size:10.5px!important;line-height:1.13!important;white-space:normal!important;overflow-wrap:anywhere!important;}
 #weapon-options .weapon-option .wdmg{font-size:9px!important;line-height:1.15!important;letter-spacing:0!important;margin:0!important;white-space:normal!important;overflow-wrap:anywhere!important;}
 #weapon-options .weapon-option .wrange{display:none!important;}
 #teleport-hint{bottom:calc(var(--rw-thumb-bottom) + 69px)!important;left:50%!important;max-width:calc(100vw - 22px)!important;padding:5px 10px!important;font-size:10px!important;}
}
@media (pointer:coarse) and (orientation:landscape) and (max-height:620px) and (display-mode:standalone){
 :root{--rw-thumb-bottom:max(2px,env(safe-area-inset-bottom));}
}


/* v3.0.4 – mobil: juleknapp + synlig banegalleri */
@media (max-width:900px) and (orientation:landscape){
 #intro .arena-gallery{margin-top:6px;margin-bottom:8px}
 #intro .arena-gallery-heading{font-size:10px;margin-bottom:4px}
 #intro .holiday-open{top:8px;left:8px;width:34px;height:34px;font-size:18px}
 .profile-modal.visual-only .profile-layout img{max-height:58vh}
}
@media (max-height:470px) and (orientation:landscape){
 #intro .holiday-open{top:6px;left:6px;width:30px;height:30px;font-size:16px}
 #intro .arena-gallery{margin-top:4px}
}

/* ROKSTAD WARS 3.0.5 – one-screen compact landscape lobby.
   Keep the playable quick-picker separate from the admin map file tools. */
@media (orientation:landscape) and (pointer:coarse) and (max-height:650px){
 #intro{overflow:hidden!important;align-items:center!important;justify-content:center!important;touch-action:manipulation!important;}
 #intro .intro-content{
  box-sizing:border-box!important;position:relative!important;
  width:min(100vw - 12px,1000px)!important;max-width:none!important;
  height:100dvh!important;min-height:0!important;max-height:100dvh!important;
  margin:0 auto!important;padding:5px 7px 5px!important;
  display:flex!important;flex-direction:column!important;
  justify-content:space-between!important;align-items:center!important;
  gap:0!important;transform:none!important;
  overflow:hidden!important;touch-action:manipulation!important;
 }
 #intro .lobby-settings-row{position:absolute!important;top:5px!important;right:4px!important;z-index:20!important;margin:0!important;}
 #intro .lobby-settings-row #settings-open{font-size:10px!important;padding:5px 7px!important;min-height:29px!important;}
 #intro .lobby-fullscreen-mobile{
  display:flex!important;align-items:center;justify-content:center;
  position:absolute!important;z-index:19!important;top:5px!important;right:103px!important;
  min-height:29px!important;padding:5px 8px!important;font-size:10px!important;
  border-radius:8px!important;white-space:nowrap!important;
 }
 #intro .holiday-open{position:absolute!important;top:6px!important;left:7px!important;width:29px!important;height:29px!important;font-size:17px!important;z-index:20!important;}
 #intro h1{font-size:clamp(27px,8.1dvh,39px)!important;line-height:.92!important;margin:0 auto 1px!important;padding:0!important;max-height:40px!important;flex:0 0 auto!important;}
 #intro .selection-caption{align-self:stretch!important;margin:1px 0 2px!important;font-size:9px!important;line-height:1!important;flex:0 0 auto!important;}
 #intro .selection-caption span{font-size:8px!important;}
 #intro .hero-picker{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;width:100%!important;gap:4px!important;flex:0 0 auto!important;}
 #intro .hero-card{min-width:0!important;height:clamp(51px,15dvh,63px)!important;padding:4px 4px!important;border-radius:7px!important;overflow:hidden!important;}
 #intro .hero-name{font-size:clamp(11px,1.5vw,15px)!important;line-height:1!important;max-width:72%!important;white-space:normal!important;word-break:normal!important;}
 #intro .hero-tagline{display:none!important;}
 #intro .hero-avatar{left:45%!important;right:1px!important;top:1px!important;bottom:1px!important;overflow:hidden!important;}
 #intro .hero-avatar img{max-height:100%!important;max-width:100%!important;object-fit:contain!important;object-position:center bottom!important;}
 #intro .hero-mini-more{bottom:3px!important;left:4px!important;min-width:16px!important;min-height:16px!important;padding:0 3px!important;font-size:0!important;line-height:1!important;}
 #intro .hero-mini-more::after{content:'ⓘ';font-size:11px!important;}
 #intro .hero-check{right:2px!important;top:2px!important;padding:1px 3px!important;font-size:9px!important;}
 #intro .sidekick-section{margin:3px 0 0!important;gap:2px!important;width:100%!important;flex:0 0 auto!important;}
 #intro .sidekick-heading{font-size:9px!important;line-height:1!important;}
 #intro .sidekick-heading span{font-size:8px!important;}
 #intro .sidekick-roster{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:4px!important;width:100%!important;}
 #intro .sidekick-mini{min-width:0!important;height:clamp(27px,8dvh,33px)!important;min-height:0!important;padding:1px 3px!important;gap:3px!important;overflow:hidden!important;}
 #intro .sidekick-mini img{width:clamp(21px,3.5vw,30px)!important;flex:0 0 clamp(21px,3.5vw,30px)!important;height:95%!important;object-fit:contain!important;}
 #intro .sidekick-mini span{font-size:clamp(7px,1.05vw,10px)!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;}
 #intro .sidekick-mini b{display:none!important;}
 #intro .powerup-toggle{display:none!important;}
 #intro .powerup-overview{display:none!important;}
 #intro .match-config{margin:3px 0 0!important;padding:2px 6px!important;width:100%!important;min-height:0!important;gap:5px!important;flex:0 0 auto!important;border-radius:7px!important;}
 #intro .match-config label{font-size:9px!important;gap:4px!important;}
 #intro .match-config select{min-height:26px!important;height:26px!important;max-width:185px!important;padding:2px 5px!important;font-size:10px!important;}
 #intro .human-picks{margin:0!important;gap:3px!important;}
 #intro .rw-quickplay-row{margin:2px auto 1px!important;min-height:20px!important;flex:0 0 auto!important;}
 #intro .rw-quickplay-row #random-arena{min-height:21px!important;padding:2px 11px!important;font-size:9px!important;border-radius:6px!important;}
 #intro section.arena-gallery{display:block!important;width:100%!important;min-width:0!important;max-width:100%!important;margin:1px 0!important;flex:0 0 auto!important;}
 #intro .arena-gallery-heading{margin:0 0 2px!important;line-height:1!important;}
 #intro .arena-gallery-heading strong{font-size:9px!important;}
 #intro .arena-thumbnails{display:grid!important;grid-auto-flow:column!important;grid-auto-columns:clamp(80px,12.2vw,110px)!important;grid-template-columns:none!important;gap:4px!important;overflow-x:auto!important;overflow-y:hidden!important;max-width:100%!important;min-height:0!important;padding:1px 1px 3px!important;touch-action:pan-x!important;scroll-snap-type:x proximity;}
 #intro .arena-thumb-card{height:clamp(47px,13dvh,54px)!important;min-height:0!important;padding:2px!important;gap:2px!important;border-radius:6px!important;}
 #intro .arena-thumb-visual{height:clamp(29px,8.6dvh,35px)!important;flex:0 0 auto!important;}
 #intro .arena-thumb-name{font-size:8px!important;line-height:1!important;}
 #intro .start-row{display:flex!important;width:100%!important;min-height:0!important;flex:0 0 auto!important;margin:3px 0 0!important;}
 #intro .primary-button#start{width:100%!important;height:clamp(37px,10dvh,43px)!important;min-height:0!important;padding:3px 12px!important;font-size:clamp(17px,2.7vw,22px)!important;line-height:1!important;}
}
@media (orientation:landscape) and (pointer:coarse) and (max-height:345px){
 #intro h1{font-size:27px!important;max-height:29px!important;}
 #intro .hero-card{height:49px!important;}
 #intro .sidekick-mini{height:25px!important;}
 #intro .arena-thumb-card{height:44px!important;}
 #intro .arena-thumb-visual{height:27px!important;}
 #intro .primary-button#start{height:35px!important;}
}

/* ROKSTAD WARS 3.0.6 - fixed viewport toolbar, independent of scaled lobby content. */
@media (pointer:coarse) and (orientation:landscape) and (max-height:650px){
 #intro{position:absolute!important;inset:0!important;overflow:hidden!important;}
 #intro .rw-mobile-lobby-tools{position:absolute!important;left:0!important;right:0!important;top:0!important;height:0!important;z-index:55!important;pointer-events:none!important;}
 #intro .rw-mobile-lobby-tools .lobby-settings-row{position:absolute!important;top:max(6px,env(safe-area-inset-top))!important;right:max(8px,env(safe-area-inset-right))!important;z-index:56!important;pointer-events:auto!important;}
 #intro .rw-mobile-lobby-tools .lobby-fullscreen-mobile{display:flex!important;position:absolute!important;top:max(6px,env(safe-area-inset-top))!important;right:114px!important;height:29px!important;min-height:29px!important;padding:4px 8px!important;font-size:10px!important;z-index:56!important;pointer-events:auto!important;}
 #intro .intro-content{height:100%!important;max-height:100%!important;min-height:0!important;}
 /* A pause menu must never extend behind browser chrome or sit underneath controls. */
 #pause-modal{position:absolute!important;top:50%!important;left:50%!important;transform:translate(-50%,-50%)!important;box-sizing:border-box!important;width:min(385px,88vw)!important;max-height:calc(100dvh - 12px)!important;overflow-y:auto!important;overscroll-behavior:contain!important;padding:9px 12px!important;border-radius:11px!important;box-shadow:0 5px 22px #0008!important;z-index:60!important;}
 #pause-modal h2{font-size:clamp(22px,6dvh,30px)!important;line-height:1!important;}
 #pause-modal .eyebrow{font-size:8px!important;margin:0 0 2px!important;}
 #pause-modal>p{display:none!important;}
 #pause-modal .pause-actions{gap:4px!important;}
 #pause-modal .pause-actions button{min-height:27px!important;padding:4px 8px!important;font-size:11px!important;line-height:1.2!important;}
 #pause-modal #resume{min-height:31px!important;font-size:17px!important;}
 #pause-modal .rw-pause-volume{padding:5px 8px!important;gap:3px!important;border-radius:8px!important;}
 #pause-modal .rw-pause-mute{font-size:11px!important;min-height:20px!important;}
 #pause-modal .rw-pause-mute input{height:16px!important;width:16px!important;}
 #pause-modal .rw-volume-field{grid-template-columns:72px minmax(0,1fr) 36px!important;gap:5px!important;font-size:10px!important;line-height:1.2!important;}
 #pause-modal .rw-volume-field input{height:20px!important;}
 #pause-modal .rw-volume-field output{font-size:10px!important;}
 /* Modal must occlude HUD/controls, which otherwise use z-index 19. */
 #stage:has(#modal-backdrop:not(.hidden)) #controls{visibility:hidden!important;pointer-events:none!important;}
}
