:root {
    --primary-color: #8e44ad;
    --secondary-color: #9b59b6;
    --accent-color: #f1c40f;
    --text-color: #2c3e50;
    --bg-color: #ecf0f1;
}

body {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: var(--bg-color);
    font-family: 'M PLUS Rounded 1c', sans-serif;
    overflow: hidden;
}

.game-container {
    position: relative;
    text-align: center;
}

h1 {
    color: var(--primary-color);
    margin-bottom: 10px;
    text-shadow: 2px 2px 0px rgba(0,0,0,0.1);
}

canvas {
    border: 4px solid var(--text-color);
    border-radius: 8px;
    background: linear-gradient(to bottom, #87CEEB, #E0F7FA); /* Sky background */
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    display: block;
}

#ui-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Let clicks pass through to canvas if needed, but we have buttons */
}

#score {
    position: absolute;
    top: 60px; /* Below h1 roughly */
    right: 20px;
    font-size: 24px;
    color: var(--text-color);
    font-weight: bold;
}

.overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    pointer-events: auto;
    border: 4px solid var(--primary-color);
}

.hidden {
    display: none;
}

button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 20px;
    border-radius: 50px;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.1s, background-color 0.2s;
    box-shadow: 0 5px 0 var(--secondary-color);
}

button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

button:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 var(--secondary-color);
}
