#orientation-gate{position:fixed;inset:0;z-index:100000;align-items:center;justify-content:center;padding:24px;outline:0;background:radial-gradient(ellipse at 70% 20%,#8b5b2a38,transparent 55%),var(--sw-bg-0);color:var(--sw-text);font:14px/1.7 system-ui,sans-serif;text-align:center}.orientation-card{width:min(360px,100%)}.orientation-card svg{width:100px;height:100px;fill:none;stroke:var(--sw-accent);stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}.orientation-brand{letter-spacing:.22em;color:var(--sw-accent);font-size:12px}.orientation-card h1{margin:12px 0;font-size:23px;font-weight:600}.orientation-card p{color:var(--sw-muted)}.orientation-card small{display:block;margin-top:28px;color:var(--sw-muted);font-size:12px}.touch-map-hint,.touch-help,body #swarm-hud .mobile-only{display:none}html[data-touch-ui]{--sw-safe-left:env(safe-area-inset-left,0px);--sw-safe-right:env(safe-area-inset-right,0px);--sw-safe-top:env(safe-area-inset-top,0px);--sw-safe-bottom:env(safe-area-inset-bottom,0px);--sw-hud-inset:8px;--sw-nav-width:52px;--sw-identity-height:88px;--sw-hud-gap:6px;--sw-control-height:36px;--sw-font-body:13px;--sw-drawer-left:calc(var(--sw-safe-left) + var(--sw-hud-inset) + var(--sw-nav-width) + var(--sw-hud-gap));--sw-drawer-top:calc(var(--sw-safe-top) + var(--sw-hud-inset) + var(--sw-identity-height) + var(--sw-hud-gap));--sw-drawer-height:calc(100dvh - var(--sw-drawer-top) - var(--sw-hud-inset) - var(--sw-safe-bottom));--sw-workspace-width:min(1320px,calc(100vw - var(--sw-drawer-left) - var(--sw-hud-inset) - var(--sw-safe-right)));-webkit-text-size-adjust:100%;text-size-adjust:100%;overscroll-behavior:none}html[data-touch-ui] body,html[data-touch-ui] #app{height:100dvh}html[data-touch-ui] #app>canvas{touch-action:none}html[data-touch-ui] button{touch-action:manipulation}html[data-touch-ui] body #swarm-hud{font-size:var(--sw-font-body);--sw-map-detail-width:clamp(220px,29vw,300px)}html[data-touch-ui] body #swarm-hud .hud-side-dock{left:calc(var(--sw-safe-left) + var(--sw-hud-inset));top:calc(var(--sw-safe-top) + var(--sw-hud-inset));bottom:calc(var(--sw-safe-bottom) + 8px)}html[data-touch-ui] body #swarm-hud #s-nav{max-height:var(--sw-drawer-height);overflow:auto;overscroll-behavior:contain}html[data-touch-ui] body #swarm-hud #s-nav .nav{height:44px;min-height:44px;gap:1px;flex-direction:column}html[data-touch-ui] body #swarm-hud #s-nav .nav>span{display:block;position:static;opacity:1;transform:none;padding:0;background:none;box-shadow:none;font-size:11px;line-height:1.2}html[data-touch-ui] body #swarm-hud #s-nav .nav .ui-icon{width:18px;height:18px}html[data-touch-ui] body #swarm-hud :is(.icon-close,.compact-icon-action,.map-tool-button,.tutorial-icon){width:36px;min-width:36px;height:36px}html[data-touch-ui] body #swarm-hud :is(.sw-btn,.game-select-option){min-height:34px}html[data-touch-ui] body #swarm-hud #s-time .speed-control{width:32px;min-width:32px;height:32px}html[data-touch-ui] body #swarm-hud .hud-menu-slot .game-menu-launcher{width:36px;min-width:36px;height:34px}html[data-touch-ui] body #swarm-hud .hud-identity{width:332px;flex-shrink:0}html[data-touch-ui] body #swarm-hud .hud-identity-footer{grid-template-columns:minmax(0,1fr) 36px;padding-bottom:3px}html[data-touch-ui] body #swarm-hud .hud-menu-slot,html[data-touch-ui] body #swarm-hud .hud-speed-controls{height:34px}html[data-touch-ui] body #swarm-hud #s-map-tools{top:calc(var(--sw-safe-top) + 8px);right:calc(var(--sw-safe-right) + 8px)}html[data-touch-ui] body #swarm-hud #s-selection{right:calc(var(--sw-safe-right) + 8px);top:calc(var(--sw-safe-top) + 94px);max-height:calc(100dvh - var(--sw-safe-top) - var(--sw-safe-bottom) - 146px)}html[data-touch-ui] body #swarm-hud .event-strip{top:calc(var(--sw-safe-top) + 52px);right:calc(var(--sw-safe-right) + 8px);left:auto;width:var(--sw-map-detail-width);max-width:var(--sw-map-detail-width)}html[data-touch-ui] body #swarm-hud:has(#s-tutorial:not([hidden])) .event-strip{max-width:var(--sw-tutorial-anchor-width,124px)}html[data-touch-ui] body #swarm-hud :is(.drawer-card,#s-debug .sw-screen-card){width:min(var(--sw-drawer-width),calc(100vw - var(--sw-drawer-left) - var(--sw-safe-right) - 8px))}html[data-touch-ui] body #swarm-hud .sw-screen[data-overlay-kind=dialog]{padding:calc(var(--sw-safe-top) + 8px) calc(var(--sw-safe-right) + 8px) calc(var(--sw-safe-bottom) + 8px) calc(var(--sw-safe-left) + 8px)}html[data-touch-ui] body #swarm-hud :is(.major-event-card,.interest-dialog,.building-action-dialog,.sw-screen[data-overlay-kind=dialog]>.sw-screen-card){max-width:calc(100vw - var(--sw-safe-left) - var(--sw-safe-right) - 16px);max-height:calc(100dvh - var(--sw-safe-top) - var(--sw-safe-bottom) - 16px)}html[data-touch-ui] body #swarm-hud .major-event-card{display:flex;flex-direction:column;overflow:hidden}html[data-touch-ui] body #swarm-hud .major-event-card>.sw-dialog-head{flex:none}html[data-touch-ui] body #swarm-hud .major-event-card>.event-card-body{min-height:0;overflow:auto}html[data-touch-ui] body #swarm-hud .major-event-card>.event-card-options{flex:none;max-height:45dvh;overflow:auto}html[data-touch-ui] body .building-action-dialog{max-height:calc(100dvh - var(--sw-safe-top) - var(--sw-safe-bottom) - 16px);max-width:calc(100vw - var(--sw-safe-left) - var(--sw-safe-right) - 16px)}html[data-touch-ui] body .building-action-dialog button{min-height:36px}html[data-touch-ui] body .building-action-dialog .dialog-close{width:36px;height:36px}html[data-touch-ui] body #swarm-hud .design-center-shell{bottom:calc(var(--sw-safe-bottom) + 8px)}html[data-touch-ui] body #swarm-hud .designer-canvas-stage>svg{touch-action:none}html[data-touch-ui] body #swarm-hud .map-shortcut,html[data-touch-ui] body #swarm-hud .map-shortcut-divider,html[data-touch-ui] body #swarm-hud .map-shortcut-action kbd{display:none}html[data-touch-ui] body #swarm-hud .touch-map-hint{display:block;color:var(--sw-muted);font-size:12px}html[data-touch-ui] body #swarm-hud .map-shortcut-action{min-height:36px}html[data-touch-ui] body #swarm-hud :is(.sw-screen-body,.tutorial-body,.designer-layout){overscroll-behavior:contain}html[data-touch-ui] body :is(#swarm-hud,.game-shell) :is(input:not([type=range],[type=checkbox],[type=radio],[type=color],[type=file]),textarea,select){font-size:16px}html[data-touch-ui] body .game-shell{padding:calc(var(--sw-safe-top) + 8px) calc(var(--sw-safe-right) + 12px) calc(var(--sw-safe-bottom) + 8px) calc(var(--sw-safe-left) + 12px)}html[data-touch-ui] body .game-shell:not(.title-shell):not(.setup-shell) .shell-card{display:flex;flex-direction:column;max-height:100%;overflow:hidden;padding:12px}html[data-touch-ui] body .game-shell .shell-card>header,html[data-touch-ui] body .game-shell .shell-card>footer{flex-shrink:0}html[data-touch-ui] body .game-shell .shell-content{min-height:0;overflow:auto}html[data-touch-ui] body .game-shell button{min-height:36px}html[data-touch-ui] body .touch-help{display:block}html[data-touch-ui] body #swarm-hud .start-shell{padding:56px calc(var(--sw-safe-right) + 16px) calc(var(--sw-safe-bottom) + 16px) calc(var(--sw-safe-left) + 16px)}html[data-touch-ui] body .setup-shell .shell-back{top:calc(var(--sw-safe-top) + 8px);left:calc(var(--sw-safe-left) + 16px)}@media(max-height:600px){html[data-touch-ui]{--sw-nav-width:100px;--sw-identity-height:44px;--sw-control-height:40px;--sw-drawer-width:var(--sw-workspace-width);--sw-bottom-left:var(--sw-drawer-left);--sw-bottom-right:auto;--sw-bottom-inset:calc(var(--sw-safe-bottom) + 8px);--sw-current-design-layer:260}html[data-touch-ui] body #swarm-hud .hud-identity{width:calc(100vw - var(--sw-safe-left) - var(--sw-safe-right) - 202px);display:flex;align-items:center;overflow:visible}html[data-touch-ui] body #swarm-hud #s-faction-status{flex:1;min-width:0}html[data-touch-ui] body #swarm-hud .faction-status{grid-template-columns:28px minmax(0,1fr) auto;min-height:44px;padding:4px 8px;gap:6px}html[data-touch-ui] body #swarm-hud .faction-status-emblem{width:28px;height:28px}html[data-touch-ui] body #swarm-hud .faction-status-balance{min-width:0}html[data-touch-ui] body #swarm-hud .faction-status-balance small{display:none}html[data-touch-ui] body #swarm-hud .hud-identity-footer{display:flex;gap:4px;padding:0 4px 0 8px;flex:none;box-shadow:inset 1px 0 var(--sw-highlight)}html[data-touch-ui] body #swarm-hud .hud-time-row{display:flex;gap:8px}html[data-touch-ui] body #swarm-hud .hud-time-row [data-clock]{font-size:12px;letter-spacing:0}html[data-touch-ui] body #swarm-hud .hud-speed-controls{display:flex;gap:2px;height:44px}html[data-touch-ui] body #swarm-hud #s-time [data-s]{display:none}html[data-touch-ui] body #swarm-hud #s-time .pause-control{height:44px;width:44px;min-width:44px}html[data-touch-ui] body #swarm-hud #s-time .mobile-speed{display:flex;align-items:center;justify-content:center;min-width:48px;min-height:44px;color:var(--sw-accent-strong);font-size:14px}html[data-touch-ui] body #swarm-hud .hud-menu-slot,html[data-touch-ui] body #swarm-hud .hud-menu-slot .game-menu-launcher{width:44px;min-width:44px;height:44px}html[data-touch-ui] body #swarm-hud #s-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;gap:4px;padding:4px;width:100%;box-sizing:border-box}html[data-touch-ui] body #swarm-hud #s-nav .nav{width:44px;min-width:0;height:48px;min-height:48px}html[data-touch-ui] body #swarm-hud #s-nav .nav>span{font-size:12px}html[data-touch-ui] body #swarm-hud .map-tools-bar{gap:2px;padding:2px}html[data-touch-ui] body #swarm-hud .map-tool-button{width:42px;min-width:42px;height:40px;flex-direction:column;gap:0;padding:2px}html[data-touch-ui] body #swarm-hud .map-tool-button .ui-icon{width:18px;height:18px}html[data-touch-ui] body #swarm-hud .mobile-tool-label{display:block;font-size:11px;line-height:16px}html[data-touch-ui] body #swarm-hud .map-tool-tooltip{display:none}html[data-touch-ui] body #swarm-hud #s-trade-overlay-filters{max-height:calc(var(--sw-drawer-height) - 8px);overflow:auto}html[data-touch-ui] body #swarm-hud .event-strip{top:var(--sw-drawer-top);right:calc(var(--sw-safe-right) + 8px);width:auto;max-width:260px}html[data-touch-ui] body #swarm-hud #s-tutorial{--sw-tutorial-width:300px}html[data-touch-ui] body #swarm-hud #s-tutorial.collapsed{--sw-tutorial-width:240px}html[data-touch-ui] body #swarm-hud .tutorial-header{flex-shrink:0}html[data-touch-ui] body #swarm-hud :is(.tutorial-icon,.icon-close){min-width:40px;width:40px;height:40px}html[data-touch-ui] body #swarm-hud .touch-map-hint{display:none}html[data-touch-ui] body #swarm-hud .map-shortcuts{padding:2px}html[data-touch-ui] body #swarm-hud .map-shortcut-action{min-height:44px}html[data-touch-ui] body #swarm-hud .mobile-selection-summary{position:absolute;right:calc(var(--sw-safe-right) + 8px);bottom:calc(var(--sw-safe-bottom) + 8px);z-index:180;display:flex;align-items:center;justify-content:space-between;gap:12px;width:min(330px,45vw);min-height:52px;padding:6px 12px;pointer-events:auto;text-align:left;font:inherit;color:var(--sw-text);background:var(--sw-surface-2);border:0;border-radius:var(--sw-radius-md);box-shadow:var(--sw-shadow-surface)}html[data-touch-ui] body #swarm-hud .mobile-selection-summary[hidden]{display:none}html[data-touch-ui] body #swarm-hud .mobile-selection-summary>span{min-width:0;display:flex;flex-direction:column}html[data-touch-ui] body #swarm-hud .mobile-selection-summary strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:500}html[data-touch-ui] body #swarm-hud .mobile-selection-summary small{color:var(--sw-muted);font-size:12px}html[data-touch-ui] body #swarm-hud .mobile-selection-summary>b{flex:none;font-size:12px;font-weight:500;color:var(--sw-accent)}html[data-touch-ui] body #swarm-hud #s-selection{visibility:hidden;top:var(--sw-drawer-top);bottom:calc(var(--sw-safe-bottom) + 64px);max-height:none;width:min(330px,45vw);padding:0;background:var(--sw-surface-0);border-radius:var(--sw-radius-md);box-shadow:var(--sw-shadow-surface)}html[data-touch-ui] body #swarm-hud[data-mobile-selection=expanded] #s-selection{visibility:visible}html[data-touch-ui] body #swarm-hud[data-mobile-busy=true] :is(#s-selection,#s-mobile-selection,#s-tutorial,#s-top,#s-bottom-actions){visibility:hidden}html[data-touch-ui] body #swarm-hud[data-mobile-selection=expanded] #s-top{visibility:hidden}html[data-touch-ui] body #swarm-hud .unit-portrait{height:48px}html[data-touch-ui] body #swarm-hud .unit-portrait img{height:42px}html[data-touch-ui] body #swarm-hud :is(.sw-screen-body,.drawer-card){min-height:0}html[data-touch-ui] body #swarm-hud :is(.drawer-card,#s-debug .sw-screen-card){height:var(--sw-drawer-height);max-height:var(--sw-drawer-height)}html[data-touch-ui] body #swarm-hud .sw-dialog-head{padding:4px 8px;min-height:44px}html[data-touch-ui] body #swarm-hud .sw-dialog-title{font-size:16px}html[data-touch-ui] body #swarm-hud .build-menu-card{display:flex;flex-direction:column;height:var(--sw-drawer-height);max-height:var(--sw-drawer-height);overflow:hidden;background:var(--sw-surface-1);border:0}html[data-touch-ui] body #swarm-hud .build-menu-head{flex:none;padding-bottom:4px;margin-bottom:4px}html[data-touch-ui] body #swarm-hud .build-menu-head>.build-menu-head-actions{flex-direction:row}html[data-touch-ui] body #swarm-hud .build-menu-filter{flex:none}html[data-touch-ui] body #swarm-hud .build-menu-tabs button{min-height:40px;font-size:13px}html[data-touch-ui] body #swarm-hud .build-filter-tabs{flex-wrap:nowrap;overflow:auto}html[data-touch-ui] body #swarm-hud .build-filter-tabs button{flex:none;min-height:36px;font-size:12px}html[data-touch-ui] body #swarm-hud .build-menu-filter input{height:36px;min-width:0}html[data-touch-ui] body #swarm-hud .build-menu-hint:not(.has-context){display:none}html[data-touch-ui] body #swarm-hud .build-groups{flex:1;min-height:0;max-height:none;overflow:auto}html[data-touch-ui] body #swarm-hud .build-groups>section>div{grid-template-columns:1fr}html[data-touch-ui] body #swarm-hud .blueprint-card-copy>small{font-size:12px}html[data-touch-ui] body #swarm-hud .blueprint-card-copy>em{font-size:11px}html[data-touch-ui] body #swarm-hud .design-center-shell>.sw-dialog-head{gap:8px}html[data-touch-ui] body #swarm-hud .design-center-shell>.sw-dialog-head>.sw-dialog-heading{display:none}html[data-touch-ui] body #swarm-hud :is(.mobile-workspace-modes,.mobile-setup-tabs){display:flex;align-items:center;gap:4px;flex:none}html[data-touch-ui] body #swarm-hud :is(.mobile-workspace-modes,.mobile-setup-tabs)>button{min-height:40px;padding:6px 12px;white-space:nowrap;font:inherit;font-size:13px;color:var(--sw-muted);background:var(--sw-surface-0);border:0;border-radius:var(--sw-radius-sm)}html[data-touch-ui] body #swarm-hud :is(.mobile-workspace-modes,.mobile-setup-tabs)>button[aria-pressed=true]{color:var(--sw-accent-strong);background:var(--sw-surface-3);box-shadow:inset 0 -2px var(--sw-accent)}html[data-touch-ui] body #swarm-hud .drawer-header-tabs>[role=tab]{min-height:40px;gap:4px;padding:4px 8px;font-size:13px}html[data-touch-ui] body #swarm-hud .design-pane>.sw-screen-card{padding:6px}html[data-touch-ui] body #swarm-hud .designer-editor .designer-layout{display:flex;overflow:hidden}html[data-touch-ui] body #swarm-hud .designer-editor .designer-main{display:flex;flex:1}html[data-touch-ui] body #swarm-hud .designer-editor .designer-workbench{flex:1;grid-template-columns:190px minmax(0,1fr);grid-template-rows:minmax(0,1fr)}html[data-touch-ui] body #swarm-hud .designer-editor :is(.ship-design-catalog,.building-design-library,.designer-sidebar){display:none}html[data-touch-ui] body #swarm-hud[data-mobile-workspace=library] .designer-workbench{display:none}html[data-touch-ui] body #swarm-hud[data-mobile-workspace=library] :is(.ship-design-catalog,.building-design-library){display:flex;flex:1;flex-direction:column}html[data-touch-ui] body #swarm-hud[data-mobile-workspace=library] :is(.saved-template-list,.building-design-library-list){display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));grid-auto-rows:minmax(120px,auto);align-content:start;overflow:auto;max-height:none}html[data-touch-ui] body #swarm-hud[data-mobile-workspace=library] :is(.saved-template-card,.building-design-library-card){width:auto;min-width:0}html[data-touch-ui] body #swarm-hud :is(.saved-template-head>b,.building-design-library-head b){font-size:14px}html[data-touch-ui] body #swarm-hud :is(.saved-template-description,.building-design-library-description){font-size:12px;line-height:1.5}html[data-touch-ui] body #swarm-hud :is(.saved-template-head>em,.saved-template-info>small,.building-design-library-info small,.building-design-library-info i){font-size:11px}html[data-touch-ui] body #swarm-hud .template-filters>button{min-height:36px;font-size:12px}html[data-touch-ui] body #swarm-hud[data-mobile-workspace=settings] .designer-main{display:none}html[data-touch-ui] body #swarm-hud[data-mobile-workspace=settings] .designer-sidebar{display:grid;flex:1;height:auto;grid-template-columns:minmax(0,1fr) minmax(260px,42%);gap:12px}html[data-touch-ui] body #swarm-hud .designer-editor .designer-data-panel{min-height:0}html[data-touch-ui] body #swarm-hud .designer-editor .designer-settings-bottom{min-height:0;overflow:auto;align-content:start;padding:0 4px;border:0}html[data-touch-ui] body #swarm-hud .designer-editor .designer-form :is(input,textarea){min-height:40px}html[data-touch-ui] body #swarm-hud .designer-editor :is(.designer-stat,.designer-stat b,.designer-form label,.designer-data-group h4){font-size:13px}html[data-touch-ui] body #swarm-hud .designer-editor :is(.designer-data-group p,.designer-data-panel>header span){font-size:12px}html[data-touch-ui] body #swarm-hud :is(.part-categories,.building-module-categories){display:flex;flex-wrap:nowrap;overflow:auto;flex:none}html[data-touch-ui] body #swarm-hud :is(.part-categories,.building-module-categories)>button{flex:none;min-height:36px;padding:4px 8px;font-size:12px}html[data-touch-ui] body #swarm-hud :is(.ship-part,.building-module-choice){min-height:44px}html[data-touch-ui] body #swarm-hud :is(.part-copy b,.building-module-choice b){font-size:13px}html[data-touch-ui] body #swarm-hud .building-module-choice small{font-size:12px}html[data-touch-ui] body #swarm-hud .designer-editor .designer-canvas-option{top:6px;right:6px;min-height:36px;font-size:12px}html[data-touch-ui] body #swarm-hud .designer-editor .designer-view-tools button{min-height:40px;width:40px}html[data-touch-ui] body #swarm-hud .mobile-canvas-zoom{display:flex;position:absolute;z-index:6;left:8px;bottom:8px;gap:4px}html[data-touch-ui] body #swarm-hud .mobile-canvas-zoom button{width:44px;min-height:44px;font-size:20px;background:var(--sw-surface-2)}html[data-touch-ui] body #swarm-hud .unit-icon-preview{display:none}html[data-touch-ui] body #swarm-hud .ship-designer-readonly{display:flex;flex-direction:column;height:calc(100dvh - var(--sw-safe-top) - var(--sw-safe-bottom) - 16px);overflow:hidden}html[data-touch-ui] body #swarm-hud .ship-designer-readonly .designer-layout{flex:1;display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,42%);grid-template-rows:minmax(0,1fr);min-height:0}html[data-touch-ui] body #swarm-hud .ship-designer-readonly :is(.designer-main,.designer-workbench){display:flex;flex:1;min-height:0;min-width:0}html[data-touch-ui] body #swarm-hud .ship-designer-readonly .designer-canvas{flex:1;min-height:0}html[data-touch-ui] body #swarm-hud .ship-designer-readonly .ship-settings{grid-column:auto;min-height:0;overflow:auto}html[data-touch-ui] body #swarm-hud .unit-design-target p{color:var(--sw-muted);font-size:13px}html[data-touch-ui] body #swarm-hud .target-design-preview{height:120px;background:var(--sw-surface-0)}html[data-touch-ui] body #swarm-hud :is(.ship-code-dialog,.ship-confirm-dialog){box-sizing:border-box;max-height:calc(100dvh - var(--sw-safe-top) - var(--sw-safe-bottom) - 16px);overflow:auto;padding:12px;gap:8px}html[data-touch-ui] body #swarm-hud .ship-code-dialog textarea{height:30dvh;min-height:64px;flex-shrink:1}html[data-touch-ui] body #swarm-hud .design-center .ship-confirm-backdrop{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:6px;box-sizing:border-box}html[data-touch-ui] body #swarm-hud .design-center :is(.ship-code-dialog,.ship-confirm-dialog){max-width:100%;max-height:100%}html[data-touch-ui] body #swarm-hud .major-event-card{width:min(780px,calc(100vw - var(--sw-safe-left) - var(--sw-safe-right) - 16px));display:grid;grid-template-columns:minmax(0,1fr) 230px;grid-template-rows:auto minmax(0,1fr)}html[data-touch-ui] body #swarm-hud .major-event-card>.sw-dialog-head{grid-column:1/-1}html[data-touch-ui] body #swarm-hud .major-event-card>.event-card-body{grid-column:1;max-height:calc(100dvh - var(--sw-safe-top) - var(--sw-safe-bottom) - 76px)}html[data-touch-ui] body #swarm-hud .major-event-card>.event-card-options{grid-column:2;min-height:0;max-height:calc(100dvh - var(--sw-safe-top) - var(--sw-safe-bottom) - 76px);justify-content:safe center}html[data-touch-ui] body #swarm-hud .major-event-card .event-card-media{max-height:96px;flex-shrink:0}html[data-touch-ui] body #swarm-hud .event-option{min-height:44px}html[data-touch-ui] body #swarm-hud .start-shell{margin:0;padding:calc(var(--sw-safe-top) + 56px) calc(var(--sw-safe-right) + 16px) calc(var(--sw-safe-bottom) + 8px) calc(var(--sw-safe-left) + 16px);overflow:hidden}html[data-touch-ui] body #swarm-hud .start-config-card{height:100%;display:grid;grid-template-columns:130px minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;gap:8px 16px}html[data-touch-ui] body #swarm-hud .start-config-head{display:none}html[data-touch-ui] body #swarm-hud .mobile-setup-tabs{grid-column:1;grid-row:1;flex-direction:column;align-items:stretch}html[data-touch-ui] body #swarm-hud .mobile-setup-tabs>button{min-height:48px;text-align:left;font-size:14px}html[data-touch-ui] body #swarm-hud .start-sections{display:block;grid-column:2;grid-row:1;min-height:0;overflow:auto;border:0;overscroll-behavior:contain}html[data-touch-ui] body #swarm-hud .start-section{display:none;padding:0;border:0}html[data-touch-ui] body #swarm-hud [data-mobile-setup=player] .start-section-player,html[data-touch-ui] body #swarm-hud [data-mobile-setup=map] .start-section-map,html[data-touch-ui] body #swarm-hud [data-mobile-setup=ai] .start-section-ai{display:block}html[data-touch-ui] body #swarm-hud .start-section-head{padding:0 0 8px}html[data-touch-ui] body #swarm-hud .start-section .start-options{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px}html[data-touch-ui] body #swarm-hud .start-section .start-option-row{padding:8px 0;border:0}html[data-touch-ui] body #swarm-hud .start-section :is(.start-appearance-editor,.map-style-options){grid-template-columns:1fr}html[data-touch-ui] body #swarm-hud .start-faction-preview{display:none}html[data-touch-ui] body #swarm-hud .start-launch{grid-column:1/-1;grid-row:2;display:grid;grid-template-columns:minmax(0,1fr) 220px;gap:8px;padding:6px 0 0;border-top:1px solid var(--sw-line-soft)}html[data-touch-ui] body #swarm-hud .start-launch .start-button{height:44px}html[data-touch-ui] body #swarm-hud .start-section :is(.start-color-swatch,.start-emblem-choice){min-width:36px;width:36px;height:36px}html[data-touch-ui] body #swarm-hud .start-section :is(.start-option-row>label small,.start-range-note,.start-name-input small){font-size:12px}html[data-touch-ui] body #swarm-hud .start-section :is(.start-option-row>label b,.start-section-head b){font-size:14px}html[data-touch-ui] body #swarm-hud .start-choice{gap:6px}html[data-touch-ui] body #swarm-hud .start-choice .sw-btn{min-height:40px;font-size:13px}html[data-touch-ui] body #swarm-hud .start-choice .sw-btn.active{color:var(--sw-accent-strong);background:var(--sw-surface-3);box-shadow:inset 0 -2px var(--sw-accent)}html[data-touch-ui] body .setup-shell .shell-back{color:var(--sw-text);background:var(--sw-surface-2);border:0;border-radius:var(--sw-radius-sm);min-height:40px}html[data-touch-ui] body .title-shell .shell-card{padding:12px 16px;grid-template-rows:auto minmax(0,1fr) auto}html[data-touch-ui] body .title-shell .shell-card header{padding-bottom:8px}html[data-touch-ui] body .title-shell .shell-kicker{font-size:10px}html[data-touch-ui] body .title-shell .title-controls{padding:0;width:min(340px,48vw);min-width:0;justify-content:flex-start}html[data-touch-ui] body .title-shell .shell-menu{gap:4px}html[data-touch-ui] body .title-shell .shell-menu button{min-height:38px;font-size:14px;flex-shrink:0}html[data-touch-ui] body .title-shell .shell-card footer{padding-top:4px;flex-direction:row;font-size:10px}html[data-touch-ui] body .game-shell .shell-card h1{margin:0}html[data-touch-ui] body .pause-shell .shell-content{padding:8px 0}html[data-touch-ui] body .pause-shell .shell-settings>label{min-height:44px;padding:6px 0;gap:8px}html[data-touch-ui] body .game-shell .shell-card footer{padding-top:6px}html[data-touch-ui] body .pause-shell .shell-menu{display:grid;grid-template-columns:1fr 1fr;align-content:start;gap:8px}html[data-touch-ui] body .pause-shell .shell-menu button{min-height:48px}html[data-touch-ui] body .pause-shell .shell-columns{gap:16px;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr)}html[data-touch-ui] body .game-shell .shell-card>header{padding-bottom:8px}html[data-touch-ui] body .game-shell .shell-card h1{font-size:22px}html[data-touch-ui] body .title-shell .shell-card h1{font-size:36px}}@media(max-height:600px)and (max-width:760px){html[data-touch-ui] body #swarm-hud .hud-time-row [data-clock],html[data-touch-ui] body #swarm-hud .design-center-tabs .ui-icon{display:none}html[data-touch-ui] body #swarm-hud .mobile-workspace-modes>button{padding:6px}html[data-touch-ui] body #swarm-hud .designer-editor .designer-workbench{grid-template-columns:160px minmax(0,1fr)}html[data-touch-ui] body #swarm-hud .start-config-card{grid-template-columns:108px minmax(0,1fr);gap:8px}}
