canvas{touch-action:none}.hud-sidebar-close,.hud-sidebar-scrim,.hud-build-toggle,.hud-cell-info,.hud-build-tip-close,.hud-mobile-page-toggle{display:none}@media(max-width:900px),(pointer:coarse){:root{color-scheme:dark}html,body{width:100%;height:100%;overscroll-behavior:none;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}input,textarea,select,[contenteditable=true]{-webkit-user-select:text;user-select:text}img{-webkit-user-drag:none}button,input,select{touch-action:manipulation}.menu{box-sizing:border-box;min-height:100dvh;justify-content:flex-start;padding:calc(24px + env(safe-area-inset-top)) calc(14px + env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom)) calc(14px + env(safe-area-inset-left))}.menu:has(.menu-tagline){justify-content:center}.menu button,.menu input,.menu select{min-height:44px}.menu-actions{flex-wrap:wrap;justify-content:center}.menu-slot{min-width:0}.menu-slot>button:first-child{min-width:0}.hud-bar{z-index:6;box-sizing:border-box;min-height:calc(54px + env(safe-area-inset-top));gap:4px;padding:calc(6px + env(safe-area-inset-top)) calc(8px + env(safe-area-inset-right)) 6px calc(8px + env(safe-area-inset-left));overflow-x:auto;scrollbar-width:none;white-space:nowrap}.hud-bar::-webkit-scrollbar{display:none}.hud-identity{min-width:92px;max-width:124px;overflow:hidden}.hud-identity strong,.hud-identity span{overflow:hidden;text-overflow:ellipsis}.hud-stock,.hud-utility,.hud-vitals{display:none}.hud-mobile-page-toggle{display:block;flex:none;min-width:40px;min-height:40px;margin-left:auto;padding:0!important;font-size:24px!important;line-height:1}.mobile-status-view .hud-time-controls,.mobile-status-view .hud-bar-actions{display:none}.mobile-status-view .hud-identity{display:flex;flex:none}.mobile-status-view .hud-status-readouts{display:flex;flex:1 1 auto;align-items:center;gap:12px;min-width:0;overflow-x:auto;scrollbar-width:none}.mobile-status-view .hud-status-readouts::-webkit-scrollbar{display:none}.mobile-status-view .hud-stock,.mobile-status-view .hud-utility,.mobile-status-view .hud-vitals{display:flex;flex:none;flex-wrap:nowrap;margin-left:0}.hud-time-controls button,.hud-bar-actions button{box-sizing:border-box;min-width:40px;min-height:40px;padding:5px 8px!important}.hud-icon-button img{width:20px;height:20px}.hud-build-toggle{position:fixed;right:calc(12px + env(safe-area-inset-right));bottom:calc(48px + env(safe-area-inset-bottom));z-index:10;display:inline-flex;width:52px;height:52px;padding:0!important;background:#0e0b0af0!important;border-color:#4ec48cb8!important;border-radius:50%;box-shadow:0 5px 22px #0000006b}.hud-build-toggle img{width:26px;height:26px}.mobile-build-open .hud-build-toggle,.blueprint-positioning .hud-build-toggle{display:none}.hide-resource-ticker .hud-build-toggle{bottom:calc(12px + env(safe-area-inset-bottom))}.hud-sidebar-scrim{position:fixed;inset:0;z-index:11;display:block;padding:0;pointer-events:none;opacity:0;background:#0000007a;border:0;transition:opacity .16s ease}.hud-sidebar-scrim.open{pointer-events:auto;opacity:1}.hud-sidebar{inset:0 0 0 auto;z-index:12;box-sizing:border-box;width:min(380px,90vw);gap:8px;padding:calc(10px + env(safe-area-inset-top)) calc(10px + env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) 10px;visibility:hidden;border-left-color:#e8e0d847;box-shadow:-14px 0 40px #00000073;transform:translate(105%);transition:transform .18s ease,visibility 0s linear .18s}.hud-sidebar.mobile-open{visibility:visible;transform:translate(0);transition-delay:0s}.hud-sidebar-close{display:block;flex:none;width:44px;height:44px;padding:0;font-size:24px;line-height:1}.hud-sidebar-header{display:flex;align-items:stretch;gap:8px;width:100%}.hud-categories{box-sizing:border-box;flex:1;min-width:0;width:auto;min-height:44px}.hud-search{min-height:44px;font-size:16px}.hud-placement-tools{min-height:44px}.hud-placement-tools button,.hud-dock-toolbar button,.hud-blueprints button{min-width:44px;min-height:44px}.hud-placement-tools .hud-placement-cancel{flex:none;font-size:22px;line-height:1}.hud-grid{overscroll-behavior:contain}.hud-cell-row,.hud-cell{min-height:54px}.hud-cell-info,.hud-favorite{flex:none;display:block;width:44px;min-height:54px;padding:0;font-size:18px!important}.hud-build-tip{inset:auto calc(8px + env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) calc(8px + env(safe-area-inset-left));z-index:14;box-sizing:border-box;width:auto;max-height:min(72dvh,560px);padding:14px}.hud-build-tip.pinned{pointer-events:auto}.hud-build-tip-close{position:absolute;top:7px;right:7px;display:block;width:44px;height:44px;padding:0;color:inherit;font-size:22px;background:#e8e0d814;border:1px solid rgba(232,224,216,.22);border-radius:3px}.hud-build-tip.pinned .hud-build-tip-title{padding-right:42px}.hud-ticker{right:0;z-index:4;box-sizing:border-box;min-height:44px;align-items:center;padding:0 calc(72px + env(safe-area-inset-right)) env(safe-area-inset-bottom) calc(10px + env(safe-area-inset-left))}.hud-ticker-entry{min-height:44px}.hud-inspector,.hud-destroy-inspector{left:calc(8px + env(safe-area-inset-left));bottom:calc(52px + env(safe-area-inset-bottom));z-index:5;box-sizing:border-box;max-width:min(440px,calc(100vw - 84px - env(safe-area-inset-left)));max-height:46dvh;overflow-y:auto}.hide-resource-ticker .hud-inspector,.hide-resource-ticker .hud-destroy-inspector{bottom:calc(8px + env(safe-area-inset-bottom))}.hud-inspector-actions button,.hud-destroy-actions button{min-width:44px;min-height:44px}.hud-blueprint-confirm{right:calc(8px + env(safe-area-inset-right));bottom:calc(52px + env(safe-area-inset-bottom));left:calc(8px + env(safe-area-inset-left));z-index:7;box-sizing:border-box;flex-wrap:wrap}.hud-blueprint-accept,.hud-blueprint-cancel{order:1;flex:none;width:44px;min-height:44px;padding:0!important;font-size:22px!important;line-height:1}.hud-blueprint-accept{display:block;color:#0e0b0a!important;background:#4ec48c!important;border-color:#4ec48c!important}.hud-blueprint-confirm-title{order:0;flex:1 1 calc(100% - 104px);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hud-blueprint-summary{order:1;flex:1 1 100%;max-width:none;white-space:normal}.hud-chunk-count,.hud-chunk-repeat{order:2;min-height:44px}.hud-chunk-count input{width:54px;min-height:40px}.hud-blueprint-confirm>button:not(.hud-blueprint-accept):not(.hud-blueprint-cancel){order:3}.hide-resource-ticker .hud-blueprint-confirm{bottom:calc(8px + env(safe-area-inset-bottom))}.hud-toasts{top:calc(60px + env(safe-area-inset-top));max-width:calc(100vw - 24px)}.panels{inset:calc(54px + env(safe-area-inset-top)) 0 auto 0;z-index:7;box-sizing:border-box;max-width:100vw;max-height:calc(100dvh - 54px - env(safe-area-inset-top));overflow:hidden}.panel-tabs{box-sizing:border-box;width:100vw;gap:5px;padding:6px calc(8px + env(safe-area-inset-right)) 6px calc(8px + env(safe-area-inset-left));overflow-x:auto;scrollbar-width:none}.panel-tabs::-webkit-scrollbar{display:none}.panel-tabs button{flex:none;min-height:44px;padding:7px 11px}.panel-body{box-sizing:border-box;width:min(420px,calc(100vw - 16px - env(safe-area-inset-left)));max-height:calc(100dvh - 116px - env(safe-area-inset-top));margin:0 8px 8px calc(8px + env(safe-area-inset-left));overscroll-behavior:contain}.panel-settings-close{position:sticky;top:0;z-index:1;display:block;align-self:flex-end;flex:none;width:44px;min-height:44px;margin-left:auto;padding:0!important;font-size:22px!important;line-height:1;background:#1b1715!important}.panel-row,.panel-row button,.panel-form select,.panel-form input,.panel-form>button,.panel-setting{min-height:44px}.resource-dialog{box-sizing:border-box;max-height:calc(100dvh - 16px)}.resource-dialog button{min-height:44px}}@media(hover:none)and (pointer:coarse){.hud-build-tip.open:not(.pinned){display:none}}@media(max-width:600px)and (orientation:portrait){.hud-bar{display:flex;min-height:calc(54px + env(safe-area-inset-top));overflow:hidden}.hud-identity{display:none}.hud-time-controls button,.hud-bar-actions{flex:none}.hud-time-controls button,.hud-bar-actions button,.hud-mobile-page-toggle{min-width:38px;width:38px;padding-inline:0!important}.mobile-status-view .hud-identity{display:flex;min-width:72px;max-width:72px}.hud-sidebar{inset:auto 0 0;width:100%;height:min(72dvh,640px);padding:10px calc(10px + env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) calc(10px + env(safe-area-inset-left));border-top:1px solid rgba(232,224,216,.28);border-left:0;box-shadow:0 -14px 40px #00000073;transform:translateY(105%)}.hud-sidebar.mobile-open{transform:translateY(0)}.hud-inspector,.hud-destroy-inspector{max-width:calc(100vw - 24px - env(safe-area-inset-left))}}@media(prefers-reduced-motion:reduce){.hud-sidebar,.hud-sidebar-scrim{transition:none}}
