body {
    margin: 0;
    overflow: hidden;
    font-family: 'Outfit', sans-serif;
    background-color: #1a1a2e;
    color: white;
}

#game-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

#ui-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    /* Let clicks pass through to game if needed, but overlays will re-enable */
}

#score-display {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 24px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(26, 26, 46, 0.85);
    backdrop-filter: blur(10px);
    pointer-events: auto;
    transition: opacity 0.3s ease;
}

.hidden {
    opacity: 0;
    pointer-events: none;
}

h1 {
    font-size: 48px;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #ff00cc, #3333ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: 2px;
}

p {
    font-size: 18px;
    margin-bottom: 30px;
    color: #e0e0e0;
}

button {
    padding: 15px 40px;
    font-size: 20px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: white;
    background: linear-gradient(45deg, #ff00cc, #3333ff);
    border: none;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 0, 204, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}

button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 0, 204, 0.6);
}

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