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

body {
    background: #0a0a0f;
    font-family: 'Courier New', monospace;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    overflow: hidden;
}

.game-container {
    position: relative;
    width: 800px;
}

.hud {
    display: flex;
    justify-content: space-between;
    padding: 15px 20px;
    background: linear-gradient(90deg, #1a0a2e 0%, #0d1b2a 100%);
    border: 2px solid #00f7ff;
    border-bottom: none;
    box-shadow: 0 0 20px rgba(0, 247, 255, 0.3);
}

.score, .level, .lives {
    font-size: 18px;
    color: #00f7ff;
    text-shadow: 0 0 10px #00f7ff;
    letter-spacing: 2px;
}

#score, #dimension, #lives {
    color: #ff00ff;
    text-shadow: 0 0 10px #ff00ff;
}

canvas {
    display: block;
    background: linear-gradient(180deg, #0d1b2a 0%, #1a0a2e 50%, #0a0a0f 100%);
    border: 2px solid #00f7ff;
    box-shadow: 0 0 30px rgba(0, 247, 255, 0.4), inset 0 0 50px rgba(0, 0, 0, 0.5);
}

.controls-hint {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 10px;
    background: #0d1b2a;
    border: 2px solid #00f7ff;
    border-top: none;
}

.controls-hint span {
    color: #888;
    font-size: 12px;
    letter-spacing: 1px;
}

.modal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 15, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.modal-content {
    text-align: center;
    padding: 40px 60px;
    background: linear-gradient(135deg, #1a0a2e 0%, #0d1b2a 100%);
    border: 3px solid #ff00ff;
    box-shadow: 0 0 40px rgba(255, 0, 255, 0.5), inset 0 0 30px rgba(0, 247, 255, 0.1);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 40px rgba(255, 0, 255, 0.5); }
    50% { box-shadow: 0 0 60px rgba(255, 0, 255, 0.8); }
}

.modal-content h1 {
    font-size: 42px;
    color: #00f7ff;
    text-shadow: 0 0 20px #00f7ff, 0 0 40px #00f7ff;
    margin-bottom: 20px;
    letter-spacing: 4px;
    animation: flicker 3s infinite;
}

@keyframes flicker {
    0%, 100% { opacity: 1; }
    92% { opacity: 1; }
    93% { opacity: 0.8; }
    94% { opacity: 1; }
    96% { opacity: 0.9; }
    97% { opacity: 1; }
}

.modal-content h2 {
    font-size: 36px;
    color: #ff3366;
    text-shadow: 0 0 20px #ff3366;
    margin-bottom: 20px;
}

.modal-content p {
    color: #aaa;
    margin: 10px 0;
    font-size: 16px;
}

.modal-content button {
    margin-top: 20px;
    padding: 15px 40px;
    font-size: 18px;
    font-family: 'Courier New', monospace;
    background: transparent;
    color: #00f7ff;
    border: 2px solid #00f7ff;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.modal-content button:hover {
    background: #00f7ff;
    color: #0a0a0f;
    box-shadow: 0 0 30px #00f7ff;
}

#game-over {
    display: none;
}

#start-screen {
    display: flex;
}
