:root{--bg-dark:#0f172a;--surface:#0f172adb;--surface-solid:#111827;--surface-card:#1e293b;--border:#94a3b840;--text-main:#f8fafc;--text-muted:#94a3b8;--primary:#2563eb;--primary-hover:#1d4ed8;--accent:#f97316;--success:#16a34a;--danger:#dc2626;--warning:#d97706;--radius:14px;--safe-top:env(safe-area-inset-top,0px);--safe-bottom:env(safe-area-inset-bottom,0px);--safe-left:env(safe-area-inset-left,0px);--safe-right:env(safe-area-inset-right,0px)}*,:before,:after{box-sizing:border-box}html,body,#root{background:var(--bg-dark);width:100%;height:100%;color:var(--text-main);-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none;margin:0;padding:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;overflow:hidden}code{background:#94a3b829;border-radius:6px;padding:2px 6px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.9em}.title-screen{width:100%;height:100%;padding:calc(20px + var(--safe-top)) 16px calc(24px + var(--safe-bottom));background:radial-gradient(circle at 20% 15%,#f9731638,#0000 45%),radial-gradient(circle at 80% 85%,#2563eb47,#0000 50%),linear-gradient(160deg,#0b1220 0%,#0f172a 60%,#172554 100%);justify-content:center;align-items:center;display:flex;overflow:hidden auto}.title-card{border:1px solid var(--border);background:#0f172aeb;border-radius:20px;flex-direction:column;gap:16px;width:100%;max-width:620px;padding:24px;display:flex;box-shadow:0 24px 64px #0000007a}.title-badge{color:#fdba74;background:#f973162e;border:1px solid #f9731673;border-radius:999px;align-self:flex-start;align-items:center;gap:8px;padding:6px 12px;font-size:.8rem;font-weight:600;display:inline-flex}.title-card h1{letter-spacing:-.02em;margin:0;font-size:clamp(1.7rem,4.5vw,2.35rem);line-height:1.15}.title-lead{color:#cbd5e1;margin:0;font-size:.95rem;line-height:1.55}.title-cta-group{flex-direction:column;gap:10px;display:flex}.saved-slots-box{border:1px solid var(--border);border-radius:var(--radius);background:#1e293bb8;flex-direction:column;gap:8px;padding:12px;display:flex}.saved-slots-title{color:#e2e8f0;align-items:center;gap:6px;font-size:.85rem;font-weight:700;display:flex}.saved-slots-list{flex-direction:column;gap:6px;display:flex}.slot-load-btn{border:1px solid var(--border);width:100%;min-height:44px;color:var(--text-main);cursor:pointer;text-align:left;background:#0f172abf;border-radius:10px;flex-direction:column;align-items:flex-start;gap:2px;padding:8px 12px;font-size:.85rem;display:flex}.slot-load-btn:hover{border-color:#38bdf8}.title-guide{border:1px solid var(--border);border-radius:var(--radius);background:#0f172aa6;padding:14px 16px}.title-guide h3{color:#facc15;margin:0 0 8px;font-size:.95rem}.title-guide ol{color:#cbd5e1;flex-direction:column;gap:6px;margin:0;padding-left:20px;font-size:.88rem;line-height:1.45;display:flex}.game-shell{width:100%;height:100%;position:relative;overflow:hidden}.scene-container{width:100%;height:100%;position:absolute;inset:0}.hud-root{pointer-events:none;z-index:10;flex-direction:column;justify-content:space-between;display:flex;position:absolute;inset:0}.hud-top{padding:calc(10px + var(--safe-top)) calc(12px + var(--safe-right)) 0 calc(12px + var(--safe-left));flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:8px;display:flex}.hud-stats-card,.hud-mission-card{pointer-events:auto;background:var(--surface);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border:1px solid var(--border);border-radius:12px;padding:8px 12px}.hud-stats-card{flex-wrap:wrap;align-items:center;gap:8px 12px;font-size:.85rem;display:flex}.stat-pill{white-space:nowrap;align-items:center;gap:5px;display:inline-flex}.stat-pill-cod{color:#fde047;font-weight:700}.stat-pill-env{color:#bae6fd}.stat-pill-fps{color:#86efac;font-family:ui-monospace,monospace;font-size:.76rem}.hud-mission-card{flex:220px;max-width:380px}.mission-header{color:#38bdf8;align-items:center;gap:6px;font-size:.88rem;display:flex}.mission-header strong{color:var(--text-main);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.mission-dist{color:#7dd3fc;background:#38bdf833;border-radius:999px;flex-shrink:0;margin-left:auto;padding:2px 7px;font-size:.78rem;font-weight:700}.mission-sub{color:#cbd5e1;text-overflow:ellipsis;white-space:nowrap;margin-top:3px;font-size:.78rem;overflow:hidden}.hud-top-actions{pointer-events:auto;gap:6px;display:flex}.hud-icon-btn{border:1px solid var(--border);background:var(--surface);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);min-width:44px;min-height:44px;color:var(--text-main);cursor:pointer;border-radius:12px;justify-content:center;align-items:center;gap:6px;padding:0 12px;font-size:.85rem;font-weight:600;display:inline-flex}.hud-icon-btn:hover{border-color:#38bdf8}.hud-right-panel{top:calc(76px + var(--safe-top));right:calc(12px + var(--safe-right));pointer-events:none;flex-direction:column;gap:8px;width:126px;display:flex;position:absolute}.minimap{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:6px}.minimap-svg{width:100%;height:auto;display:block}.minimap-legend{color:#cbd5e1;justify-content:space-between;margin-top:4px;font-size:.68rem;display:flex}.dot{border-radius:50%;width:7px;height:7px;margin-right:4px;display:inline-block}.dot-warehouse{background:#f97316}.dot-target{background:#38bdf8}.vehicle-status-card{background:var(--surface);border:1px solid var(--border);border-radius:12px;flex-direction:column;gap:6px;padding:8px;display:flex}.speed-readout{justify-content:center;align-items:baseline;gap:4px;display:flex}.speed-num{font-variant-numeric:tabular-nums;font-size:1.45rem;font-weight:800}.speed-unit{color:var(--text-muted);font-size:.72rem}.fuel-bar-wrap{flex-direction:column;gap:3px;display:flex}.fuel-label{color:#cbd5e1;align-items:center;gap:4px;font-size:.72rem;display:flex}.progress-track{background:#94a3b840;border-radius:999px;width:100%;height:7px;overflow:hidden}.progress-fill{background:#22c55e;height:100%;transition:width .18s}.progress-fill.is-low{background:#ef4444}.mode-badge{text-align:center;color:#facc15;font-size:.7rem;font-weight:700}.hud-prompt-area{left:50%;bottom:calc(18px + var(--safe-bottom));pointer-events:none;flex-direction:column;align-items:center;gap:8px;width:min(92vw,440px);display:flex;position:absolute;transform:translate(-50%)}.hud-toast{border:1px solid var(--border);text-align:center;background:#0f172af0;border-radius:12px;padding:8px 14px;font-size:.85rem;box-shadow:0 8px 24px #00000059}.toast-success{color:#bbf7d0;border-color:#22c55e}.toast-warning{color:#fde68a;border-color:#f59e0b}.toast-error{color:#fecaca;border-color:#ef4444}.hud-quick-actions{pointer-events:auto;flex-wrap:wrap;justify-content:center;gap:8px;display:flex}.prompt-cta{color:#fff;cursor:pointer;background:linear-gradient(135deg,#ea580c,#f97316);border:2px solid #fb923c;border-radius:999px;align-items:center;gap:8px;min-height:46px;padding:10px 18px;font-size:.92rem;font-weight:700;display:inline-flex;box-shadow:0 10px 26px #ea580c66}.prompt-cta-secondary{background:linear-gradient(135deg,#1d4ed8,#2563eb);border-color:#60a5fa;box-shadow:0 10px 24px #2563eb59}.prompt-cta-ghost{border-color:var(--border);background:var(--surface);box-shadow:none}.touch-layer{left:0;right:0;bottom:calc(14px + var(--safe-bottom));padding:0 calc(14px + var(--safe-right)) 0 calc(14px + var(--safe-left));pointer-events:none;z-index:12;justify-content:space-between;align-items:flex-end;display:flex;position:absolute}.touch-left,.touch-right{pointer-events:auto;flex-direction:column;gap:10px;display:flex}.joystick-base{touch-action:none;background:#0f172a85;border:2px solid #f8fafc59;border-radius:50%;justify-content:center;align-items:center;width:118px;height:118px;display:flex}.joystick-knob{pointer-events:none;background:#f97316e0;border:2px solid #fff;border-radius:50%;width:48px;height:48px}.steer-pad{gap:12px;display:flex}.touch-utility-row,.touch-primary-row{justify-content:flex-end;gap:10px;display:flex}.touch-btn{color:#fff;touch-action:none;cursor:pointer;background:#0f172ab8;border:2px solid #f8fafc52;border-radius:16px;flex-direction:column;justify-content:center;align-items:center;gap:2px;min-width:48px;min-height:48px;font-size:.78rem;font-weight:700;display:inline-flex}.touch-btn:active{background:#2563ebd9;transform:scale(.95)}.touch-btn-sm{width:48px;height:48px}.touch-btn-md{min-width:68px;height:58px;padding:0 10px}.touch-btn-lg{min-width:68px;height:68px;font-size:.9rem}.touch-btn-action{flex-direction:row;gap:5px;min-width:64px;height:48px;padding:0 10px}.touch-btn-gas{background:#16a34ad1;border-color:#86efac}.touch-btn-brake{background:#dc2626cc;border-color:#fca5a5}.touch-btn.is-ready{background:#ea580ce6;border-color:#fed7aa}.touch-btn.is-disabled,.touch-btn:disabled{opacity:.42;cursor:not-allowed}.modal-backdrop{z-index:40;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);padding:calc(14px + var(--safe-top)) 12px calc(14px + var(--safe-bottom));background:#020617c2;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}.modal-panel{background:var(--surface-solid);border:1px solid var(--border);-webkit-user-select:text;user-select:text;border-radius:18px;flex-direction:column;gap:14px;width:100%;max-width:520px;max-height:90vh;padding:18px;display:flex;overflow-y:auto}.modal-panel-lg{max-width:760px}.modal-header{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.modal-header h2{margin:0;font-size:1.2rem}.modal-subtitle{color:var(--text-muted);margin:4px 0 0;font-size:.84rem}.icon-close-btn{border:1px solid var(--border);background:var(--surface-card);min-width:44px;min-height:44px;color:var(--text-main);cursor:pointer;border-radius:10px;flex-shrink:0;justify-content:center;align-items:center;display:inline-flex}.cargo-banner{background:#1e3a8a59;border:1px solid #3b82f666;border-radius:12px;flex-wrap:wrap;justify-content:space-between;gap:8px;padding:10px 12px;font-size:.88rem;display:flex}.cargo-stat{align-items:center;gap:7px;display:inline-flex}.warehouse-toolbar{flex-wrap:wrap;gap:8px;display:flex}.warehouse-toolbar .text-input,.warehouse-toolbar .select-input{flex:180px}.text-input,.select-input{border:1px solid var(--border);background:var(--surface-card);width:100%;height:44px;min-height:44px;color:var(--text-main);border-radius:10px;padding:8px 12px;font-size:.92rem}.package-list{flex-direction:column;gap:10px;display:flex}.package-card{background:var(--surface-card);border:1px solid var(--border);border-radius:12px;flex-direction:column;gap:8px;padding:12px;display:flex}.package-card.is-selected{border-color:#38bdf8}.package-card-head{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:6px;display:flex}.tracking-code{margin-right:6px;font-family:ui-monospace,monospace;font-weight:700}.badge{border-radius:999px;margin-right:5px;padding:2px 8px;font-size:.72rem;font-weight:700;display:inline-block}.badge-priority-reguler{color:#e2e8f0;background:#94a3b840}.badge-priority-prioritas{color:#fde68a;background:#f59e0b40}.badge-priority-same-day{color:#fecaca;background:#ef444447}.badge-cod{color:#86efac;background:#22c55e38}.status-chip{color:#7dd3fc;background:#38bdf829;border-radius:999px;padding:3px 9px;font-size:.75rem;font-weight:700}.package-card-body{flex-direction:column;gap:3px;font-size:.88rem;display:flex}.package-meta{color:#cbd5e1;flex-wrap:wrap;gap:10px;margin-top:2px;font-size:.78rem;display:flex}.package-actions{flex-wrap:wrap;gap:8px;padding-top:4px;display:flex}.sort-zone-row{flex-wrap:wrap;align-items:center;gap:6px;display:flex}.sort-hint{color:#facc15;font-size:.8rem;font-weight:600}.info-box{background:var(--surface-card);border:1px solid var(--border);border-radius:12px;flex-direction:column;gap:5px;padding:12px;font-size:.9rem;display:flex}.cod-highlight{color:#86efac;font-weight:700}.tab-row{grid-template-columns:1fr 1fr;gap:8px;display:grid}.tab-row-3{grid-template-columns:repeat(3,1fr)}.tab-row-4{grid-template-columns:repeat(auto-fit,minmax(110px,1fr))}.swatch-row{flex-wrap:wrap;gap:10px;display:flex}.swatch-btn{cursor:pointer;border:3px solid #ffffff47;border-radius:50%;width:44px;height:44px}.swatch-btn.is-active{border-color:#facc15;box-shadow:0 0 0 3px #facc1559}.status-chip.is-negative{color:#fecaca;background:#ef444438}.tab-btn{border:1px solid var(--border);background:var(--surface-card);min-height:44px;color:var(--text-main);cursor:pointer;border-radius:10px;justify-content:center;align-items:center;gap:6px;font-weight:600;display:inline-flex}.tab-btn.is-active{background:#2563eb47;border-color:#38bdf8}.tab-btn.is-active.is-danger{background:#dc262647;border-color:#ef4444}.form-stack{flex-direction:column;gap:12px;display:flex}.form-field{color:#cbd5e1;flex-direction:column;gap:5px;font-size:.85rem;display:flex}.error-text{color:#fca5a5;font-size:.8rem}.muted-text{color:var(--text-muted);font-size:.82rem}.settings-grid{grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:14px;display:grid}.settings-section{background:var(--surface-card);border:1px solid var(--border);border-radius:12px;flex-direction:column;gap:10px;padding:12px;display:flex}.settings-section h3{margin:0;font-size:.95rem}.audio-row{align-items:center;gap:10px;display:flex}.audio-row input[type=range]{flex:1}.slot-list{flex-direction:column;gap:8px;display:flex}.slot-row{background:#0f172a99;border-radius:10px;justify-content:space-between;align-items:center;gap:8px;padding:8px;display:flex}.slot-actions,.import-export-row{flex-wrap:wrap;gap:6px;display:flex}.summary-grid{grid-template-columns:repeat(2,1fr);gap:10px;display:grid}.summary-tile{background:var(--surface-card);border:1px solid var(--border);border-radius:12px;flex-direction:column;gap:4px;padding:12px;display:flex}.summary-tile span{color:var(--text-muted);font-size:.78rem}.summary-tile strong{font-size:1.05rem}.modal-footer{border-top:1px solid var(--border);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;padding-top:6px;display:flex}.footer-note{color:#cbd5e1;flex:220px;font-size:.82rem}.btn{cursor:pointer;color:#fff;border:1px solid #0000;border-radius:10px;justify-content:center;align-items:center;gap:7px;min-height:44px;padding:8px 14px;font-size:.9rem;font-weight:700;display:inline-flex}.btn:disabled{opacity:.45;cursor:not-allowed}.btn-sm{min-height:40px;padding:6px 10px;font-size:.8rem}.btn-lg{min-height:48px;padding:10px 18px}.btn-xl{min-height:52px;padding:12px 20px;font-size:1rem}.btn-primary{background:var(--primary)}.btn-primary:hover:not(:disabled){background:var(--primary-hover)}.btn-success{background:var(--success)}.btn-danger{background:var(--danger)}.btn-outline{border-color:var(--border);color:var(--text-main);background:0 0}.btn-outline:hover:not(:disabled){border-color:#38bdf8}.fallback-screen{background:var(--bg-dark);justify-content:center;align-items:center;width:100%;height:100%;padding:20px;display:flex}.fallback-card{background:var(--surface-solid);border:1px solid var(--border);border-radius:16px;flex-direction:column;gap:12px;max-width:440px;padding:20px;display:flex}@media (max-width:700px){.hide-xs,.hide-mobile{display:none}.hud-right-panel{width:102px;top:calc(116px + var(--safe-top))}.hud-prompt-area{bottom:calc(146px + var(--safe-bottom))}.hud-stats-card{padding:6px 9px;font-size:.76rem}.hud-mission-card{padding:6px 9px}}
