* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background-color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Consolas', 'Courier New', sans-serif;
    touch-action: none;
    /* Prevent zoom/scroll on mobile */
}

#game-container {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 480px;
    /* Mobile-ish aspect ratio on desktop */
    background-color: #70c5ce;
    /* Sky color */
    overflow: hidden;
}

canvas {
    display: block;
    width: 100%;
    height: 100%;
    image-rendering: pixelated;
    /* Ensure crisp pixel art */
}

#ui-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    /* Let clicks pass through to canvas/container */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#score-display {
    position: absolute;
    top: 10%;
    font-size: 3rem;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 0 #000;
    z-index: 10;
}

.screen {
    text-align: center;
    color: white;
    text-shadow: 2px 2px 0 #000;
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 10px;
    pointer-events: auto;
    /* Enable clicks on buttons */
}

.hidden {
    display: none !important;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

button {
    margin-top: 20px;
    padding: 10px 20px;
    font-size: 1.2rem;
    cursor: pointer;
    background: #f1f8b8;
    border: 2px solid #000;
    border-radius: 5px;
    font-family: inherit;
    font-weight: bold;
}