* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #050505;
    color: #0ff;
    font-family: 'Orbitron', sans-serif;
    overflow: hidden;
    touch-action: none;
}

#canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
}

#game-ui {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
}

#hud {
    padding: 20px;
    display: flex;
    justify-content: space-between;
}

#score-display {
    font-size: 24px;
    font-weight: 700;
    text-shadow: 0 0 10px #0ff, 0 0 20px #0ff;
}

#game-over-screen {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(10, 10, 15, 0.9);
    border: 2px solid #f0f;
    box-shadow: 0 0 20px #f0f, inset 0 0 20px #f0f;
    padding: 40px;
    text-align: center;
    border-radius: 10px;
    pointer-events: auto;
    min-width: 300px;
    backdrop-filter: blur(5px);
}

.hidden {
    display: none !important;
}

h1 {
    color: #f0f;
    text-shadow: 0 0 15px #f0f;
    margin-bottom: 20px;
}

p {
    font-size: 18px;
    margin-bottom: 20px;
}

input {
    background: transparent;
    border: 1px solid #0ff;
    color: #0ff;
    font-family: 'Orbitron', sans-serif;
    padding: 10px;
    font-size: 16px;
    width: 100%;
    margin-bottom: 20px;
    text-align: center;
    outline: none;
    text-transform: uppercase;
}

input:focus {
    box-shadow: 0 0 10px #0ff;
}

button {
    background: transparent;
    border: 2px solid #0f0;
    color: #0f0;
    font-family: 'Orbitron', sans-serif;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px #0f0;
    margin: 5px;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}

button:hover {
    background: rgba(0, 255, 0, 0.2);
    box-shadow: 0 0 20px #0f0;
}

#leaderboard {
    margin-top: 30px;
    text-align: left;
}

#leaderboard h2 {
    font-size: 18px;
    color: #0ff;
    border-bottom: 1px solid #0ff;
    padding-bottom: 5px;
    margin-bottom: 15px;
}

#highscores-list {
    list-style: none;
    max-height: 150px;
    overflow-y: auto;
}

#highscores-list li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 14px;
}

::-webkit-scrollbar {
    width: 5px;
}
::-webkit-scrollbar-track {
    background: #111;
}
::-webkit-scrollbar-thumb {
    background: #0ff;
}
