html,body{margin:0;padding:0;width:100%;height:100%;overflow:hidden;background:#1e1e28;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;color:#f0f0f0}#mainCanvas{display:block;width:100%;height:100%;outline:none;visibility:hidden;touch-action:none}#splash{position:fixed;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;background:#2a3350;z-index:10}.splash-inner{text-align:center}#splash h1{margin:0;font-size:48px;font-weight:700;letter-spacing:1px}#splash .version{margin-top:8px;font-size:14px;opacity:.7}#actionMenu{position:fixed;bottom:20px;left:50%;transform:translate(-50%);display:flex;flex-direction:column;align-items:center;gap:8px;z-index:20}#actionMenu .action-row{display:flex;gap:8px;background:#00000080;padding:8px;border-radius:8px}#foodSubmenu{display:flex;gap:6px;background:#00000080;padding:6px;border-radius:6px}#foodSubmenu.hidden{display:none}.action-btn,.food-btn{background:#ffffff1a;color:#f0f0f0;border:1px solid rgba(255,255,255,.2);padding:8px 16px;font-family:inherit;font-size:14px;font-weight:700;letter-spacing:1px;cursor:pointer;border-radius:4px;transition:background .15s,border-color .15s}.food-btn{padding:6px 12px;font-size:12px}.action-btn:hover,.food-btn:hover{background:#fff3}.action-btn.selected,.food-btn.selected{background:#ffffff4d;border-color:#e59c14;color:#fff}.action-btn:disabled{opacity:.4;cursor:not-allowed}#hud.hidden{display:none}#timeHud{position:fixed;top:16px;right:16px;padding:8px 12px;background:#00000080;border-radius:8px;color:#f0f0f0;font-family:inherit;font-size:14px;font-weight:700;letter-spacing:1px;font-variant-numeric:tabular-nums;z-index:20}.mobile-toggle{display:none;position:fixed;z-index:25;height:36px;padding:0 12px;background:#0009;color:#f0f0f0;border:1px solid rgba(255,255,255,.2);border-radius:18px;font-family:inherit;font-size:12px;font-weight:700;letter-spacing:1px;cursor:pointer;align-items:center;justify-content:center;gap:4px}#statsToggle{top:12px;left:12px}#garageToggle{top:12px;left:50%;transform:translate(-50%)}.mobile-toggle.panel-open,.mobile-toggle.hidden-no-car{display:none!important}@media (max-width: 768px){.mobile-toggle{display:flex}#hud:not(.open){display:none}#topPanel:not(.open){display:none}#starterStrip,#garageStrip{max-width:calc(100vw - 32px);overflow-x:auto}#timeHud{top:12px;right:12px;padding:4px 8px;font-size:11px}#actionMenu{bottom:12px}.action-btn{padding:6px 10px;font-size:12px}}#hud{position:fixed;top:16px;left:16px;display:flex;flex-direction:column;gap:4px;padding:12px;background:#00000080;border-radius:8px;z-index:20;font-size:12px;font-weight:700;letter-spacing:1px;pointer-events:none}.hud-row{display:flex;align-items:center;gap:8px}.hud-label{width:64px;color:#fffc}.hud-bar{position:relative;width:120px;height:10px;background:#ffffff26;border-radius:5px;overflow:hidden}.hud-fill{height:100%;border-radius:5px;transition:width .1s linear}.hud-fill[data-stat-fill=hunger]{background:#e67e22}.hud-fill[data-stat-fill=fuel]{background:#f1c40f}.hud-fill[data-stat-fill=oil]{background:#2c3e50}.hud-fill[data-stat-fill=dirtiness]{background:#8b5a2b}.hud-fill[data-stat-fill=happiness]{background:#27ae60}.hud-midpoint{position:absolute;left:50%;top:0;width:1px;height:100%;background:#fff6}.hud-fill-signed{position:absolute;top:0;height:100%;background:#3498db;transition:left .1s linear,width .1s linear}.hud-value{width:36px;text-align:right;color:#ffffffe6;font-variant-numeric:tabular-nums}.hud-pills{display:flex;gap:6px;margin-top:4px;min-height:18px}.hud-pill{padding:2px 8px;border-radius:9px;font-size:10px;color:#fff}.hud-pill-scared{background:#e74c3cd9}.hud-pill-purring{background:#27ae60d9}.hud-pill.hidden{display:none}#topPanel{position:fixed;top:16px;left:50%;transform:translate(-50%);display:flex;flex-direction:column;align-items:center;gap:8px;z-index:20}#starterStrip,#garageStrip{display:flex;gap:8px;padding:8px;background:#00000080;border-radius:8px}#garageStrip.empty{display:none}.starter-card{display:flex;flex-direction:column;align-items:center;gap:4px;width:72px;padding:8px 6px;background:#ffffff1a;border:1px solid rgba(255,255,255,.2);border-radius:6px;color:#f0f0f0;font-family:inherit;font-size:11px;font-weight:700;letter-spacing:1px;cursor:pointer;transition:background .15s,border-color .15s}.starter-card:hover{background:#fff3}.starter-card:disabled{opacity:.4;cursor:not-allowed}.starter-swatch{width:32px;height:32px;border-radius:4px;box-shadow:inset 0 0 0 1px #0000004d}.starter-sports{background:#e74c3c}.starter-truck{background:#5d6d7e}.starter-kart{background:#f1c40f}.starter-race{background:#e67e22}.starter-utility{background:#27ae60}.starter-label{font-size:10px;color:#ffffffd9}.garage-card{display:flex;align-items:center;gap:6px;padding:6px 10px;background:#ffffff1a;border:1px solid rgba(255,255,255,.2);border-radius:6px;color:#f0f0f0;font-family:inherit;font-size:11px;font-weight:700;letter-spacing:1px;cursor:pointer;transition:background .15s,border-color .15s}.garage-card:hover{background:#fff3}.garage-card.selected{border-color:#e59c14;background:#e59c1433}.garage-label{font-size:11px;color:#ffffffe6}.garage-delete{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;background:#ffffff26;color:#ffffffb3;font-size:16px;line-height:1}.garage-delete:hover{background:#e74c3cb3;color:#fff}
