
/* --- Mini Game Styles --- */
#game-container {
    width: 100%;
    max-width: 500px;
    height: 200px;
    border: 2px solid #ccc;
    margin: 20px auto;
    position: relative;
    overflow: hidden;
    background-color: #f0f8ff;
    cursor: pointer;
}

#player {
    width: 50px;
    height: 50px;
    background-image: url('../images/result_game_player.png');
    background-size: contain;
    background-repeat: no-repeat;
    position: absolute;
    bottom: 0;
    left: 20px;
    transition: transform 0.1s;
}

#player.jump {
    animation: jump 0.6s ease-out;
}

@keyframes jump {
    0% { transform: translateY(0); }
    50% { transform: translateY(-100px); }
    100% { transform: translateY(0); }
}

.obstacle {
    height: 50px;
    background-color: #666;
    position: absolute;
    bottom: 0;
    right: -100px; /* Start off-screen */
    animation-name: moveLeft;
    animation-timing-function: linear;
}

@keyframes moveLeft {
    from { right: -100px; }
    to { right: 100%; }
}

#score {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

#completion-container {
    text-align: center;
}

#game-over-message {
    font-size: 2em;
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-weight: bold;
}

.game {
    margin: 0;
    font-family: sans-serif;
    text-align: center;


    canvas {
        width: 100%;
        background: linear-gradient(#87ceeb, #e0f6ff);
        display: block;
        margin: 0 auto;
        touch-action: manipulation;
    }

    canvas.no-bg {
        background: none;
    }

    .ui {
        margin-top: 8px;
        font-size: 18px;
    }

    .gameover {
        color: #ff5555;
    }
}
