.gamebadkoobeh {
    direction: rtl;
}

    .gamebadkoobeh button {
        padding: 12px 24px;
        font-size: 1rem;
        background-color: #28a745;
        color: #555555;
        border: none;
        border-radius: 8px;
        cursor: pointer;
    }

    /* 🎯 Modal Styles */
    .gamebadkoobeh #game-modal {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        background-color: rgba(0,0,0,0.6);
        display: none;
        justify-content: center;
        align-items: center;
        z-index: 9999;
    }

    .gamebadkoobeh .modal-game-content {
        background: white;
        overflow-y: auto;
        padding: 20px;
        border-radius: 12px;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
        position: relative;
    }

    .gamebadkoobeh .close-btn {
        position: absolute;
        top: 0px;
        right: 0px;
        font-size: 20px;
        background: transparent;
        border: none;
        color: #ff0000;
        cursor: pointer;
        background: #000000;
        color: #004dff;
        border-radius: 0px 11px;
    }

    .gamebadkoobeh .container {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 30px;
        max-width: 1000px;
        width: 100%;
        margin: auto;
    }

    .gamebadkoobeh #puzzle {
        width: 90vw;
        max-width: 400px;
        aspect-ratio: 1 / 1;
        display: flex;
        flex-wrap: wrap;
        border: 2px solid #ccc;
        background: #fff;
    }

    .gamebadkoobeh .piece {
        width: 25%;
        height: 25%;
        background-image: var(--game-image);
        background-size: 400% 400%;
        border: 1px solid #e7e7e7;
        box-sizing: border-box;
        cursor: grab;
        filter: blur(4px) brightness(0.8);
        transition: filter 0.3s ease;
    }

    .gamebadkoobeh .colored {
        filter: none !important;
    }

    .gamebadkoobeh #step-box {
        width: 90vw;
        max-width: 400px;
        background: #fff;
        padding: 20px;
        border-radius: 10px;
        text-align: right;
        padding-top: 45px;
    }

    .gamebadkoobeh .option {
        display: block;
        background: #f8f8f8;
        padding: 10px;
        margin: 10px 0;
        border-radius: 4px;
        cursor: pointer;
        font-size: 1rem;
        text-align: right;
        width: 100%;
        padding: 15px;
    }

}

.gamebadkoobeh .option:hover {
    background: #dfffdc;
}

.gamebadkoobeh .option:disabled {
    opacity: 0.7;
    pointer-events: none;
}

.gamebadkoobeh #result {
    padding: 20px;
    border-radius: 10px;
    line-height: 30px;
}

.gamebadkoobeh #start-screen {
    text-align: center;
    margin-top: 100px;
}

.gamebadkoobeh h2 {
    margin-top: 0;
}

.gamebadkoobeh .shoplink {
    text-decoration: none;
        color: blue;
}

#open-game {
    position: absolute;
    color: #ffffff;
    left: 7px;
    bottom: 20%;
    z-index: 9;
    transform: rotate(270deg);
    /* background: #ffffffa8; */
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #ffffff;
    font-size: 16px;
        padding-bottom: 10px;
}
#open-game:hover {
background:#0266b1;
border-color:#0266b1;
}
