*{margin:0;padding:0;box-sizing:border-box}html,body{height:100%;background:#05060d;overflow:hidden;font-family:"Press Start 2P",Courier New,monospace;-webkit-user-select:none;user-select:none}#game-root{position:fixed;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center}#game-wrap{position:relative;line-height:0}#controls{position:absolute;inset-inline:0;bottom:8px;display:flex;align-items:flex-end;justify-content:space-between;gap:10px;padding:0 10px;pointer-events:none;z-index:4}#controls.hidden{display:none}.ctrl-btn{pointer-events:auto;touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;font-family:inherit;min-width:64px;min-height:56px;padding:10px 16px;font-size:22px;color:#e8ecf7;background:#0d10208c;border:2px solid rgba(233,237,247,.35);border-radius:10px;cursor:pointer;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);transition:background .06s,border-color .06s}.ctrl-btn:active{background:#35c8f066;border-color:#9be8ff}.ctrl-btn.boost{flex:1;min-height:66px;font-size:15px;letter-spacing:3px;color:#ffd23e;border-color:#ffd23e80}.ctrl-btn.boost:active,.ctrl-btn.boost.held{background:#ffd23e59;border-color:#ffd23e}#game{image-rendering:pixelated;image-rendering:crisp-edges;touch-action:none;box-shadow:0 0 80px #35c8f026}#game:focus{outline:none}#overlay{position:fixed;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;background:radial-gradient(ellipse at center,#0a0d1ac7,#05060deb);z-index:10}#overlay.hidden{display:none}#overlay-box{text-align:center;color:#e8ecf7;padding:34px 30px;max-width:480px;background:#0d1020e0;border:2px solid #3a3f5c;box-shadow:0 0 0 4px #05060d99,0 0 60px #35c8f02e,8px 8px #00000073}.title{font-size:40px;line-height:1.25;color:#35c8f0;text-shadow:4px 4px 0 #ff5257;margin-bottom:10px}.title.sm{font-size:30px}.sub{font-size:14px;color:#8f96b8;margin-bottom:18px;font-family:system-ui,sans-serif;letter-spacing:6px}.rules{display:inline-flex;flex-direction:column;gap:10px;margin:14px 0;font-size:12px;text-align:left;font-family:system-ui,sans-serif;font-weight:600}.rule{display:flex;align-items:center;gap:10px}.dot{width:14px;height:14px;border-radius:50%;flex:none;animation:dotpulse 1.6s ease-in-out infinite}.dot.green{background:#43e97b;box-shadow:0 0 8px #43e97b}.dot.yellow{background:#ffd23e;box-shadow:0 0 8px #ffd23e;animation-delay:.25s}.dot.red{background:#ff5257;box-shadow:0 0 8px #ff5257;animation-delay:.5s}.dot.oil{background:#23263a;border:2px solid #7e5cd2;box-shadow:0 0 8px #7e5cd2;animation-delay:.75s}.dot.shield{background:#ffd75e;box-shadow:0 0 10px #ffd75e;animation-delay:1s}@keyframes dotpulse{50%{transform:scale(.82);opacity:.75}}.keys{font-size:10px;color:#8f96b8;margin:8px 0}.ctrls{display:flex;gap:10px;justify-content:center;margin:12px 0 2px;align-items:center}.ctrls-label{font-size:10px;color:#8f96b8;letter-spacing:2px}.diffs{display:flex;gap:10px;justify-content:center;margin:14px 0 4px}.diff{font-family:inherit;font-size:11px;color:#8f96b8;background:#171b30;border:2px solid #3a3f5c;padding:10px 14px;cursor:pointer;transition:transform .06s}.diff:hover{transform:translate(-1px,-1px)}.diff.sel{color:#05060d;background:#35c8f0;border-color:#9be8ff;box-shadow:3px 3px #ff5257}.best{font-size:14px;color:#ffd23e;margin:12px 0}.score{font-size:34px;color:#e8ecf7;margin:14px 0}.newbest{font-size:16px;color:#43e97b;margin:8px 0;animation:blink .8s steps(2) infinite}@keyframes blink{50%{opacity:.2}}.go{margin-top:18px;font-family:inherit;font-size:16px;color:#05060d;background:#43e97b;border:none;padding:14px 28px;cursor:pointer;box-shadow:4px 4px #ff5257;transition:transform .06s}.go:hover{background:#5cf592;transform:translate(-1px,-1px);box-shadow:5px 5px #ff5257}.go:active{transform:translate(2px,2px);box-shadow:2px 2px #ff5257}.svc-row{margin-top:14px}.player-row{display:flex;align-items:center;justify-content:center;gap:12px;margin-bottom:2px}.player-name{font-size:11px;color:#ffd23e;font-family:system-ui,sans-serif;font-weight:600}.mini{font-family:inherit;font-size:9px;color:#05060d;background:#ffd23e;border:2px solid #05060d;box-shadow:3px 3px #05060d;padding:8px 12px;cursor:pointer;transition:transform .06s}.mini:hover{transform:translate(-1px,-1px)}.mini:active{transform:translate(2px,2px);box-shadow:1px 1px #05060d}.mini.busy{opacity:.7;cursor:wait;animation:blink .7s steps(2) infinite}.svc-hint{margin:6px auto 0;max-width:380px;font-size:9px;line-height:1.6;color:#565f80;font-family:system-ui,sans-serif}.lb{margin:12px auto 0;max-width:340px;border-top:1px dashed #3a3f5c;padding-top:10px}.lb-title{font-size:9px;color:#8f96b8;letter-spacing:2px;margin-bottom:8px}.lb-list{list-style:none;margin:0;padding:0;font-size:10px;font-family:system-ui,sans-serif;text-align:left;color:#cdd3e8;max-height:130px;overflow-y:auto}.lb-list li{display:flex;justify-content:space-between;gap:12px;padding:4px 2px;border-bottom:1px dotted #23263a;font-variant-numeric:tabular-nums}.lb-list li b{color:#ffd23e}.lb-list .lb-note{justify-content:center;display:block;text-align:center;color:#565f80;border-bottom:none}.lb-me{margin-top:8px;font-size:10px;color:#35c8f0;font-family:system-ui,sans-serif}.svc-error{margin:10px auto 0;font-size:10px;color:#ff8a81;font-family:system-ui,sans-serif;max-width:340px}.lb-result:empty{display:none}.result-rank{font-size:14px;color:#ffd23e;margin:12px 0 6px;animation:blink .6s steps(2) infinite}.result-improved{font-size:12px;color:#43e97b;margin-bottom:4px}.result-guest{font-size:10px;color:#8f96b8;font-family:system-ui,sans-serif;margin-top:4px}
