:root {
    --primary-color: #00ff88;
    --bg-dark: #0a0a12;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-color: #ffffff;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-color);
    overflow: hidden;
    width: 100vw;
    height: 100vh;
}

#game-container {
    position: relative;
    width: 100%;
    height: 100%;
}

canvas {
    display: block;
    cursor: crosshair;
}

#ui-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    pointer-events: none;
    display: flex;
    justify-content: space-between;
}

#score-board {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 15px 25px;
    border-radius: 15px;
    border: 1px solid var(--glass-border);
    font-size: 1.2rem;
    font-weight: 700;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

#leaderboard {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid var(--glass-border);
    width: 200px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

#leaderboard h3 {
    font-size: 1rem;
    margin-bottom: 10px;
    text-align: center;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

#leader-list {
    list-style: none;
    font-size: 0.9rem;
}

#leader-list li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    opacity: 0.8;
}

.glass-panel {
    background: rgba(20, 20, 30, 0.8);
    backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    text-align: center;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    animation: fadeIn 0.5s ease-out;
}

#start-screen, #death-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    background: rgba(0,0,0,0.7);
}

.hidden {
    display: none !important;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #00ff88, #00bdff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

p {
    margin-bottom: 30px;
    opacity: 0.7;
}

input {
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: rgba(255,255,255,0.05);
    color: white;
    font-size: 1rem;
    margin-bottom: 20px;
    outline: none;
    transition: all 0.3s;
}

input:focus {
    border-color: var(--primary-color);
    background: rgba(255,255,255,0.1);
}

button {
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(45deg, #00ff88, #00bdff);
    color: #000;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 255, 136, 0.3);
}

button:active {
    transform: translateY(0);
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
