:root {
    --fg-green: #2F8F41;
    --fg-orange: #FFC530;
}

.pf--fast-games {
    margin: 0 0 10px;
}

.fg-games-box {
    display: grid;
    grid-gap: 12px;
    grid-template-columns: minmax(290px, 558px);
    justify-self: center;
}

.fg-game-item {
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 400px;
    justify-content: flex-end;
    max-width: 558px;
    padding: 10px;
    position: relative;
    width: 100%;
}

.fg-top-menu .fg-game-info {
    padding: 0 0 0 10px;
}

.fg-game-item > div {
    z-index: 1;
}

.fg-game-title {
    font-size: 28px;
    font-weight: 700;
}

.fg-game-rules {
    color: var(--fg-orange);
    cursor: pointer;
    text-decoration-line: underline;
}

.fg-game-img {
    border-radius: 12px;
    bottom: 0;
    left: 0;
    object-fit: cover;
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
}

.fg-game-bk-box {
    backdrop-filter: blur(8.5px);
    background: rgba(29, 33, 89, .3);
    border-radius: 6px;
    display: grid;
    grid-gap: 5px 15px;
    grid-template-columns: auto 1fr;
    min-height: 103px;
    padding: 6px 14px 6px 6px;
}

.fg-game-bk-top {
    align-items: center;
    display: grid;
    gap: 15px;
    grid-column: 1 / 3;
    grid-template-columns: auto 1fr;
}

.fg-game-bk-top img {
    height: 42px;
    object-fit: contain;
    width: 110px;
}

.fg-game-bk-rating {
    display: flex;
}

.fg-game-bk-link {
    align-items: center;
    background: var(--fg-green);
    border-radius: 3px;
    color: #fff;
    display: flex;
    height: 36px;
    justify-content: center;
    margin: 4px 0;
    text-decoration: none;
    width: 110px;
}

.fg-top-menu .fg-game-bk-link {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    justify-self: flex-end;
    width: 110px;
}

.fg-game-bk-info {
    font-size: 14px;
}

.fg-game-bk-info span {
    color: var(--fg-orange);
    display: inline-flex;
}

.fg-games-box.fg-top-menu {
    grid-template-columns: 1fr;
}

.fg-top-menu .fg-game-item {
    height: 245px;
    padding: 0;
}

.fg-top-menu .fg-game-bk-box {
    backdrop-filter: blur(8.5px);
    background: #284154;
    border-radius: 0 0 6px 6px;
    grid-template-columns: auto 1fr;
    padding: 6px 12px;
}

.modal-bk-rating:before {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='15' fill='none'%3E%3Cpath fill='%23000' d='m8 .348 2.144 5.05 5.464.478-4.139 3.6 1.233 5.344L8 11.996 3.298 14.82 4.53 9.476l-4.14-3.6 5.465-.479L8 .348Z'/%3E%3C/svg%3E") center no-repeat;
}

.popup__body.modal_fast_games {
    background: #1D262D;
    box-shadow: 0 4px 15px 0 #000;
    color: #fff;
    font-weight: 700;
    line-height: 24px;
    padding: 32px 0 0;
}

.modal_fast_games .popup__heading {
    border: 0;
    color: #fff;
    font-size: 46px;
    letter-spacing: -0.345px;
    line-height: 100%;
    padding: 0;
}

.modal_fast_games .popup__content {
    display: grid;
    grid-gap: 16px;
}

.modal-fast-img {
    margin: 0 auto;
}

.modal-fast-text {
    padding: 0 16px;
    text-align: left;
}

.modal-fast-text ul {
    counter-reset: num;
    list-style-type: none;
    margin: 24px 0 24px 73px;
    padding: 0;
}

.modal-fast-text ul li {
    color: rgba(255, 255, 255, .6);
    font-weight: 400;
    margin: 0 0 24px 0;
    position: relative;
}

.modal-fast-text ul li:before {
    align-items: center;
    border: 1px solid #2E6939;
    border-radius: 6px;
    color: #56C86B;
    content: counter(num);
    counter-increment: num;
    display: flex;
    font-size: 21px;
    font-weight: 400;
    height: 48px;
    justify-content: center;
    left: -74px;
    position: absolute;
    top: 0;
    width: 46px;
}

