body {
    background-color: #222;
    color: white;
    font-family: 'Courier New', Courier, monospace;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

#game-container {
    position: relative;
    border: 4px solid #4a4;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

canvas {
    background-color: #5d9e5d;
    /* Grass green */
    display: block;
}

#ui-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    /* Let clicks pass through to canvas */
}

.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    pointer-events: auto;
    /* Re-enable clicks for buttons */
    z-index: 100;
}

.hidden {
    display: none !important;
}

#sun-counter {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 20px;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 2px 2px 0 #000;
}

#controls {
    position: absolute;
    top: 10px;
    right: 10px;
    pointer-events: auto;
}

button {
    background: #8b4513;
    color: white;
    border: 2px solid #5d3a1a;
    padding: 10px 20px;
    font-family: inherit;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.1s;
}

button:hover {
    transform: scale(1.05);
    background: #a0522d;
}

button:active {
    transform: scale(0.95);
}