html,body{touch-action:none;background:#111;height:100%;margin:0;overflow:hidden}#webgl-container,#css-container{width:100vw;height:100vh;height:100dvh;position:fixed;top:0;bottom:0;left:0;right:0}#webgl-container{z-index:1;background:#111}#css-container{z-index:2;pointer-events:none}.hidden{display:none!important}.overlay{z-index:200;padding:calc(16px + env(safe-area-inset-top)) calc(16px + env(safe-area-inset-right)) calc(16px + env(safe-area-inset-bottom)) calc(16px + env(safe-area-inset-left));background:#000000b8;place-items:center;display:grid;position:fixed;top:0;bottom:0;left:0;right:0}.transient-status{top:calc(12px + env(safe-area-inset-top));color:#fff;text-align:center;pointer-events:none;z-index:260;background:#000000c7;border:1px solid #ffffff2e;border-radius:999px;max-width:min(92vw,480px);padding:8px 12px;font:13px/1.3 sans-serif;position:fixed;left:50%;transform:translate(-50%);box-shadow:0 8px 22px #00000059}.panel{color:#fff;background:#000000d9;border:1px solid #ffffff1f;border-radius:10px;width:min(420px,100%);max-height:100%;padding:16px;font:14px/1.4 sans-serif;overflow:auto}.hint{margin:10px 0 0;font-size:12px}.title,.subtitle{margin:0 0 10px;font-weight:700}.title{font-size:22px}.subtitle{font-size:18px}.muted{color:#ffffffbf;margin:0 0 12px}.menu-btn{color:#fff;cursor:pointer;background:#ffffff0f;border:1px solid #ffffff24;border-radius:8px;width:100%;min-height:44px;margin:6px 0 0;padding:10px 12px}.menu-btn:hover{background:#ffffff1a}.history-log{white-space:pre-wrap;color:#ffffffe6;background:#ffffff0f;border:1px solid #ffffff24;border-radius:8px;max-height:none;margin:6px 0 0;padding:10px 12px;font:12px/1.4 ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;overflow:visible}.notice-panel{text-align:center;width:min(360px,100%)}.notice-message{white-space:pre-wrap;margin:0 0 12px}.sim-progress-panel{place-items:center;gap:10px;display:grid}.sim-progress-panel .notice-message{margin:0}.sim-spinner{border:3px solid #ffffff2e;border-top-color:#fff;border-radius:50%;width:34px;height:34px;animation:.9s linear infinite sim-spin}@keyframes sim-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@media (max-width:420px){.panel{padding:14px}.title{font-size:20px}.subtitle{font-size:17px}}.form-grid{gap:10px;margin-bottom:12px;display:grid}.form-row{gap:6px;display:grid}.form-row-checkbox{grid-template-columns:auto 1fr;align-items:center;gap:10px}.form-row-checkbox input[type=checkbox]{background:0 0;border:0;width:18px;height:18px;min-height:18px;margin:0;padding:0}.form-row-title{font-weight:600}.form-row input,.form-row select{color:#fff;box-sizing:border-box;background:#ffffff0f;border:1px solid #ffffff24;border-radius:8px;width:100%;min-height:44px;padding:10px 12px}.form-row select option{color:#111;background:#fff}.form-row input[type=color]{padding:0}.form-row input[type=color]::-webkit-color-swatch-wrapper{padding:0}.form-row input[type=color]::-webkit-color-swatch{border:none;border-radius:6px}.form-row input[type=color]::-moz-color-swatch{border:none;border-radius:6px}.form-row input::placeholder{color:#ffffff8c}.priority-grid{gap:8px;display:grid}.priority-grid .form-row span{font-weight:600}.missile-mode{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:4px 0 10px;display:grid}.missile-mode__button{color:#fff;min-height:44px;font:inherit;background:#ffffff0f;border:1px solid #ffffff2e;border-radius:9px;padding:9px 10px}.missile-mode__button.is-active{background:#ff8c2038;border-color:#ffb347}.network-block{border:1px solid #ffffff24;border-radius:8px;gap:8px;padding:10px;display:grid}.network-update-notice{color:#ffe5ad;background:#ffc4601f;border:1px solid #ffc46073;border-radius:8px;margin:-2px 0 2px;padding:8px 10px;font-size:12px;line-height:1.35}.network-input-hint{color:#ffd0d0;background:#ff5a5a24;border:1px solid #ff7b7b94;border-radius:8px;margin:-4px 0 2px;padding:8px 10px;font-size:12px;line-height:1.35}.form-row input.network-field-error{background:#ff50501f;border-color:#ff6868f2;animation:.8s ease-out network-field-error-pulse;box-shadow:0 0 0 3px #ff5e5e3d}@keyframes network-field-error-pulse{0%{box-shadow:0 0 #ff5e5eb8}to{box-shadow:0 0 0 3px #ff5e5e3d}}@media (prefers-reduced-motion:reduce){.form-row input.network-field-error{animation:none}}.network-create-panel{gap:8px;padding-top:4px;display:grid}.network-block-head{justify-content:space-between;align-items:center;gap:8px;display:flex}.network-mini-btn{width:auto;min-height:36px;margin:0;padding:8px 10px}.network-rooms-list{gap:8px;display:grid}.network-room-item{color:#fff;text-align:left;cursor:pointer;background:#ffffff0a;border:1px solid #ffffff24;border-radius:8px;width:100%;min-height:44px;padding:10px 12px}.network-room-item.active{background:#60b3ff29;border-color:#60b3ffe0}.network-history-list{gap:8px;display:grid}.network-history-item{color:#fff;text-align:left;cursor:pointer;background:#ffffff0a;border:1px solid #ffffff24;border-radius:8px;gap:4px;width:100%;min-height:44px;padding:10px 12px;display:grid}.network-history-title{font-weight:600}.network-history-meta{color:#ffffffb8;font-size:12px}.network-lobby-players{gap:6px;display:grid}.network-lobby-player{background:#ffffff0a;border:1px solid #ffffff1f;border-radius:6px;padding:6px 8px}.network-slots-editor{gap:6px;display:grid}.network-slot-row{grid-template-columns:minmax(120px,1fr) minmax(0,2fr);align-items:center;gap:10px}.network-timeout-inputs{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;display:grid}.bot-difficulty-list{gap:8px;display:grid}.bot-difficulty-row{gap:6px;display:grid}.bot-difficulty-name{color:#ffffffbf;font-size:12px}.help-layout{flex-direction:column;width:min(880px,100%);min-height:0;max-height:100%;display:flex}.help-panel{scroll-behavior:smooth;overscroll-behavior:contain;flex:auto;width:100%;min-height:0}.help-head{margin-bottom:14px;display:grid}.help-back-btn,.help-back-top{width:100%;margin:0}.help-back-btn{margin:0 0 10px}.help-head-copy{min-width:0}.help-head-copy .subtitle,.help-head-copy .muted{margin-bottom:0}.help-index{gap:10px;margin-bottom:14px;display:grid}.help-toc{grid-template-columns:1fr;gap:8px;display:grid}.help-toc-btn{text-align:left;gap:4px;display:grid}.help-toc-btn[aria-current=true]{background:#ffffff24;border-color:#ffffff57}.help-toc-title,.help-toc-note{display:block}.help-toc-title{font-weight:700}.help-toc-note{color:#ffffffb8;font-size:12px;line-height:1.35}.help-content{gap:12px;display:grid}.help-section{background:#ffffff0d;border:1px solid #ffffff1f;border-radius:12px;gap:12px;padding:14px;scroll-margin-top:16px;display:grid}.help-section-head{flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:10px;display:flex}.help-section-title,.help-section-note,.help-lead,.help-section h4,.help-inline-note{margin:0}.help-section-title{font-size:18px}.help-section-note{color:#ffffffb8;font-size:13px}.help-lead{color:#fffffff0}.help-note{color:#ffffffe0;background:#ffffff0f;border-left:3px solid #ffffff47;border-radius:8px;padding:10px 12px}.help-list{gap:8px;margin:0;padding-left:20px;display:grid}.help-list li{padding-left:2px}.help-table-wrap{border:1px solid #ffffff1f;border-radius:10px;overflow-x:auto}.help-cost-table{border-collapse:collapse;width:100%;min-width:620px;font-size:13px}.help-cost-table th,.help-cost-table td{text-align:left;vertical-align:top;border-bottom:1px solid #ffffff1a;padding:10px 12px}.help-cost-table thead th{background:#ffffff14}.help-cost-table tbody tr:last-child td{border-bottom:none}.help-inline-note{color:#ffffffc2;font-size:13px}@media (max-width:768px){.help-panel{width:100%}.help-head{gap:10px;margin-bottom:12px}.help-section{padding:12px}.help-cost-table{min-width:540px}}#ui{padding:calc(8px + env(safe-area-inset-top)) calc(8px + env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) calc(8px + env(safe-area-inset-left));z-index:100;color:#fff;pointer-events:none;-webkit-user-select:none;user-select:none;grid-template-rows:auto 1fr auto;gap:8px;font:14px/1.4 sans-serif;display:none;position:fixed;top:0;bottom:0;left:0;right:0}.hud-bar{box-sizing:border-box;pointer-events:auto;touch-action:pan-y;background:#000000d1;border:1px solid #ffffff1f;border-radius:10px;width:min(620px,100%);padding:1px 10px}#hudTop{align-self:start;padding:0 10px}#hudTop .hud-summary{margin-bottom:0}#hudBottom{-webkit-overflow-scrolling:touch;align-self:end;max-height:min(46dvh,420px);overflow:auto}#ui button,#ui select,#ui input{pointer-events:auto;color:#fff;box-sizing:border-box;background:#ffffff0f;border:1px solid #ffffff24;border-radius:8px;width:100%;min-height:44px;margin:0;padding:10px 12px}#ui input[type=range]{accent-color:#4d79ff;background:0 0;border:none;min-height:32px;padding:0}#ui button{cursor:pointer}#ui button:hover{background:#ffffff1a}#ui .seed-copy-btn{color:#9dd9ff;width:auto;min-height:0;font:inherit;font-weight:600;line-height:inherit;text-underline-offset:2px;background:0 0;border:none;border-radius:0;margin:0;padding:0;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;display:inline}#ui .seed-copy-btn:hover{color:#c8ebff;background:0 0}#ui .seed-copy-btn:focus-visible{color:#c8ebff;background:0 0}#ui .seed-copy-btn.is-copied{color:#b9ffb9;text-decoration:none}#ui .seed-copy-btn.is-failed{color:#ffb3b3}#ui button:disabled,#ui select:disabled,#ui input:disabled{opacity:.55;cursor:not-allowed}#ui button:disabled:hover{background:#ffffff0f}.hud-grid{grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:6px;display:grid}.hud-summary{justify-content:space-between;align-items:center;margin-bottom:8px;font-weight:600;display:flex}#infoCompact{font-size:13px}#selInfo,#historySelInfo{white-space:pre-wrap;min-height:2.6em;margin:0 0 8px}#ordersPanel{border-top:1px solid #ffffff1f;margin-top:6px;padding-top:8px}#ordersPanel summary,#historyDetails summary{cursor:pointer;margin-bottom:6px;font-weight:700}.small{font-size:12px}.orders-slots{gap:6px;margin:6px 0 10px;display:grid}.deploy-panel{background:#78ceff1f;border:1px solid #78ceff73;border-radius:8px;margin:6px 0 10px;padding:8px 10px}.deploy-summary{color:#dff3ff;margin:0;font-size:12px;line-height:1.35}#deployHint{margin:6px 0 0}.orders-waiting-banner{color:#fff5cc;background:#ffe6991f;border:1px solid #ffe69973;border-radius:8px;margin:8px 0 2px;padding:8px 10px}.orders-waiting-title{font-size:13px;font-weight:700}.orders-waiting-text{margin-top:2px;font-size:12px;line-height:1.35}#hudOrders.is-awaiting-turn .orders-primary .icon-btn{opacity:.75}.order-slot{white-space:pre-wrap;background:#ffffff0f;border:1px solid #ffffff24;border-radius:8px;padding:8px 10px;font-size:13px}.order-slot-content{align-items:center;gap:8px;display:flex}.order-slot-label{white-space:nowrap;text-overflow:ellipsis;flex:auto;min-width:0;overflow:hidden}#ui .order-slot-remove{width:auto;min-width:28px;max-width:none;height:28px;min-height:28px;color:inherit;font:inherit;cursor:pointer;background:#ffffff0f;border:1px solid #ffffff29;border-radius:6px;flex:none;justify-content:center;align-items:center;padding:0 8px;line-height:1;display:inline-flex}#ui .order-slot-remove:hover:not(:disabled){background:#ff5a5a2e;border-color:#ff8c8c73}#ui .order-slot-remove:disabled{opacity:.45;cursor:default}.order-cost{opacity:.85;white-space:nowrap;pointer-events:none;margin-left:auto;font-size:12px;font-weight:600;line-height:1;display:none}.order-slot.empty{opacity:.55}.order-slot.is-shared{background:#ffdc7814;border-style:dashed;border-color:#ffdc7859}.orders-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;display:grid}#ordersSubmit{grid-column:1/-1}#ordersSubmit,#ordersSubmitTop{border-color:rgba(var(--local-player-color-rgb,120, 206, 255), .75)}#ordersSubmit .btn-icon,#ordersSubmitTop .btn-icon{color:var(--local-player-color,#78ceff);text-shadow:0 0 10px rgba(var(--local-player-color-rgb,120, 206, 255), .45)}#ordersSubmit:hover,#ordersSubmitTop:hover{background:rgba(var(--local-player-color-rgb,120, 206, 255), .2)}#ordersSubmit:disabled,#ordersSubmitTop:disabled{border-color:rgba(var(--local-player-color-rgb,120, 206, 255), .35)}.orders-status{white-space:pre-wrap;color:#ffffffd9;min-height:1.2em;margin:8px 0 0}.orders-status[data-kind=error]{color:#ffb3b3}.orders-status[data-kind=ok]{color:#b9ffb9}.order-builder{gap:10px;margin-top:10px;display:grid}.order-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;display:grid}.order-form{gap:6px;display:grid}.order-row{gap:6px;font-size:13px;display:grid}.order-row input[type=range]{width:100%}.build-dialog-actions{gap:8px;display:grid}.history-panel{gap:8px;display:none}.history-games-block{border-bottom:1px solid #ffffff1f;gap:6px;padding:4px 0 6px;display:grid}.history-source-tabs{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;display:grid}.history-source-btn{margin:0}.history-source-btn.is-active{background:#ffffff29;border-color:#ffffff70}.history-games{gap:6px;max-height:min(24dvh,220px);display:grid;overflow:auto}.history-games-actions{justify-content:flex-end;display:flex}.history-games-import{width:auto;min-width:176px}.history-game-row{grid-template-columns:1fr;align-items:start;gap:6px;display:grid}.history-game{text-align:left;white-space:normal}.history-game-actions{grid-template-columns:repeat(auto-fit,minmax(96px,1fr));gap:6px;display:grid}.history-game-action,.history-game-delete{width:100%;min-width:0}.history-game.is-active{background:#ffffff24;border-color:#fff6}.history-game-title{font-size:13px;font-weight:600}.history-game-meta{opacity:.8;font-size:12px}.history-header{justify-content:space-between;align-items:center;gap:8px;display:flex}.history-header .subtitle{margin:0}.history-exit{width:auto;min-width:110px}.history-nav{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;display:none}.history-nav .icon-btn{justify-content:center;width:100%}.history-focus{gap:6px;display:grid}#historyMeta,#historyTurnLabel{white-space:pre-line}.history-focus-title{opacity:.8;font-size:12px;font-weight:600}.history-focus-step{text-align:left;white-space:normal;justify-content:space-between;align-items:center;gap:8px;width:100%;display:flex}.history-focus-step:after{content:attr(data-cost);opacity:.85;white-space:nowrap;font-weight:600}.history-mode #historyPanel{display:grid}.history-mode #ordersPanel,.history-mode #hudOrders .orders-primary,.history-mode #hudOrders .orders-waiting-banner,.history-mode .hud-left-actions{display:none}.history-mode #hudOrders #historyNav{display:grid}.history-mode #ordersSubmitTop,.history-mode #ordersUndoTop,.history-mode #backToMenuDesktop{display:none}.hud-mobile-row .history-only{display:none!important}.history-mode .hud-mobile-row .history-only{display:inline-flex!important}#stabilityHudTop .history-only{display:none!important}.history-mode #stabilityHudTop .history-only{display:inline-flex!important}#historyPlayerTop{min-height:0;padding:0;font-size:11px}.history-list-only #historyDetails,.history-list-only #historyNav,.history-mode:not(.history-list-only) #historyGamesBlock,.history-mode:not(.history-list-only) #historySourceTabs{display:none}@media (min-width:900px){.history-mode #hudBottom{scrollbar-gutter:stable;max-height:100%;overflow-y:auto}.history-game-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.history-game-actions>:only-child{grid-column:1/-1}.history-game-actions>.history-game-delete:last-child:nth-child(3){grid-column:1/-1;justify-self:center;width:calc(50% - 3px)}}@media (max-width:899px){#hudOrders .hud-bar{width:100%}.history-header{display:none}}@media (max-width:600px){#ui{gap:6px}.hud-bar{width:100%}#infoCompact{font-size:12px}#hudBottom{max-height:min(52dvh,420px)}}.history-list-only #ui{grid-template:"details"minmax(0,1fr)/minmax(0,1fr)}.history-list-only #hudTop,.history-list-only #hudOrders{display:none!important}.history-list-only #hudBottom{place-self:stretch center;width:min(100%,1120px);height:100%;max-height:none;margin:0 auto;padding:12px 14px;overflow:hidden}.history-list-only #historyPanel{flex-direction:column;gap:12px;height:100%;display:flex}.history-list-only .history-header{justify-content:flex-start;display:flex}.history-list-only .history-header .subtitle,.history-list-only .history-games-title{display:none}.history-list-only .history-exit{width:auto;min-width:120px;margin:0}.history-list-only .history-games-block{border-bottom:none;flex-direction:column;flex:auto;gap:10px;min-height:0;padding:0;display:flex}.history-list-only .history-games{flex:auto;align-content:start;min-height:0;max-height:none}.history-list-only .history-game-row{gap:10px}.history-list-only .history-game{padding:12px 14px}.history-list-only .history-game-title{font-size:14px}.history-list-only .history-game-meta{font-size:13px;line-height:1.45}@media (min-width:900px){.history-list-only #hudBottom{padding:16px 18px}.history-list-only .history-game-row.is-server{grid-template-columns:minmax(0,1fr) 168px;align-items:stretch}.history-list-only .history-game-row.is-server .history-game-actions{justify-content:flex-start;align-items:stretch;width:168px;display:flex}.history-list-only .history-game-row.is-server .history-game,.history-list-only .history-game-row.is-server .history-game-actions{min-width:0}.history-list-only .history-game-row.is-server .history-game-actions>*{width:100%;height:100%;min-height:0}.history-list-only .history-game-row.is-local{grid-template-columns:minmax(0,1fr);align-items:start}.history-list-only .history-game-row.is-local .history-game-actions{grid-template-columns:repeat(3,minmax(0,1fr))}.history-list-only .history-game-row.is-local .history-game-actions>.history-game-delete:last-child:nth-child(3){grid-column:auto;justify-self:stretch;width:100%}}@media (max-width:899px){.history-list-only #hudBottom{width:100%;padding:10px 12px}.history-list-only .history-header{display:flex}}@media (max-width:600px){.history-list-only #hudBottom{max-height:none;padding:10px 12px}}#ui{grid-template:"top""."1fr"orders""details"/1fr}#hudTop{grid-area:top}#hudOrders{grid-area:orders;align-content:start;gap:8px;display:grid}#hudBottom{grid-area:details;align-self:start}.hud-summary-text{white-space:pre-line;font-weight:600;display:none}.hud-turn{opacity:.8;font-size:12px}.hud-mobile-row{flex-wrap:nowrap;justify-content:space-between;align-items:center;gap:6px;width:100%;display:flex}.hud-desktop-block{display:none}.hud-sep{background:#ffffff1f;height:1px;margin:10px 0;display:none}.hud-stats{align-items:center;gap:10px;font-weight:600;display:inline-flex}.hud-stat{white-space:nowrap;align-items:center;gap:4px;min-height:44px;padding:0 4px;font-size:12px;display:inline-flex}.stat-icon{font-size:14px}.stat-note{opacity:.75;font-size:12px}.icon-btn{justify-content:center;align-items:center;gap:6px;width:auto;display:inline-flex}.btn-icon{font-size:16px;line-height:1}.icon-only-mobile .btn-text,.desktop-only{display:none}.orders-primary{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;display:grid}.orders-primary .icon-btn{width:100%;padding:10px 6px}.orders-primary #ordersSubmit{grid-column:auto}.stability-topline{justify-content:space-between;align-items:center;gap:8px;margin-bottom:6px;font-size:12px;font-weight:700;display:flex}.stability-track{background:#ffffff2e;border-radius:999px;width:100%;height:8px;overflow:hidden}.stability-fill{border-radius:inherit;background:linear-gradient(90deg,#ff5f56 0%,#ffbd2e 45%,#27c93f 100%);width:50%;height:100%;transition:width .14s linear}[data-stability-hud].is-warning .stability-fill{background:linear-gradient(90deg,#ff5f56 0%,#ff9f2e 100%)}[data-stability-hud].is-critical .stability-fill{background:#ff5f56}.stability-hud-inline{align-items:center;gap:8px;display:flex}.stability-hud-inline .stability-track{flex:auto;min-width:0;height:6px}.stability-hud-inline .stability-value{text-align:right;white-space:pre-line;flex:none;min-width:46px;font-size:11px;font-weight:700;line-height:1.05}.tax-dialog-hint{margin:6px 0;line-height:1.35}.tax-dialog-guide{margin:0 0 10px;font-size:11px;line-height:1.35}#taxRateButtonMobile{flex-direction:column;justify-content:center;align-items:center;gap:1px;line-height:1.1;display:flex}#taxRateButtonMobile .tax-mobile-title{opacity:.85;font-size:10px}#taxRateButtonMobile .tax-mobile-value{font-size:11px;font-weight:700}#taxRateButtonMobile .tax-desktop-icon{display:none}.order-actions-secondary{grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:6px;display:grid}.order-actions-secondary .icon-btn{width:100%}.hud-left-actions{gap:6px;display:grid}.hud-left-actions .icon-btn{justify-content:flex-start;width:100%}.view-actions{gap:6px;margin-top:8px;display:grid}.label-desktop{display:none}.label-mobile{display:inline}#ordersPanel summary,#historyDetails summary{text-align:center;background:#ffffff0f;border:1px solid #ffffff24;border-radius:8px;padding:10px 12px;display:block}#ordersPanel summary::-webkit-details-marker{display:none}#historyDetails summary::-webkit-details-marker{display:none}@media (max-width:899px){.hud-bar{justify-self:stretch;width:100%}.hud-summary{width:100%}#hudOrders{gap:0}#hudOrders .hud-bar{background:0 0;border:none;width:100%;padding:0}#ordersUndo,#ordersSubmit,#ordersMeta,#stabilityHud{display:none}#ui.deploy-mode #ordersMeta{display:block}#ordersSlots{max-height:160px;overflow:auto}#ui.deploy-mode #deployPanel{display:block}#ordersSubmitTop,#ordersUndoTop{display:inline-flex}.orders-primary{grid-template-columns:repeat(4,minmax(0,1fr));justify-self:stretch;gap:0;width:100%}.orders-primary .icon-btn{justify-content:center;width:100%;min-width:44px;min-height:44px;padding:6px 8px;position:relative}#orderBuildCity .btn-icon{display:inline-flex}.orders-primary .order-cost{opacity:.8;font-size:10px;display:inline-flex;position:absolute;bottom:4px;right:6px}.hud-mobile-row{grid-template-columns:repeat(5,minmax(0,1fr));place-items:center;gap:0;width:100%;display:grid}.hud-mobile-row>*{width:100%}.hud-mobile-row .icon-btn{width:100%;min-width:44px;min-height:44px;padding:6px 8px}.hud-mobile-row .hud-stat{justify-content:center}.history-mode .hud-mobile-row{grid-template-columns:repeat(4,minmax(0,1fr))}}@media (min-width:900px){#ui{grid-template:"details center orders"minmax(0,1fr)/minmax(240px,340px) 1fr minmax(240px,340px)}#hudTop{display:none}#hudBottom{align-self:center;max-height:none;overflow:visible}#hudOrders{align-content:center;align-self:center}#hudOrders .icon-btn{justify-content:flex-start;width:100%}.hud-left-actions{margin-bottom:8px}.hud-summary-text{display:block}.hud-stats,.hud-mobile-row{display:none}.hud-desktop-block{gap:4px;display:grid}#infoCompact{font-size:16px}.hud-turn{font-size:14px}#ordersPanel{border-top:none;margin-top:0;padding-top:0}.hud-sep{display:block}.icon-only-mobile .btn-text,.label-desktop{display:inline}.label-mobile,.mobile-only,#ordersSubmitTop,#ordersUndoTop,#stabilityHudTop{display:none}.orders-primary,.history-nav{grid-template-columns:1fr}.orders-primary .icon-btn{justify-content:flex-start;width:100%}.orders-primary .order-cost{display:inline-flex}#taxRateButtonMobile{flex-direction:row;justify-content:flex-start;gap:6px}#taxRateButtonMobile .tax-mobile-title{opacity:1;font-size:14px}#taxRateButtonMobile .tax-mobile-value{font-size:14px}#taxRateButtonMobile .tax-desktop-icon{order:-1;margin-left:0;margin-right:6px;display:inline-flex}.history-nav .icon-btn{justify-content:flex-start}.order-actions-secondary{grid-template-columns:1fr}#ordersPanel summary,#ordersMeta,#ordersStatus,#orderContext,.move-hint,#deployPanel{display:none}#ordersSlots{max-height:240px;overflow:auto}#historyDetails>summary{display:none}#historyDetails:not([open])>:not(summary){display:block}.desktop-only{display:inline-flex}#historyPanel{gap:10px}#historyMeta,#historyTurnLabel{font-size:14px;line-height:1.5}.history-focus-title{font-size:13px}.history-focus-step{font-size:14px}#hudOrders #ordersSubmit{margin-top:44px}}.cell-label{flex-direction:column;align-items:center;gap:2px;display:flex}.label-anchor{pointer-events:none;width:0;height:0;position:absolute;top:0;left:0;overflow:visible}.label-anchor>.cell-label,.label-anchor>.arrow-label{transform-origin:50%;position:absolute;top:0;left:0}.label-anchor>.cell-label{transform:translate(-50%,-50%)}.label-anchor>.arrow-label{transform:translate(-50%, -50%) translateY(var(--arrow-label-stack-shift,0px))}.cell-label,.cell-label *,.arrow-label,.arrow-end-marker,.arrow-end-marker *{pointer-events:none}.cell-row{color:#fff;white-space:nowrap;text-shadow:0 1px 2px #000000f2;background:#0000009e;border:1px solid #ffffff24;border-radius:8px;justify-content:center;align-items:center;gap:2px;padding:2px 6px;font:12px/1.2 system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Noto Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;display:flex}.cell-row--city{color:#111;text-shadow:none;background:#ffffffd1;border-color:#0000002e}.cell-row--factory{color:#04223d;text-shadow:none;background:#a6d6ffe6;border-color:#02162938}.cell-row--capital-move{color:#3b2a00;text-shadow:none;background:#ffe18cf2;border-color:#0003}.cell-row--sabotage-order{color:#3b1707;text-shadow:none;background:#ff9466f2;border-color:#4f1a0647}.cell-row--capital-move .cell-value{display:none}.cell-icon,.cell-value{font-weight:700}.cell-icon-owner-dot,.cell-inline-owner-dot{border-radius:50%;flex:none;width:7px;height:7px;box-shadow:0 0 0 1px #ffffff8c}.cell-unit-value,.cell-inline-token-list,.cell-inline-loss-group,.cell-inline-loss-groups,.cell-inline-loss-group-item,.cell-inline-badge-list,.cell-inline-token,.cell-inline-loss-source-list{align-items:center;display:inline-flex}.cell-unit-value,.cell-inline-token-list,.cell-inline-loss-groups,.cell-inline-loss-group-item,.cell-inline-badge-list,.cell-inline-loss-source-list{gap:4px}.cell-inline-loss-group,.cell-inline-token{gap:2px}.cell-inline-sign,.cell-inline-paren,.cell-inline-count,.cell-inline-badge,.cell-inline-loss-source{font-weight:700}.cell-label[data-detail=icons] .cell-value{display:none}.cell-label[data-detail=icons] .cell-row{padding:2px 4px;font-size:11px}.arrow-label{color:#fff;white-space:nowrap;text-shadow:0 1px 2px #000000f2;background:#000000b8;border:1px solid #ffffff24;border-radius:8px;align-items:center;gap:6px;padding:2px 6px;font:700 12px/1.2 system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Noto Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif;display:inline-flex}.arrow-label-dot{border-radius:50%;flex:none;width:7px;height:7px;box-shadow:0 0 0 1px #ffffff80}.arrow-label-text{display:inline}.arrow-end-marker{background:#000000d1;border:2px solid #ffffffeb;border-radius:999px;justify-content:center;align-items:center;width:16px;height:16px;display:flex;box-shadow:0 0 0 2px #0000008c,0 0 10px #ffffff2e}.arrow-end-marker-core{background:var(--arrow-end-color,#fff);width:8px;height:8px;box-shadow:0 0 10px var(--arrow-end-color,#fff);border-radius:999px}
/*$vite$:1*/