.modal-bk-box {
    background: #2A2B3C;
    display: grid;
    grid-gap: 12px 16px;
    grid-template-columns: 172px auto 112px;
    position: relative;
}

.modal-bk-logo {
    background: #38425B;
    grid-row: 1 / 3;
    height: 95px;
}

.modal-bk-logo img {
    object-fit: contain;
}

.modal-bk-name {
    color: #fff;
    font-size: 18px;
    grid-column: 2 / 4;
    justify-self: flex-start;
    line-height: 1;
    margin: 23px 0 0;
    text-decoration-line: underline;
}

.modal-bk-rating {
    align-items: center;
    background: var(--fg-orange);
    border-radius: 5px;
    color: #000;
    display: flex;
    grid-column: 2 / 4;
    grid-row: 2 / 3;
    height: 22px;
    justify-self: flex-start;
    line-height: 1;
    padding: 2px 6px 2px 4px;
}

.modal-bk-rating:before {
    content: "";
    height: 16px;
    margin-right: 4px;
    width: 16px;
}

.modal-bk-text {
    color: var(--fg-orange);
    grid-column: 1 / 3;
    grid-row: 3 / 4;
    justify-self: flex-start;
    line-height: 18px;
    margin: 12px;
}

.modal-bk-btn {
    align-items: center;
    align-self: center;
    background: var(--fg-green);
    border-radius: 3px;
    color: #fff;
    display: flex;
    font-size: 14px;
    grid-column: 3 / 4;
    grid-row: 3 / 4;
    height: 36px;
    justify-content: center;
    margin: 0 12px 12px 0;
    text-decoration: none;
    text-transform: uppercase;
}

.modal-bk-promo.copy-code,
.modal-bk-promo.copy-code2 {
    border-bottom-color: var(--fg-orange);
    display: inline-flex;
}

@media screen and (min-width: 640px) {
    .modal-bk-box,
    .modal-bk-logo {
        border-radius: 5px 0 0 5px;
    }

    .modal-bk-box {
        margin: 0 16px 16px;
    }

    .modal-bk-rating {
        grid-column: auto;
        grid-row: auto;
        height: 20px;
        left: 115px;
        position: absolute;
        top: 5px;
    }

    .modal-bk-name {
        grid-column: 2 / 3;
        margin-top: 12px;
    }

    .modal-bk-text {
        grid-column: 2 / 3;
        grid-row: 2 / 3;
        margin: 0;
    }

    .modal-bk-btn {
        grid-row: 1 / 3;
        margin-bottom: 0;
    }
}

@media screen and (min-width: 768px) {
    .fg-games-box {
        grid-gap: 24px;
        grid-template-columns: minmax(290px, 558px) minmax(290px, 558px);
    }

    .fg-game-item {
        padding: 24px;
    }

    .fg-game-item:last-child:nth-child(2n - 1) {
        grid-column: 1 / 3;
        justify-self: center;
    }
}

@media screen and (min-width: 1024px) {
    .fg-game-item {
        height: 300px;
    }

    .fg-game-bk-box {
        align-items: center;
        grid-gap: 0 16px;
        grid-template-columns: 156px auto 100px;
        min-height: 85px;
    }

    .fg-game-bk-top {
        gap: 0;
        grid-column: 1 / 2;
        grid-row: 1 / 3;
        grid-template-columns: auto;
        padding: 6px 12px;
    }

    .fg-game-bk-link {
        grid-column: 3 / 4;
        grid-row: 1 / 3;
        transition: opacity .2s;
        width: 100px;
    }

    .fg-game-bk-info {
        display: grid;
        font-size: 16px;
        grid-row: 1 / 3;
    }

    .modal-bk-btn:hover {
        opacity: .8;
    }

    .fg-top-menu .fg-game-bk-top {
        gap: 15px;
        grid-column: 1 / 3;
        grid-row: 1 / 2;
        grid-template-columns: auto 1fr;
        padding: 0;
    }

    .fg-top-menu .fg-game-bk-info {
        display: grid;
        font-size: 14px;
        grid-row: 2 / 3;
    }
}
