JSFiddle - React, Tailwind, and code Playground

HTML

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>VOID RACER: Starfighter Command</title>
    <style>
        @import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Rajdhani:wght@300;500&display=swap');

        body { margin: 0; overflow: hidden; background-color: #000; font-family: 'Rajdhani', sans-serif; color: #fff; user-select: none; }
        canvas { display: block; }

        /* UI Overlays */
        #ui-layer { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; }
        .overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; background: rgba(0, 0, 0, 0.8); pointer-events: all; transition: opacity 0.5s; }
        .hidden { opacity: 0; pointer-events: none; }

        /* Start Screen */
        h1 { font-family: 'Orbitron', sans-serif; font-size: 4rem; margin-bottom: 0.5rem; letter-spacing: 10px; color: #00f2ff; text-shadow: 0 0 20px #00f2ff; }
        .ship-selection { display: flex; gap: 20px; margin-top: 40px; }
        .ship-card { 
            background: rgba(20, 20, 30, 0.8); border: 1px solid #444; padding: 20px; width: 250px; text-align: center; 
            cursor: pointer; transition: all 0.3s; border-radius: 10px;
        }
        .ship-card:hover { border-color: #00f2ff; transform: translateY(-10px); background: rgba(30, 30, 50, 0.9); }
        .ship-card.selected { border-color: #00f2ff; box-shadow: 0 0 20px #00f2ff; }
        .ship-card h3 { font-family: 'Orbitron', sans-serif; margin-top: 0; }
        .stat-bar-container { width: 100%; background: #222; height: 8px; margin: 10px 0; border-radius: 4px; overflow: hidden; }
        .stat-bar { height: 100%; background: #00f2ff; width: 0%; transition: width 0.5s; }
        .stat-label { font-size:...