* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Rajdhani', 'Orbitron', sans-serif;
}

body {
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #05080a;
    color: #f2f2f2;
    overflow: hidden;
    user-select: none;
}

.wrapper {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

canvas {
    background: #0a0f12;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
}

/* ============ START SCREEN ============ */
.start-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 8, 10, 0.88);
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 20px;
}

.neon-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 72px;
    color: #fff;
    text-shadow: 0 0 10px #00f0ff, 0 0 20px #00f0ff, 0 0 40px #00f0ff, 0 0 80px #00f0ff, 0 0 120px rgba(0, 240, 255, 0.3);
    margin-bottom: 8px;
    text-align: center;
    letter-spacing: 6px;
    font-weight: 900;
}

.subtitle {
    font-family: 'Rajdhani', sans-serif;
    font-size: 20px;
    color: rgba(0, 240, 255, 0.5);
    margin-bottom: 30px;
    letter-spacing: 4px;
    font-weight: 300;
    text-transform: uppercase;
}

.player-input-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    margin-bottom: 30px;
    width: 320px;
}

.player-input {
    width: 100%;
    padding: 14px 20px;
    background: rgba(15, 22, 26, 0.9);
    border: 2px solid rgba(0, 240, 255, 0.4);
    border-radius: 6px;
    color: #fff;
    font-size: 18px;
    text-align: center;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 500;
    outline: none;
    transition: all 0.3s ease;
}

.player-input:focus {
    border-color: #00f0ff;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3), inset 0 0 20px rgba(0, 240, 255, 0.05);
}

.player-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.start-btn {
    padding: 14px 50px;
    background: transparent;
    border: 2px solid #ff8c00;
    border-radius: 6px;
    color: #ff8c00;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 3px;
    text-shadow: 0 0 10px rgba(255, 140, 0, 0.5);
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.start-btn:hover {
    background: rgba(255, 140, 0, 0.15);
    box-shadow: 0 0 30px rgba(255, 140, 0, 0.3), inset 0 0 30px rgba(255, 140, 0, 0.05);
    transform: scale(1.02);
}

.start-btn:active {
    transform: scale(0.98);
}

/* ============ GLASS PANELS ============ */
.menu-panels {
    display: flex;
    flex-direction: row;
    gap: 20px;
    width: auto;
    max-width: 700px;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(0, 240, 255, 0.15);
    border-radius: 10px;
    padding: 18px 24px;
    min-width: 200px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    color: #fff;
}

.glass-panel h3 {
    margin-bottom: 14px;
    text-align: center;
    color: #00f0ff;
    border-bottom: 1px solid rgba(0, 240, 255, 0.2);
    padding-bottom: 10px;
    font-family: 'Orbitron', sans-serif;
    font-size: 14px;
    letter-spacing: 2px;
}

.settings-panel label {
    display: block;
    text-align: center;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 8px;
}

#speedControl {
    width: 100%;
    accent-color: #00f0ff;
}

#leaderboardList {
    list-style: none;
    padding: 0;
}

#leaderboardList li {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
    font-size: 16px;
    font-weight: 500;
    font-family: 'Rajdhani', monospace;
}

/* ============ GAME UI ============ */
#gameUI {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    pointer-events: none;
}

.score {
    font-family: 'Orbitron', monospace;
    font-size: 22px;
    color: rgba(0, 240, 255, 0.9);
    text-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
    letter-spacing: 2px;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 24px;
    border-radius: 6px;
    border: 1px solid rgba(0, 240, 255, 0.2);
}

/* ============ UTILITY ============ */
.hidden {
    display: none !important;
}
