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: 50%;
    transform: translateX(-50%);
    font-size: clamp(16px, 5vw, 24px);
    font-weight: bold;
    text-shadow: 2px 2px 0 #000;
    z-index: 10;
}

.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;
    overflow-y: auto;
    padding: 20px 0;
    box-sizing: border-box;
}

.hidden {
    display: none;
}

h1 {
    font-size: clamp(24px, 8vw, 48px);
    color: #ff0000;
    text-shadow: 0 0 10px #fff;
    margin-bottom: 20px;
    padding: 0 10px;
}

p {
    font-size: clamp(14px, 4vw, 20px);
    margin: 10px;
    padding: 0 15px;
}

button {
    margin-top: 20px;
    padding: 12px 24px;
    font-size: clamp(16px, 5vw, 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;
}

.version {
    margin-top: 10px;
    font-size: 12px;
    opacity: 0.5;
    color: #aaa;
}

.victory-message {
    max-width: min(500px, 90vw);
    line-height: 1.6;
    margin: 15px;
}

.signature {
    font-style: italic;
    margin-top: 15px;
    font-size: clamp(14px, 4vw, 18px);
    color: #90EE90;
}
