:root {
    --bg-color: rgb(254, 240, 138);
    --text-color: rgb(17, 24, 39);
    --font-family: 'VT323', monospace;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    touch-action: none; /* Prevent default touch actions like scrolling */
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-family);
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

#game-container {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 600px;
    max-height: 800px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#score-board {
    display: flex;
    justify-content: space-between;
    font-size: 2rem;
    width: 100%;
    padding: 0 20px;
    margin-bottom: 5px; /* Small gap between score and canvas */
    text-shadow: 2px 2px 0px rgba(0,0,0,0.1);
    z-index: 20;
}

#canvas-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column; /* Stack score board above canvas */
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* ui-layer removed, message-overlay styles remain but parent changed */

#message-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    background-color: rgba(254, 240, 138, 0.9);
    padding: 20px;
    border: 4px solid var(--text-color);
    pointer-events: auto;
}

#message-overlay.hidden {
    display: none;
}

#message-title {
    font-size: 4rem;
    margin-bottom: 10px;
}

#message-subtitle {
    font-size: 2rem;
    animation: blink 1s infinite;
}

.mobile-hint {
    display: none;
    margin-top: 10px;
    font-size: 1.5rem;
}

@media (hover: none) and (pointer: coarse) {
    .mobile-hint {
        display: block;
    }
    #message-subtitle {
        display: none; /* Hide "Press Space" on mobile */
    }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

canvas {
    background-color: var(--bg-color);
    /* border: 4px solid var(--text-color); Removed as per user request */
    image-rendering: pixelated; /* Keep pixel art crisp */
    max-width: 100%;
    max-height: 100%;
}
