* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', monospace;
    overflow: hidden;
    background: #000;
}

.game-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(180deg, #0a0a1a 0%, #1a0a2e 100%);
}

#gameCanvas {
    display: block;
    width: 100%;
    height: 100%;
}

.ui-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    pointer-events: none;
    z-index: 10;
}

.score-display {
    background: rgba(0, 255, 255, 0.1);
    border: 2px solid rgba(0, 255, 255, 0.5);
    padding: 10px 20px;
    border-radius: 5px;
    color: #0ff;
    font-size: 24px;
    font-weight: bold;
    text-shadow: 0 0 10px #0ff;
}

.label {
    margin-right: 10px;
    opacity: 0.7;
}

.health-display {
    background: rgba(255, 0, 100, 0.1);
    border: 2px solid rgba(255, 0, 100, 0.5);
    padding: 10px 20px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.health-display .label {
    color: #f0f;
    font-size: 18px;
    font-weight: bold;
    text-shadow: 0 0 10px #f0f;
}

.health-bar {
    width: 200px;
    height: 20px;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 0, 100, 0.5);
    border-radius: 10px;
    overflow: hidden;
}

.health-fill {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #ff0066, #ff00ff);
    transition: width 0.3s ease;
    box-shadow: 0 0 20px #f0f;
}

.start-screen,
.game-over {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.9);
    z-index: 100;
    animation: fadeIn 0.5s ease;
}

.start-screen h1,
.game-over h1 {
    font-size: 72px;
    color: #0ff;
    text-shadow: 0 0 20px #0ff, 0 0 40px #0ff;
    margin-bottom: 30px;
    animation: pulse 2s infinite;
}

.start-screen p {
    font-size: 20px;
    color: #fff;
    margin: 10px 0;
    opacity: 0.8;
}

.mobile-hint {
    color: #0ff !important;
    font-size: 16px !important;
    margin-top: 20px !important;
}

.game-over p {
    font-size: 32px;
    color: #fff;
    margin: 20px 0;
}

#finalScore {
    color: #0ff;
    font-size: 48px;
    text-shadow: 0 0 20px #0ff;
}

button {
    margin-top: 30px;
    padding: 15px 40px;
    font-size: 24px;
    font-weight: bold;
    color: #0ff;
    background: rgba(0, 255, 255, 0.1);
    border: 3px solid #0ff;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 0 10px #0ff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

button:hover {
    background: rgba(0, 255, 255, 0.3);
    box-shadow: 0 0 30px #0ff;
    transform: scale(1.05);
}

.hidden {
    display: none !important;
}

#gameCanvas {
    display: block;
    width: 100%;
    height: 100%;
    touch-action: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@media (max-width: 768px) {
    .start-screen h1,
    .game-over h1 {
        font-size: 48px;
    }
    
    .start-screen p {
        font-size: 16px;
    }
    
    .score-display,
    .health-display {
        font-size: 14px;
        padding: 8px 15px;
    }
    
    .health-bar {
        width: 100px;
    }
    
    .ui-overlay {
        flex-direction: column;
        gap: 10px;
    }
    
    button {
        font-size: 20px;
        padding: 12px 30px;
    }
}