body {
    margin: 0;
    padding: 0;
    background-color: #0f2a1d; /* Dark Christmas Green */
    overflow: hidden;
    font-family: 'Courier New', Courier, monospace;
    color: white;
    touch-action: none; /* Prevent scrolling on mobile */
}

#game-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

canvas {
    background-color: #000;
    box-shadow: 0 0 20px #ff0000;
    border: 2px solid #0f0;
}

#ui-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

#score-board {
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 24px;
    font-weight: bold;
    text-shadow: 2px 2px 0 #000;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    pointer-events: auto;
}

.hidden {
    display: none;
}

h1 {
    font-size: 48px;
    color: #ff0000;
    text-shadow: 0 0 10px #fff;
    margin-bottom: 20px;
}

p {
    font-size: 20px;
    margin: 10px;
}

button {
    margin-top: 30px;
    padding: 15px 30px;
    font-size: 24px;
    background: #00ff00;
    color: #000;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-weight: bold;
    border-radius: 5px;
    animation: pulse 1.5s infinite;
}

button:hover {
    background: #fff;
}

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

.controls-hint {
    margin-top: 20px;
    font-size: 14px;
    opacity: 0.7;
}
