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

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #1a1a1a;
    font-family: 'Arial', sans-serif;
}

#gameCanvas {
    border: 4px solid #00ff00;
    background: linear-gradient(180deg, #0a0a0a 0%, #1a1a2e 100%);
    display: block;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
}
.hud {
    position: absolute;
    top: 20px;
    left: 20px;
    color: #00ff00;
    font-size: 1.3em;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(0, 255, 0, 0.8);
}

.hud div {
    margin: 10px 0;
    font-family: 'Courier New', monospace;
}

#message {
    position: fixed; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    color: #00ff00; font-size: 2.5em;
    text-align: center;
    text-shadow: 0 0 20px rgba(0, 255, 0, 0.8), 0 0 40px rgba(0, 255, 0, 0.4);
    pointer-events: none; font-weight: bold;
    background: rgba(0, 0, 0, 0.7);
    padding: 30px 50px;
    border: 3px solid #00ff00; border-radius: 10px;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.6), inset 0 0 20px rgba(0, 255, 0, 0.1);
    line-height: 1.5; font-family: 'Arial Black', sans-serif;
    letter-spacing: 2px;
    animation: pulse 1.5s infinite;
}

#message:empty {
    display: none;
}

.controls {
    position: fixed;
    top: 62%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 12px;
    pointer-events: auto;
}

.controls.hidden {
    display: none;
}

.control-btn {
    padding: 12px 20px;
    border: 2px solid #00ff00;
    background: rgba(0, 0, 0, 0.7);
    color: #00ff00;
    font-size: 1em;
    font-weight: bold;
    letter-spacing: 1px;
    cursor: pointer;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.5);
    transition: transform 0.1s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.control-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.8);
    background: rgba(0, 20, 0, 0.9);
}

.control-btn:active {
    transform: translateY(0);
    box-shadow: 0 0 12px rgba(0, 255, 0, 0.5);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 30px rgba(0, 255, 0, 0.6), inset 0 0 20px rgba(0, 255, 0, 0.1);
    }
    50% {
        box-shadow: 0 0 50px rgba(0, 255, 0, 1), inset 0 0 30px rgba(0, 255, 0, 0.2);
    }
    100% {
        box-shadow: 0 0 30px rgba(0, 255, 0, 0.6), inset 0 0 20px rgba(0, 255, 0, 0.1);
    }
}
