*{box-sizing:border-box}body{margin:0;background:#0b0b12;color:#f5f5f5;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif}.app{display:flex;flex-direction:column;align-items:center;min-height:100vh;padding:16px;gap:12px}.hud{display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center}.hud h1{margin:0;font-size:20px;letter-spacing:.12em;text-transform:uppercase}.hud-hint{margin:0;font-size:12px;opacity:.6}.phaser-container{border:1px solid #2a2a3a;box-shadow:0 0 24px #00000080;line-height:0}.race-hud{position:fixed;top:8px;left:8px;display:flex;flex-direction:column;gap:6px;padding:10px 12px;background:#14141ecc;border:1px solid #2a2a3a;border-radius:6px;font-size:12px;color:#f5f5f5;z-index:10}.race-lap{font-size:14px;font-weight:600;letter-spacing:.05em}.race-leaderboard{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px;font-family:ui-monospace,SFMono-Regular,monospace}.race-leaderboard li{display:grid;grid-template-columns:24px 1fr auto;gap:8px;padding:1px 4px;border-radius:3px}.race-leaderboard li.me{background:#a050dc40;color:#f0c8ff}.race-leaderboard .pos{color:#888}.race-winner{position:fixed;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;background:#0000008c;z-index:20;pointer-events:none;animation:fade-in .4s ease-out}.race-winner-inner{text-align:center;padding:32px 64px;background:#14141ee6;border:2px solid #ffe066;border-radius:12px;box-shadow:0 0 40px #ffe0664d}.race-winner-label{font-size:14px;letter-spacing:.3em;text-transform:uppercase;color:#ffe066;margin-bottom:8px}.race-winner-name{font-size:48px;font-weight:700;letter-spacing:.05em}@keyframes fade-in{0%{opacity:0}to{opacity:1}}.audio-controls{display:flex;align-items:center;gap:6px;padding:6px 10px;background:#14141eb3;border:1px solid #2a2a3a;border-radius:6px;font-size:12px}.audio-controls button{min-width:32px;padding:4px 10px;background:#1f1f2a;border:1px solid #3a3a4a;border-radius:4px;color:#f5f5f5;font-family:inherit;font-size:12px;cursor:pointer}.audio-controls button:hover:not(:disabled){background:#2a2a3a}.audio-controls button:disabled{opacity:.4;cursor:not-allowed}.audio-controls button.muted{background:#4a1f2a;border-color:#8a3a4a}.audio-volume{min-width:40px;text-align:center;font-family:ui-monospace,SFMono-Regular,monospace;color:#aaa}.touch-pad,.touch-fire-wrap{position:fixed;bottom:24px;z-index:30;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.touch-pad{left:24px;display:grid;grid-template-columns:repeat(3,64px);grid-template-rows:repeat(3,64px);gap:6px}.touch-pad .up{grid-column:2;grid-row:1}.touch-pad .left{grid-column:1;grid-row:2}.touch-pad .right{grid-column:3;grid-row:2}.touch-pad .down{grid-column:2;grid-row:3}.touch-fire-wrap{right:24px}.touch-btn{width:64px;height:64px;border-radius:50%;border:1px solid #4a4a5a;background:#1e1e2da6;color:#f5f5f5;font-size:22px;font-family:inherit;font-weight:600;display:flex;align-items:center;justify-content:center;cursor:pointer;touch-action:none}.touch-btn:active{background:#a050dc8c;border-color:#b070d0}.touch-btn.fire{width:96px;height:96px;font-size:16px;letter-spacing:.1em;background:#b42828b3;border-color:#d05050}.touch-btn.fire:active{background:#ff783cd9;border-color:#fa6}.debug-hint{position:fixed;top:8px;right:8px;padding:4px 8px;font-size:10px;letter-spacing:.1em;background:#ff00ff26;border:1px solid rgba(255,0,255,.4);border-radius:4px;color:#faf;cursor:pointer;-webkit-user-select:none;user-select:none;font-family:inherit;font-weight:600}.debug-hint:hover{background:#ff00ff40}.debug-panel{position:fixed;top:8px;right:8px;width:320px;max-height:calc(100vh - 16px);overflow-y:auto;padding:12px;background:#14141ef2;border:1px solid #4a3a5a;border-radius:6px;font-size:12px;color:#e0e0e8;z-index:100;box-shadow:0 4px 24px #00000080}.debug-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;padding-bottom:6px;border-bottom:1px solid #3a3a4a;font-weight:600;letter-spacing:.05em}.debug-header button{background:transparent;border:none;color:#aaa;font-size:18px;line-height:1;cursor:pointer;padding:0 4px}.debug-panel h4{margin:8px 0 4px;font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:#aaa}.debug-panel label{display:grid;grid-template-columns:110px 1fr 40px;align-items:center;gap:6px;margin:4px 0}.debug-panel label.checkbox{display:flex;gap:8px}.debug-panel input[type=range]{width:100%}.debug-panel output{text-align:right;font-family:ui-monospace,SFMono-Regular,monospace;font-size:11px}.debug-hint-text{margin:8px 0 0;font-size:10px;color:#666;text-align:right}
