:root{font-family:Inter,PingFang SC,Microsoft YaHei,system-ui,sans-serif;color:#f3f5f1;background:#111713;font-synthesis:none;text-rendering:optimizeLegibility;letter-spacing:0}*{box-sizing:border-box}html,body,#app{width:100%;height:100%;margin:0;overflow:hidden}button{font:inherit;letter-spacing:0}button:focus-visible{outline:2px solid #f1c65b;outline-offset:2px}.game-shell,.scene{position:relative;width:100%;height:100%}.scene canvas{display:block;width:100%;height:100%}.topbar{position:absolute;inset:max(14px,env(safe-area-inset-top)) 18px auto;z-index:5;display:grid;grid-template-columns:minmax(210px,1fr) auto minmax(210px,1fr);align-items:start;gap:14px;pointer-events:none}.brand-block,.metrics,.view-tools,.control-dock,.operation-strip{border:1px solid rgba(255,255,255,.12);background:#121815e8;box-shadow:0 12px 34px #070c0933;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}.brand-block{justify-self:start;display:flex;align-items:center;min-width:220px;height:58px;padding:8px 14px 8px 9px;border-radius:7px}.brand-mark{display:grid;width:40px;height:40px;margin-right:10px;place-items:center;border-radius:6px;color:#172019;background:#f1c65b}.brand-mark svg{width:23px}.brand-block p,.brand-block span{margin:0}.brand-block p{font-size:16px;font-weight:760}.brand-block span{display:block;margin-top:2px;color:#9ca9a2;font-size:11px}.metrics{display:flex;height:58px;border-radius:7px}.metric{display:grid;grid-template-columns:20px minmax(50px,auto);grid-template-rows:17px 22px;align-content:center;min-width:102px;padding:5px 14px;border-right:1px solid rgba(255,255,255,.09)}.metric:last-child{border-right:0}.metric svg{grid-row:1 / 3;align-self:center;width:16px;color:#76b99a}.metric-points svg{color:#f1c65b}.metric span{color:#98a49e;font-size:10px}.metric strong{font-size:17px;line-height:21px}.view-tools{justify-self:end;display:flex;height:46px;padding:4px;border-radius:7px;pointer-events:auto}.icon-button{display:inline-grid;grid-auto-flow:column;align-items:center;justify-content:center;width:38px;min-width:38px;height:36px;padding:0;border:0;border-radius:5px;color:#dce2de;background:transparent;cursor:pointer}.icon-button:hover{background:#ffffff14}.icon-button svg{width:18px}#speed{width:52px}#speed span{margin-left:3px;font-size:10px;font-weight:750}.control-dock{position:absolute;z-index:5;top:88px;right:18px;width:326px;max-height:calc(100% - 172px);overflow:hidden;border-radius:8px;transition:width .18s ease,background-color .18s ease}.dock-content{max-height:calc(100vh - 172px);overflow:auto;overscroll-behavior:contain}.dock-toggle{position:absolute;z-index:3;top:10px;right:11px;display:flex;align-items:center;justify-content:center;min-width:58px;height:30px;padding:0 9px;gap:4px;border:1px solid rgba(255,255,255,.14);border-radius:5px;color:#cdd5d0;background:#ffffff0e;cursor:pointer}.dock-toggle:hover{background:#ffffff1a}.dock-toggle svg{width:15px;height:15px}.dock-toggle span{font-size:10px;font-weight:700}.control-dock.collapsed{width:auto;max-height:none;overflow:visible;border:0;background:transparent;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}.control-dock.collapsed .dock-content{display:none}.control-dock.collapsed .dock-toggle{position:static;min-width:82px;height:40px;color:#1f231c;border-color:#d4ab4d;background:#f1c65b;box-shadow:0 8px 22px #070c093d}.dock-heading{display:flex;align-items:center;justify-content:space-between;min-height:67px;padding:12px 82px 12px 15px;border-bottom:1px solid rgba(255,255,255,.09)}.eyebrow{color:#77b899;font-size:9px;font-weight:760}.dock-heading h1{margin:3px 0 0;font-size:16px;line-height:20px}.status-dot{color:#aab5af;font-size:10px}.status-dot i{display:inline-block;width:7px;height:7px;margin-right:5px;border-radius:50%;background:#4ed183;box-shadow:0 0 8px #4ed183a6}.control-section{padding:13px 15px 15px;border-bottom:1px solid rgba(255,255,255,.08)}.control-section:last-child{border-bottom:0}.section-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.section-heading h2{margin:0;font-size:12px}.section-heading span{color:#8f9c95;font-size:10px}.vehicle-actions{display:grid;gap:6px}.purchase-row{display:grid;grid-template-columns:38px minmax(72px,1fr) auto auto;align-items:center;width:100%;min-height:50px;padding:6px 9px;border:1px solid rgba(255,255,255,.09);border-radius:6px;color:#edf1ee;text-align:left;background:#ffffff09;column-gap:7px}.purchase-row.just-added{animation:vehicle-added .62s ease-out}#fleet-count.just-added{animation:fleet-added .62s ease-out}@keyframes vehicle-added{0%{border-color:#6fd3a3e6;background:#48ae7e3d}to{border-color:#ffffff17;background:#ffffff09}}@keyframes fleet-added{0%,45%{color:#74d9aa;transform:scale(1.08)}to{color:#8f9c95;transform:scale(1)}}.compact-button:disabled{opacity:.42;cursor:not-allowed}.vehicle-icon,.upgrade-icon{display:grid;width:31px;height:31px;place-items:center;border-radius:5px}.vehicle-icon svg,.upgrade-icon svg{width:18px}.vehicle-icon.scooter{color:#95ceb4;background:#4f957433}.vehicle-icon.sedan{color:#8fb8de;background:#3a70a138}.vehicle-icon.truck{color:#e7be70;background:#b27e2d33}.purchase-copy strong,.purchase-copy small,.upgrade-line strong,.upgrade-line small{display:block}.purchase-copy strong,.upgrade-line strong{font-size:11px}.purchase-copy small,.upgrade-line small{margin-top:2px;color:#8e9a94;font-size:9px}.compact-button svg{width:13px;margin-right:3px}.upgrade-line{display:grid;grid-template-columns:38px minmax(90px,1fr) auto;align-items:center;min-height:48px}.upgrade-icon.signal{color:#f08d65;background:#be4b2b2e}.upgrade-icon.road{color:#b4b7ad;background:#979c9326}.upgrade-icon.turn-lane{color:#7ec5a3;background:#44946b2e}.compact-button{display:flex;align-items:center;justify-content:center;min-width:68px;height:31px;padding:0 9px;border:1px solid rgba(255,255,255,.16);border-radius:5px;color:#e9ece8;background:#ffffff0f;cursor:pointer;white-space:nowrap}.purchase-button{color:#1f231c;border-color:#cfa64b;background:#f1c65b}.compact-button[data-insufficient=true]{opacity:.72}.compact-button:active:not(:disabled),.ad-purchase-button:active{transform:translateY(1px) scale(.98)}.purchase-actions{display:flex;align-items:center;gap:8px}.ad-purchase-button{display:grid;width:31px;min-width:31px;height:31px;padding:0;place-items:center;border:1px solid rgba(241,198,91,.42);border-radius:5px;color:#f1c65b;background:#ad821f24;cursor:pointer}.ad-purchase-button:hover{background:#ad821f47}.ad-purchase-button svg{width:16px}.compact-button>svg{width:16px;margin:0}.ad-purchase-button[hidden]{display:none}.compact-button.primary{border-color:#cfa64b;color:#1f231c;background:#f1c65b}.road-line{margin-top:4px}.operation-strip{position:absolute;z-index:5;bottom:max(18px,env(safe-area-inset-bottom));left:18px;display:flex;align-items:stretch;min-height:62px;border-radius:7px}.phase-indicator{display:grid;grid-template-columns:12px minmax(150px,auto) 34px;align-items:center;gap:10px;padding:9px 13px;border-right:1px solid rgba(255,255,255,.09)}.phase-light{width:9px;height:9px;border-radius:50%;background:#de4949;box-shadow:0 0 9px #de4949cc}.phase-light[data-state=green]{background:#4ed183;box-shadow:0 0 9px #4ed183cc}.phase-light[data-state=yellow]{background:#f1c65b;box-shadow:0 0 9px #f1c65bcc}.phase-indicator small,.flow-stats small{display:block;color:#8e9a94;font-size:9px}.phase-indicator strong{display:block;margin-top:2px;font-size:11px}.phase-indicator>b{font-size:12px;text-align:right}.flow-stats{display:flex;align-items:center}.flow-stats>div{min-width:88px;padding:8px 13px}.flow-stats strong{display:block;margin-top:2px;font-size:13px}#congestion[data-level=medium]{color:#f1c65b}#congestion[data-level=high]{color:#ed6b5f}.toast{position:absolute;z-index:20;top:82px;left:50%;min-width:220px;max-width:calc(100% - 32px);padding:10px 16px;border:1px solid rgba(111,195,155,.45);border-radius:6px;color:#eaf5ef;font-size:12px;text-align:center;background:#1b4632f0;opacity:0;pointer-events:none;transform:translate(-50%,-8px);transition:opacity .16s ease,transform .16s ease}.toast[data-tone=warn]{border-color:#e2ab4973;background:#5b3c16f2}.toast.visible{opacity:1;transform:translate(-50%)}.ad-overlay{position:absolute;z-index:40;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;padding:20px;background:#090d0bc2;opacity:0;visibility:hidden;transition:opacity .18s ease}.ad-overlay.visible{opacity:1;visibility:visible}.ad-demo{position:relative;width:min(360px,100%);padding:22px;border:1px solid rgba(255,255,255,.16);border-radius:8px;text-align:center;background:#1a211e;box-shadow:0 24px 80px #00000073}.ad-close{position:absolute;top:6px;right:6px}.ad-badge{display:inline-block;color:#8f9b94;font-size:9px}.ad-visual{display:grid;width:78px;height:78px;margin:18px auto 13px;place-items:center;border-radius:50%;color:#183129;background:#79c9a2;box-shadow:0 0 0 9px #79c9a214}.ad-visual svg{width:38px;height:38px}.ad-demo h2{margin:0;font-size:17px}.ad-demo p{margin:7px 0 18px;color:#9ba69f;font-size:11px}.ad-progress{height:5px;overflow:hidden;border-radius:3px;background:#ffffff17}.ad-progress i{display:block;width:0;height:100%;background:#f1c65b;transition:width 50ms linear}.ad-demo>strong{display:block;margin-top:10px;color:#d8ded9;font-size:10px}@media(max-width:760px){.topbar{inset:max(8px,env(safe-area-inset-top)) 8px auto;grid-template-columns:1fr auto;gap:6px}.brand-block{min-width:0;height:49px;padding:5px 9px}.brand-mark{width:34px;height:34px}.brand-block p{font-size:14px}.brand-block span{font-size:9px}.view-tools{height:42px}.view-tools .icon-button{width:34px;min-width:34px;height:32px}#speed{width:45px}.metrics{grid-column:1 / -1;width:100%;height:48px}.metric{flex:1;min-width:0;padding:3px 8px}.control-dock{top:auto;right:8px;bottom:max(8px,env(safe-area-inset-bottom));left:8px;width:auto;max-height:min(34dvh,360px)}.dock-content{max-height:min(34dvh,360px)}.control-dock.collapsed{right:max(8px,env(safe-area-inset-right));bottom:max(10px,env(safe-area-inset-bottom));left:auto}.control-dock.collapsed .dock-toggle{min-width:76px;height:38px}.dock-toggle{top:6px;right:8px;min-width:52px;height:27px;padding:0 7px}.dock-toggle span{font-size:9px}.dock-heading{min-height:39px;padding:6px 70px 6px 10px}.dock-heading h1{margin-top:1px;font-size:12px;line-height:15px}.eyebrow,.status-dot{font-size:8px}.control-section{padding:7px 10px 8px}.section-heading{margin-bottom:6px}.section-heading h2{font-size:11px}.section-heading span{font-size:9px}.vehicle-actions{grid-template-columns:repeat(3,minmax(0,1fr))}.purchase-row{grid-template-columns:27px minmax(0,1fr) 28px;grid-template-rows:auto auto;min-height:62px;padding:4px;column-gap:4px}.purchase-copy strong,.upgrade-line strong{font-size:10px}.upgrade-line small{font-size:8px}.purchase-row .purchase-button{grid-column:1 / 3;width:100%;min-width:0;height:24px;padding:0 3px;font-size:10px}.purchase-row .ad-purchase-button{grid-column:3;grid-row:1 / 3}.purchase-copy small{display:none}.vehicle-icon{width:25px;height:31px}.vehicle-icon svg,.upgrade-icon svg{width:16px}.upgrade-line{grid-template-columns:34px minmax(82px,1fr) auto;min-height:42px}.upgrade-icon{width:28px;height:28px}.compact-button,.ad-purchase-button{height:28px}.compact-button{min-width:60px;padding:0 7px;font-size:10px}.ad-purchase-button{width:28px;min-width:28px}.purchase-actions{gap:6px}.road-line{margin-top:1px}.operation-strip{display:none}.toast{top:108px}}@media(max-width:390px){.control-dock,.dock-content{max-height:min(32dvh,320px)}.purchase-copy strong,.upgrade-line strong,.compact-button{font-size:9px}.upgrade-line small{font-size:8px}.compact-button{min-width:54px;padding-inline:5px}.purchase-actions{gap:4px}}@media(max-width:340px){.purchase-row{grid-template-columns:minmax(0,1fr) 27px}.purchase-row .vehicle-icon{display:none}.purchase-row .purchase-copy strong{white-space:nowrap}.purchase-row .purchase-button{grid-column:1}.purchase-row .ad-purchase-button{grid-column:2}}@media(max-height:700px)and (max-width:760px){.control-dock,.dock-content{max-height:31dvh}.dock-heading{min-height:35px}.control-section{padding-top:6px;padding-bottom:6px}}@media(max-height:690px)and (min-width:761px){.control-dock{top:78px;max-height:calc(100% - 150px)}.dock-heading{min-height:52px}.control-section{padding-top:9px;padding-bottom:10px}.purchase-row{min-height:43px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition-duration:.01ms!important}}
