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

body {
    font-family: system-ui, sans-serif;
    background: linear-gradient(135deg, #0a0a1a 0%, #1a0a2e 50%, #0a1a2e 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    color: white;
}

#game-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

#game-canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* HUD */
#hud {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    gap: 30px;
    z-index: 10;
}

.score-container,
.high-score-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.score-label,
.high-score-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #8b9bb4;
    margin-bottom: 2px;
}

.score-value,
.high-score-value {
    font-size: 28px;
    font-weight: bold;
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff, 0 0 30px #00ffff;
}

/* Screens */
.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(10, 10, 26, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
    transition: opacity 0.3s ease;
}

.screen:not(.active) {
    opacity: 0;
    pointer-events: none;
}

.screen.active {
    opacity: 1;
    pointer-events: all;
}

.game-title {
    font-size: 48px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 8px;
    margin-bottom: 10px;
    animation: titleGlow 2s ease-in-out infinite alternate;
}

.game-title.game-over {
    color: #ff0066;
    text-shadow: 0 0 10px #ff0066, 0 0 20px #ff0066, 0 0 30px #ff0066;
    animation: none;
}

.game-title.paused {
    color: #ffff00;
    text-shadow: 0 0 10px #ffff00, 0 0 20px #ffff00, 0 0 30px #ffff00;
}

.game-subtitle {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: #8b9bb4;
    margin-bottom: 40px;
}

@keyframes titleGlow {
    from {
        text-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff, 0 0 30px #00ffff;
    }
    to {
        text-shadow: 0 0 15px #00ffff, 0 0 30px #00ffff, 0 0 45px #00ffff, 0 0 60px #00ffff;
    }
}

.instructions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.instruction-item {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #8b9bb4;
    font-size: 14px;
}

.key {
    display: inline-block;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    font-weight: bold;
    color: #00ffff;
    text-shadow: 0 0 5px #00ffff;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
}

.game-btn {
    padding: 15px 50px;
    font-size: 20px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 4px;
    background: transparent;
    border: 2px solid #00ffff;
    color: #00ffff;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.game-btn:hover {
    background: #00ffff;
    color: #0a0a1a;
    box-shadow: 0 0 40px rgba(0, 255, 255, 0.6);
    transform: scale(1.05);
}

.game-btn:active {
    transform: scale(0.95);
}

.final-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

.final-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #8b9bb4;
    margin-bottom: 5px;
}

.final-value {
    font-size: 48px;
    font-weight: bold;
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff, 0 0 20px #00ffff, 0 0 30px #00ffff;
}

.game-footer {
    position: absolute;
    bottom: 20px;
    font-size: 12px;
    color: #5a6a7a;
    letter-spacing: 1px;
}

/* Responsive */
@media (max-width: 768px) {
    .game-title {
        font-size: 32px;
        letter-spacing: 4px;
    }

    .game-subtitle {
        font-size: 12px;
        letter-spacing: 2px;
    }

    .score-value,
    .high-score-value {
        font-size: 20px;
    }

    .key {
        padding: 6px 10px;
        font-size: 12px;
    }

    .instruction-item {
        font-size: 12px;
    }

    .game-btn {
        padding: 12px 40px;
        font-size: 16px;
    }
}

/* Prevent text selection */
* {
    user-select: none;
    -webkit-user-select: none;
}

/* Prevent context menu */
body {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}
