@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap');

body { 
    margin: 0; 
    overflow: hidden; 
    background-color: #000; 
    font-family: 'Inter', sans-serif; 
    user-select: none; 
    width: 100vw;
    height: 100vh; /* Fallback */
    height: 100dvh; /* Mobile fix */
}

canvas { display: block; }

.ui-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    pointer-events: auto;
    z-index: 15;
}

.overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    /* AANGEPAST: Gebruik nu de CSS variabele voor de achtergrond met alpha */
    background: var(--color-overlay-bg); 
    display: flex; justify-content: center; align-items: center;
    z-index: 30; opacity: 0; visibility: hidden; transition: 0.3s;
}
.overlay.active { opacity: 1; visibility: visible; }

.game-card {
    /* De achtergrondkleur van de kaart zelf wordt nu al afgehandeld door de .card-bg class in index.html */
    padding: 2.5rem; 
    border-radius: 1rem; 
    text-align: center;
    max-width: 450px; 
    width: 90%; 
    pointer-events: auto; 
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
    
    /* ADDED: Scroll logic for smaller screens where the card is too tall */
    max-height: 90dvh;
    overflow-y: auto;
}

.tripping canvas { filter: hue-rotate(180deg) saturate(2) contrast(1.2); animation: trip 8s infinite alternate; }

@keyframes trip { from { filter: hue-rotate(0deg); } to { filter: hue-rotate(360deg); } }

/* ADDED: Mobile Specifics for Start Menu */
@media (max-width: 768px) {
    .game-card {
        width: 100%;
        height: 100%;
        max-width: none;
        max-height: 100dvh;
        border-radius: 0;
        display: flex;
        flex-direction: column;
        justify-content: center; /* Center content vertically */
        padding: 1.5rem; /* Slightly less padding on mobile */
    }
    
    /* Ensure the BMC button doesn't overlap the start button on mobile */
    .bmc-fixed-btn {
        bottom: 10px;
        right: 10px;
        font-size: 12px;
        padding: 8px 12px;
    }
}