/* Game Page Styles */
body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    overflow: hidden;
    /* Prevent scrolling on game page */
    background: #222;
    /* Fallback */
    flex-direction: column;
}

header {
    margin-bottom: 20px;
    z-index: 20;
}

#game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 10;
}

#gameCanvas {
    background: var(--bg-color, #E0F7FA);
    border: 4px solid var(--border-color, #37474F);
    border-radius: 20px;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.5);
    max-width: 95vw;
    max-height: 80vh;
}

#game-instructions {
    color: white;
    font-family: 'Fredoka One', cursive;
    margin-bottom: 10px;
    font-size: 1.5rem;
    text-shadow: 2px 2px 0 #000;
    text-align: center;
}

.back-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    font-family: 'Fredoka One', cursive;
    background: var(--card-bg, #FFFFFF);
    border: 3px solid var(--border-color, #37474F);
    color: var(--text-color, #263238);
    padding: 10px 20px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 1.2rem;
    text-decoration: none;
    box-shadow: 4px 4px 0 var(--border-color, #37474F);
    transition: all 0.1s;
    z-index: 100;
}

.back-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--border-color, #37474F);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    #gameCanvas {
        width: 100%;
        border-radius: 10px;
        max-height: 60vh;
        /* Make room for button */
    }

    .back-btn {
        padding: 5px 12px;
        font-size: 0.9rem;
        top: 10px;
        left: 10px;
    }
}

/* Mobile Jump Button */
#mobile-jump-btn {
    display: none;
    background: var(--accent-yellow, #FFF59D);
    border: 3px solid var(--border-color, #37474F);
    color: var(--text-color, #263238);
    font-size: 1.5rem;
    font-weight: 700;
    padding: 20px 0;
    width: 80%;
    /* Wide button */
    max-width: 300px;
    margin-top: 20px;
    cursor: pointer;
    touch-action: manipulation;
    z-index: 100;
    user-select: none;
}

#mobile-jump-btn:active {
    background: var(--accent-pink, #F48FB1);
    transform: translate(3px, 3px);
    /* Move down-right */
    box-shadow: 0px 0px 0px var(--border-color);
    /* Remove shadow to simulate depth loss */
}

@media (max-width: 768px) {
    #mobile-jump-btn {
        display: block;
    }
}