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

body {
    background: linear-gradient(135deg, #1a0a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: 'Courier New', monospace;
    overflow: hidden;
    position: relative;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(rgba(255, 0, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 0, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

.container {
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

h1 {
    font-size: 3rem;
    background: linear-gradient(90deg, #ff00ff, #00ffff, #ff00ff);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease infinite;
    text-shadow: 0 0 30px rgba(255, 0, 255, 0.5);
    letter-spacing: 4px;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

#gameCanvas {
    border: 3px solid #ff00ff;
    box-shadow: 
        0 0 20px rgba(255, 0, 255, 0.5),
        0 0 40px rgba(0, 255, 255, 0.3),
        inset 0 0 20px rgba(255, 0, 255, 0.2);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.7);
}

.game-info {
    display: flex;
    gap: 40px;
    font-size: 1.5rem;
    color: #00ffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-label {
    color: #ff00ff;
    font-weight: bold;
}

#startScreen, #gameOverScreen {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid #00ffff;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    z-index: 100;
    box-shadow: 
        0 0 30px rgba(0, 255, 255, 0.5),
        0 0 60px rgba(255, 0, 255, 0.3);
}

#gameOverScreen {
    display: none;
}

h2 {
    font-size: 2.5rem;
    color: #ff00ff;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(255, 0, 255, 0.8);
}

#startButton, #restartButton {
    background: linear-gradient(45deg, #ff00ff, #00ffff);
    border: none;
    padding: 15px 40px;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
    border-radius: 30px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.5);
    margin-top: 20px;
}

#startButton:hover, #restartButton:hover {
    transform: scale(1.1);
    box-shadow: 0 0 40px rgba(0, 255, 255, 0.8);
}

.controls {
    margin-top: 30px;
    color: #00ffff;
    font-size: 1rem;
}

.controls p {
    margin: 5px 0;
}

.mode-selector {
    margin: 20px 0;
}

.mode-btn {
    background: transparent;
    border: 2px solid #ff00ff;
    padding: 10px 20px;
    margin: 0 10px;
    color: #00ffff;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.mode-btn:hover, .mode-btn.active {
    background: linear-gradient(45deg, #ff00ff, #00ffff);
    color: white;
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.5);
}
