*{box-sizing:border-box;user-select:none;-webkit-user-select:none}html,body{margin:0;padding:0;width:100%;height:100%;overflow:hidden;background:#1b2026;font-family:Verdana,Geneva,Tahoma,sans-serif;font-size:11px;color:#1a1a1a}#app{position:relative;width:100%;height:100%}canvas#game{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;image-rendering:pixelated;image-rendering:crisp-edges;cursor:crosshair}.panel{background:#d4d0c8;border:2px solid;border-color:#ffffff #6d6a64 #6d6a64 #ffffff;box-shadow:1px 1px #0005}.panel button{font-family:inherit;font-size:11px;background:#d4d0c8;border:2px solid;border-color:#ffffff #6d6a64 #6d6a64 #ffffff;padding:2px 7px;cursor:pointer;min-width:26px;color:#1a1a1a}.panel button:active,.panel button.active{border-color:#6d6a64 #ffffff #ffffff #6d6a64;background:#c8c4bc}.btn-link{display:inline-block;font-family:inherit;font-size:11px;background:#d4d0c8;border:2px solid;border-color:#ffffff #6d6a64 #6d6a64 #ffffff;padding:2px 7px;cursor:pointer;color:#1a1a1a;text-decoration:none}.btn-link:active{border-color:#6d6a64 #ffffff #ffffff #6d6a64;background:#c8c4bc}#topbar{position:absolute;top:6px;left:6px;right:6px;display:flex;align-items:center;gap:8px;padding:4px 8px;flex-wrap:wrap}#topbar .stat{padding:2px 8px;background:#1f2a1f;color:#8ef08e;border:1px solid;border-color:#6d6a64 #ffffff #ffffff #6d6a64;font-family:Courier New,monospace;font-weight:700;white-space:nowrap}#topbar .title{font-weight:700;color:#3a3530;letter-spacing:1px;margin-right:4px}#topbar .spacer{flex:1}#toolbar{position:absolute;bottom:6px;left:6px;display:flex;align-items:center;gap:6px;padding:5px 8px}#toolbar .sep{width:2px;align-self:stretch;border-left:1px solid #6d6a64;border-right:1px solid #ffffff;margin:0 2px}#toolbar button.locked{color:#8a867e;text-shadow:1px 1px 0 #ffffff}#status{position:absolute;bottom:6px;right:6px;max-width:38%;padding:4px 10px;color:#2a2a2a}#side-panels{position:absolute;top:48px;right:6px;width:264px;display:flex;flex-direction:column;gap:6px;z-index:2}#missions{width:100%;padding:6px 8px;background:#d4d0c8;font-family:Courier New,monospace;font-size:10px;line-height:1.45}#missions.hidden{display:none}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px}.panel-title{color:#6d2a26;font-family:Verdana,Geneva,Tahoma,sans-serif;font-size:11px;font-weight:700;letter-spacing:1px;text-align:left}.panel-head button.close{margin:0;padding:0;width:18px;height:17px;min-width:18px;font-family:Verdana,Geneva,Tahoma,sans-serif;line-height:11px;font-size:12px;font-weight:700}#missions .done{color:#1d6f35;font-weight:700}@media(max-width:760px){#side-panels{top:84px;left:6px;right:auto;width:min(264px,calc(100% - 12px))}#status{bottom:44px;left:6px;right:auto;max-width:calc(100% - 12px)}}#help{padding:6px 8px 5px;color:#444;line-height:1.5;width:100%}#help.hidden{display:none}#debug{position:absolute;top:48px;left:6px;bottom:44px;display:flex;flex-direction:column;gap:5px;padding:6px 8px;width:252px}#debug.hidden{display:none}#debug .debug-title{font-weight:700;color:#6d2a26;letter-spacing:1px;text-align:center}#debug .swatches{display:flex;gap:3px;justify-content:center}#debug .swatch{width:16px;height:16px;min-width:16px;padding:0}#debug .swatch.sel{border-color:#1a1a1a;outline:1px solid #1a1a1a}#debug .debug-buttons{display:flex;flex-direction:column;gap:4px;margin-bottom:6px}#debug .debug-line{display:flex;gap:3px;justify-content:center}#debug .debug-line button{flex:1;font-size:10px;padding:4px 2px;min-width:0;word-break:break-word;line-height:1.2}#debug .debug-stats{padding:5px 6px;background:#e8e4dc;border:2px solid;border-color:#6d6a64 #ffffff #ffffff #6d6a64;font-family:Courier New,monospace;font-size:10px;line-height:1.45}#debug .debug-stats .debug-title{margin-bottom:3px;font-family:Verdana,Geneva,Tahoma,sans-serif}#debug .cfg-head{display:flex;align-items:center;justify-content:space-between;margin-top:4px;padding-top:6px;border-top:1px solid #6d6a64;box-shadow:0 1px #fff inset}#debug .rst-all{font-size:9px;font-weight:700;min-width:0;padding:1px 5px;color:#6d2a26}#debug .cfg-list{flex:1;overflow-y:scroll;overflow-x:hidden;background:#e8e4dc;border:2px solid;border-color:#6d6a64 #ffffff #ffffff #6d6a64}#debug .cfg-list::-webkit-scrollbar{width:14px}#debug .cfg-list::-webkit-scrollbar-track{background:#fff;background-image:repeating-conic-gradient(#d4d0c8,#d4d0c8 25%,#fff 0%,#fff 50%);background-size:4px 4px}#debug .cfg-list::-webkit-scrollbar-thumb{background:#d4d0c8;border:2px solid;border-color:#ffffff #6d6a64 #6d6a64 #ffffff}@supports not selector(::-webkit-scrollbar){#debug .cfg-list{scrollbar-color:#b8b4ac #e8e4dc}}#debug .cfg-sec{font-weight:700;color:#3a3530;background:#c8c4bc;padding:2px 4px;margin-top:1px;border-bottom:1px solid #6d6a64;letter-spacing:.5px}#debug .cfg-row{display:flex;align-items:center;gap:3px;padding:1px 3px}#debug .cfg-row:hover{background:#d8d4cc}#debug .cfg-name{flex:1;font-family:Courier New,monospace;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#2a2a2a}#debug .cfg-row.custom .cfg-name{font-weight:700;color:#00007b}#debug .cfg-row input{width:56px;font-family:Courier New,monospace;font-size:10px;padding:1px 3px;background:#fff;border:2px solid;border-color:#6d6a64 #ffffff #ffffff #6d6a64;color:#1a1a1a}#debug .cfg-row.custom input{font-weight:700;color:#00007b}#debug .cfg-row input::-webkit-outer-spin-button,#debug .cfg-row input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}#debug .cfg-row input[type=number]{-moz-appearance:textfield;-webkit-appearance:textfield;appearance:textfield}#debug .cfg-row .rst{min-width:0;padding:0 2px;font-size:8px;line-height:11px}#debug .cfg-row .rst:disabled{color:#8a867e;cursor:default}#options-menu{position:absolute;top:48px;right:6px;display:flex;flex-direction:column;gap:3px;padding:6px 8px;min-width:140px;z-index:6}#options-menu.hidden{display:none}#options-menu .menu-item{text-align:left;padding:3px 8px;font-size:11px;white-space:nowrap}#overlay,#onboard,#confirm-modal,#speedway-modal{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;background:#0a0a108c;z-index:10}#overlay.hidden,#onboard.hidden,#confirm-modal.hidden,#speedway-modal.hidden{display:none}#overlay .panel,#onboard .panel,#confirm-modal .panel,#speedway-modal .panel{position:relative;padding:18px 28px;text-align:center;min-width:280px;max-width:360px}#overlay h1,#onboard h1,#confirm-modal h1,#speedway-modal h1{margin:0 0 10px;font-size:18px;color:#8e2f2c}#overlay p,#onboard p,#confirm-modal p,#speedway-modal p{margin:4px 0;font-size:12px}#overlay .over-stats{margin:12px auto 4px;padding:8px 10px;max-width:260px;text-align:left;background:#e8e4dc;border:2px solid;border-color:#6d6a64 #ffffff #ffffff #6d6a64;font-family:Courier New,monospace;font-weight:700}#overlay .over-stats p{margin:3px 0}#onboard .device-note{margin-top:10px;color:#5a5148;font-weight:700}#overlay button,#overlay .btn-link,#onboard button,#onboard .btn-link,#confirm-modal button,#confirm-modal .btn-link,#speedway-modal button,#speedway-modal .btn-link{margin-top:14px;font-size:13px;padding:5px 18px}#onboard button.close{position:absolute;top:5px;right:5px;margin:0;padding:0;width:22px;height:20px;min-width:22px;line-height:14px;font-size:14px;font-weight:700}#onboard .actions,#confirm-modal .actions,#speedway-modal .actions{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap}#onboard .star-badge{margin-top:14px;height:20px}
