/* ================= PHONES ================= A decluttered, app-like layout: a one-row status strip at the top, a tab bar at the bottom (play, speed, goals, deals, NOC, networks), and bottom sheets you drag up, down or away. */ html,body{overscroll-behavior:none} .dtabs{position:sticky;top:-12px;z-index:3;display:flex;gap:6px;overflow-x:auto;margin:10px -4px 4px;padding:8px 4px;background:var(--paper);border-bottom:2.5px solid var(--ink);scrollbar-width:none} .dtabs button{flex:0 0 auto;font:800 13px Nunito,sans-serif;border:2.5px solid var(--ink);border-radius:999px;background:#fff;padding:5px 12px;cursor:pointer;color:var(--ink)} .dtabs button.on{background:var(--pink,#FF4F9A);color:#fff} .dtabs .cnt{display:inline-block;margin-left:5px;min-width:16px;padding:0 4px;border-radius:8px;background:var(--bad);color:#fff;font-size:10.5px;line-height:16px;text-align:center} .pcard{border:2.5px solid var(--ink);border-radius:14px;padding:8px 10px;margin:0 0 10px;background:#FFF6CF} .pcard .pt{font-weight:900;font-size:15px;margin:1px 0 2px}.pcard .kv{margin-top:5px}.pcard .bar{margin-top:2px} .pcard.lv{background:#EAF6FF} .pitch{list-style:none;padding:0;margin:10px 0}.pitch li{margin:7px 0;line-height:1.38;font-size:14px}.pitch li.warn{background:#FFF4D6;border:2px solid var(--ink);border-radius:10px;padding:6px 8px} .isteps{padding-left:22px;margin:8px 0 4px}.isteps li{margin:5px 0;line-height:1.38;font-size:14px}.isteps svg{vertical-align:-3px} .icard{margin:8px 0 10px;border:2.5px solid var(--ink);border-radius:14px;padding:8px 10px;background:#FFF4D6} /* iPhone home-screen app with a viewport shorter than the screen: the page box takes the real screen height and becomes the containing block for everything fixed, so bottom-anchored UI reaches the bottom. */ html.iosfix,html.iosfix body{height:var(--app-h)} html.iosfix body{position:fixed;top:0;left:0;right:0;transform:translateZ(0)} button,.chip,.b,a{touch-action:manipulation;-webkit-tap-highlight-color:transparent} #hud,#tabbar,.tabs,.grab{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none} #tabbar,.grab{display:none} @media (max-width:760px),(max-height:500px) and (pointer:coarse){ :root{--tabbar:calc(58px + env(safe-area-inset-bottom,0px))} #hud{flex-wrap:nowrap;top:calc(env(safe-area-inset-top,0px) + 6px);left:max(8px,env(safe-area-inset-left,0px));right:max(8px,env(safe-area-inset-right,0px));gap:5px} #hud .speed,#hud #hNoc,#hud .spacer{display:none !important} #hud .chip{flex:0 1 auto;min-width:0} #hud .chip .lbl{font-size:8.5px;letter-spacing:.05em} #hud .cashbtn{flex:0 1 auto} #leftToggle{display:none !important} #tabbar{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:9;height:var(--tabbar);padding:6px max(6px,env(safe-area-inset-right,0px)) env(safe-area-inset-bottom,0px) max(6px,env(safe-area-inset-left,0px));background:var(--paper);border-top:3px solid var(--ink);box-sizing:border-box;gap:2px;align-items:stretch} #tabbar button{flex:1 1 0;min-width:0;border:0;background:transparent;border-radius:12px;font:inherit;font-weight:900;font-size:10.5px;color:var(--ink2);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;padding:2px 0;position:relative} #tabbar button .ic{font-size:19px;line-height:1.05;color:var(--ink)} #tabbar button.on{background:var(--soft);color:var(--ink)} #tabbar button.play .ic{font-size:21px} #tabbar button.play.paused{background:#FFE3F0} #tabbar .cnt{position:absolute;top:2px;right:calc(50% - 22px);min-width:16px;height:16px;padding:0 4px;border-radius:8px;background:var(--me);color:#fff;font-size:10px;line-height:16px;box-sizing:border-box} #tabbar .cnt.red{background:var(--bad)} #left,#panel{top:auto !important;left:0 !important;right:0 !important;width:auto !important;bottom:var(--tabbar) !important;max-height:min(62%,calc(100% - var(--tabbar) - 70px)) !important;border-radius:20px 20px 0 0 !important;border-bottom:0 !important;box-shadow:0 -3px 0 var(--ink) !important;transition:max-height .22s ease,transform .22s ease;z-index:7} #left.full,#panel.full{max-height:calc(100% - var(--tabbar) - 56px - env(safe-area-inset-top,0px)) !important} #left.closed{display:none} .grab{display:block;height:22px;flex:0 0 22px;cursor:grab;touch-action:none;position:relative} .grab::before{content:"";position:absolute;left:50%;top:8px;width:42px;height:5px;margin-left:-21px;border-radius:3px;background:var(--line)} #left .tabs{display:none} .ph{padding-top:0 !important} .ph h2{font-size:21px} .ph .eyebrow{font-size:10px} #panel .tags,#panel .ph .btns{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none} #toasts{top:calc(env(safe-area-inset-top,0px) + 54px) !important;bottom:auto !important;width:calc(100% - 16px) !important;flex-direction:column !important;pointer-events:auto} .toast{pointer-events:auto;padding:6px 10px;border-width:2.5px;box-shadow:2px 2px 0 var(--ink);border-radius:12px} .toast .tx{font-size:12px;line-height:1.3} .toast .tx b{font-size:12.5px} #hint{top:auto !important;bottom:calc(var(--tabbar) + 10px) !important} body.sheet-open #hint{display:none} #coach{top:auto !important;bottom:calc(var(--tabbar) + 8px);width:calc(100% - 16px);padding:7px 10px;font-size:13px} body.sheet-open #coach{bottom:calc(var(--tabbar) + 8px + min(62vh,520px))} #modal{align-items:end;padding:0} #modal.link-check{bottom:var(--tabbar)} #modal .cta{position:sticky;bottom:calc(-16px - env(safe-area-inset-bottom,0px));z-index:1;background:var(--paper);margin:12px -16px 0 !important;padding:10px 16px calc(10px + env(safe-area-inset-bottom,0px));border-top:2px solid var(--line)} .title-art h1{font-size:34px}.title-art svg{width:54px;height:54px} .tagline{font-size:13.5px;margin:8px 0 10px} .slots{max-height:38vh}.slot-go{padding:7px 4px 7px 9px;gap:8px}.slot-go>i{font-size:22px}.slot .sn b{font-size:16px}.slot .sm em{font-size:13.5px}.slot .sn small,.slot .sm small{font-size:11.5px} .door{padding:7px 9px 6px}.door i{font-size:22px}.door b{font-size:16px}.door span{font-size:11.5px} .presets{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px} .presets .preset{flex-direction:column;align-items:center;text-align:center;padding:6px 4px;gap:0} .presets .preset i{font-size:20px}.presets .preset b{font-size:13.5px} .chaos{grid-template-columns:repeat(2,minmax(0,1fr))} #modal .card{box-sizing:border-box;width:100%;max-height:calc(100% - env(safe-area-inset-top,0px) - 24px);border-radius:22px 22px 0 0;padding:16px 16px calc(16px + env(safe-area-inset-bottom,0px));border-bottom:0} #dash{padding:calc(env(safe-area-inset-top,0px) + 6px) 0 0} #dash>.card{border-radius:20px 20px 0 0;min-height:100%} #mega{bottom:calc(var(--tabbar) + 6px)} #update{top:auto !important;bottom:calc(var(--tabbar) + 8px) !important;width:calc(100% - 16px) !important;flex-wrap:wrap;gap:6px 8px;padding:8px 10px} #update .tx{flex:1 1 100%} #update .b{flex:1 1 0} } /* Phones on their side: the sheets slide in from the right and leave the map visible. */ @media (orientation:landscape) and (max-height:500px) and (pointer:coarse),(orientation:landscape) and (max-width:760px) and (max-height:500px){ :root{--tabbar:calc(50px + env(safe-area-inset-bottom,0px))} #left,#panel{left:auto !important;right:0 !important;width:min(440px,58%) !important;top:calc(env(safe-area-inset-top,0px) + 50px) !important;max-height:none !important;border-radius:20px 0 0 0 !important;border-right:0 !important} #left.full,#panel.full{width:min(640px,80%) !important} #tabbar button .ic{font-size:16px} .doors{grid-template-columns:repeat(4,minmax(0,1fr))}.chaos{grid-template-columns:repeat(4,minmax(0,1fr))} .presets{grid-template-columns:repeat(3,minmax(0,1fr))}.preset{display:flex} body.sheet-open #coach{bottom:calc(var(--tabbar) + 8px);left:8px;transform:none;width:calc(42% - 16px)} } /* Installed as an app: no browser chrome, so leave room for the notch and the home indicator. */ @media (display-mode: standalone){ body{background:#57C4E5} } /* Whatever the language, the HUD stays on one row: fitHud() drops chips until it fits. */ #hud.fit1 .hide-md2,#hud.fit2 .hide-md{display:none !important} #hud.fit3 .brand>div,#hud.fit3 .brand .caret{display:none} @media (max-width:760px){ .chip{min-height:40px;padding:2px 8px} .chip .val{font-size:16px} .chip .lbl{font-size:9px} .brand .val{font-size:16px} .hide-sm{display:none !important} #hud{gap:6px} .chip{min-height:34px;padding:2px 7px;border-width:2.5px;box-shadow:2px 2px 0 var(--ink);border-radius:11px} .chip .val{font-size:14px} .chip .sub{font-size:10px} .brand .tube{width:22px;height:22px} .brand>div{display:none} .speed{padding:2px 4px;gap:3px} .speed button{min-width:28px;height:26px;font-size:11.5px;border-width:2px;border-radius:7px} .spacer{display:none} #left{top:auto} #left{top:auto;bottom:calc(env(safe-area-inset-bottom,0px) + 8px);left:8px;right:8px;width:auto;max-height:55%} #left.closed{display:none} #leftToggle{display:flex;position:fixed;left:max(12px,env(safe-area-inset-left,0px));bottom:calc(env(safe-area-inset-bottom,0px) + 14px);z-index:4} #panel{top:auto;bottom:calc(env(safe-area-inset-bottom,0px) + 8px);left:8px;right:8px;width:auto;max-height:58%;z-index:6} .ph h2{font-size:22px} #hint{top:auto;bottom:calc(env(safe-area-inset-bottom,0px) + 70px)} #toasts{bottom:auto;top:calc(env(safe-area-inset-top,0px) + 112px);flex-direction:column;width:calc(100% - 24px)} .toast{padding:6px 10px;border-width:2.5px;box-shadow:2px 2px 0 var(--ink)} .toast .tx{font-size:12px} .toast .tx b{font-size:13px} } @media (prefers-reduced-motion:reduce){:root:not(.anim-force) *{animation:none !important;transition:none !important}} :root.no-anim *{animation:none !important;transition:none !important}