body {
    background-color: #111;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    font-family: 'Press Start 2P', cursive;
    color: white;
    overflow: hidden;
}

#game-container {
    position: relative;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
    border: 8px solid #333;
    border-radius: 8px;
    background-color: #000;
}

canvas {
    display: block;
    background-color: #87CEEB;
    image-rendering: pixelated;
    /* Width/Height controlled by JS now */
    max-width: 100vw;
    max-height: 100vh;
}

#ui-layer {
    position: absolute;
    top: 20px;
    left: 20px;
    pointer-events: none;
}

#score {
    font-size: 20px;
    color: #FFD700;
    /* Gold */
    text-shadow: 4px 4px 0 #000;
    -webkit-text-stroke: 1px #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;
    z-index: 10;
}

h1 {
    font-size: 48px;
    color: #FF4500;
    /* OrangeRed */
    text-shadow: 4px 4px 0 #8B0000;
    margin-bottom: 20px;
    letter-spacing: 4px;
}

p {
    font-size: 16px;
    margin: 10px 0;
    line-height: 1.5;
    color: #EEE;
}

.controls {
    margin-top: 30px;
    border: 2px solid #555;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.blink {
    animation: blinker 1s linear infinite;
    color: #00FF00;
    /* Lime */
    margin-top: 30px;
}

@keyframes blinker {
    50% {
        opacity: 0;
    }
}