body {
    background-color: #000; 
    color: #0F0; 
    font-family: 'Press Start 2P', monospace; 
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    overflow: hidden; 
    flex-direction: column; 
}

.game-container {
    border: 2px solid #0F0; 
    box-shadow: 0 0 10px #0F0; 
    display: flex;
    flex-direction: column;
    width: 90vw; 
    max-width: 800px; 
    height: 90vh;
    max-height: 600px; 
    background-color: #000;
    position: relative; 
    border-radius: 8px; 
    overflow: hidden; 
}

canvas {
    display: block;
    background-color: #000; 
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(0, 255, 0, 0.08) 1px, transparent 1px);
    background-size: 100% 2px;
}

.ui-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.9); 
    padding: 20px;
    box-sizing: border-box;
    border-radius: 8px;
}

h1 {
    font-size: 2em; 
    margin-bottom: 20px;
    color: #0F0;
    text-shadow: 0 0 5px #0F0;
}

p {
    font-size: 1em;
    margin-bottom: 10px;
}

.game-button {
    background-color: #000;
    color: #0F0;
    border: 2px solid #0F0;
    padding: 10px 20px;
    font-family: 'Press Start 2P', monospace;
    font-size: 1em;
    cursor: pointer;
    text-transform: uppercase;
    margin-top: 20px;
    border-radius: 5px;
    box-shadow: 0 0 5px #0F0;
    transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.game-button:hover {
    background-color: #0F0;
    color: #000;
    box-shadow: 0 0 15px #0F0;
}

.game-hud {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    font-size: 0.8em;
    color: #0F0;
    z-index: 10; 
}

.game-hud div {
    padding: 5px 10px;
    border: 1px dashed #0F0;
    border-radius: 3px;
}

.powerup-indicator {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 0.8em;
    color: #0F0;
    z-index: 10;
    padding: 5px 10px;
    border: 1px dashed #0F0;
    border-radius: 3px;
    display: none; 
}

@media (max-width: 600px) {
    h1 {
        font-size: 1.5em;
    }
    p {
        font-size: 0.8em;
    }
    .game-button {
        font-size: 0.9em;
        padding: 8px 15px;
    }
    .game-hud {
        font-size: 0.7em;
    }
    .powerup-indicator {
        font-size: 0.7em;
        bottom: 5px;
        right: 5px;
    }
}
