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

body {
    touch-action: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    user-select: none;
    overscroll-behavior: none;
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #1a0033, #0d001a);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
    color: white;
}

.game-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 600px;
    background: rgba(0, 0, 0, 0.5);
    border: 3px solid #ff00ff;
    box-shadow: 0 0 30px rgba(255, 0, 255, 0.5), inset 0 0 30px rgba(0, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
}

#gameCanvas {
    display: block;
    width: 100%;
    height: 100%;
    background: #000;
}

.ui-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    pointer-events: none;
    z-index: 10;
}

.score-display {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.score-label {
    font-size: 14px;
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff;
    letter-spacing: 2px;
}

.score-value {
    font-size: 36px;
    font-weight: bold;
    color: #ff00ff;
    text-shadow: 0 0 20px #ff00ff;
}

.high-score {
    font-size: 16px;
    color: #00ff00;
    text-shadow: 0 0 10px #00ff00;
}

.start-screen,
.game-over-screen {
    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.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.game-title {
    font-size: 72px;
    font-weight: bold;
    background: linear-gradient(45deg, #ff00ff, #00ffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(255, 0, 255, 0.8);
    margin-bottom: 30px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.game-over-title {
    font-size: 48px;
    color: #ff0055;
    text-shadow: 0 0 30px #ff0055;
    margin-bottom: 20px;
}

.instructions {
    font-size: 18px;
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff;
    margin: 10px 0;
}

.final-score,
.best-score {
    font-size: 24px;
    margin: 10px 0;
    color: #fff;
    text-shadow: 0 0 10px #fff;
}

.start-button,
.restart-button {
    margin-top: 30px;
    padding: 15px 40px;
    font-size: 24px;
    font-weight: bold;
    color: #000;
    background: linear-gradient(45deg, #ff00ff, #00ffff);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.start-button:hover,
.restart-button:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(255, 0, 255, 0.8);
}

.start-button:active,
.restart-button:active {
    transform: scale(0.95);
}

.hidden {
    display: none !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .game-container {
        height: 100vh;
        max-width: 100%;
        border-radius: 0;
    }

    .game-title {
        font-size: 48px;
    }

    .score-value {
        font-size: 28px;
    }
}
