:root { --bf-footer-h: clamp(40px, 5vh, 42px); }
.card-error-bf {
    font-size: clamp(0.75rem, 1.5vw, 0.9rem);
    font-weight: 600;
    color: #ff6b6b;
    padding-top: 0.5vh;
    margin: auto;
    text-align: center;
    display: none;
}

.card-footer.hidden {
    display: none;
}

.card-error-bf.active {
    display: flex !important;
    justify-content: center;
    align-items: center;
    padding-top: 0.5vh;
    margin: auto;
    z-index: 9999 !important;
    position: relative !important;
    min-height: var(--bf-footer-h);
}

.card {
    font-family: var(--main-font);
    position: relative;
    border-radius: 20px;
    padding: 16px;
    box-sizing: border-box;
    overflow: hidden;
    z-index: 1;
}
.card::after {
    content: "";
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: -8px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(90deg, rgba(147, 154, 187, 0.00) 0%, #939ABB 47.5%, rgba(147, 154, 187, 0.00) 97.81%);
    box-shadow: 0 6px 12px rgba(0,0,0,0.35);
    z-index: -1;
}

.card--ultra::after {
    content: "";
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: -8px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(
            90deg,
            rgba(119, 139, 253, 0) 0%,
            rgb(255, 169, 3) 47.5%,
            rgba(119, 139, 253, 0) 97.81%
    );
    box-shadow: 0 6px 12px rgba(119, 139, 253, 0.5);
    z-index: -1;
}

.card-image img {
    position: relative;
    width: 100%;
    overflow: visible;
    image-rendering: smooth;
    /*max-height: 100%;*/
    /*max-width: 100%;*/
    object-fit: contain;
}

.card-icon:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

.card-title {
    /*font-size: var(--card-title);*/
    background: linear-gradient(90deg, #FFCC00 0%, #FF9007 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    margin: 0 0 4px 0;
    text-transform: uppercase;
    z-index: 1;
}

.card-description {
    /*font-size: var(--card-description);*/
    color: white;
    margin: 0;
    font-weight: 500;
}

.card-footer {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
}
.card-price {
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 700;
    color: #ffffff;
}

.card-check {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: opacity 0.3s ease, transform 0.2s ease;
}

.card-check.disabled {
    opacity: 0.4;
    pointer-events: none;
    filter: grayscale(100%);
    cursor: not-allowed;
    transform: none !important;
    transition: all 0.2s ease;
}

.card-check:hover:not(.disabled) {
    transform: scale(1.05);
    filter: brightness(1.1);
    cursor: pointer;
}

.scroll-arrow,
.pagination-bf {
    display: none;
}

/* region LANDSCAPE TEMPLATE */
/*@media (orientation: landscape) {*/
/*    html, body {*/
/*        overflow-y: hidden;*/
/*        height: 100vh;*/
/*        max-height: 100vh;*/
/*    }*/
/*    .scroll-arrow,*/
/*    .pagination-bf {*/
/*        display: flex;*/
/*    }*/

/*    .scroll-container {*/
/*        position: relative;*/
/*        display: flex;*/
/*        align-items: center;*/
/*        justify-content: center;*/
/*        max-width: 95vw;*/
/*        padding: 0;*/
/*        max-height: calc(100vh - var(--bet-wrapper-height));*/
/*        overflow-y: auto;*/
/*    }*/

/*    .scroll {*/
/*        overflow-x: auto;*/
/*        scroll-snap-type: x mandatory;*/
/*        scroll-behavior: smooth;*/
/*        display: flex;*/
/*        gap: clamp(1vw, 2vh, 2vw);*/
/*        margin-inline: clamp(32px, 4vw, 48px);*/
/*        padding: 0;*/
/*        max-width: min(96vw, 1000px);*/
/*        scrollbar-width: none;*/
/*    }*/

/*    #block-wrapper {*/
/*        display: flex;*/
/*        align-items: stretch;*/

/*        max-height: 100%;*/
/*        flex-direction: row;*/
/*        gap: clamp(1vw, 2vh, 2vw);*/
/*        justify-content: center;*/
/*        overflow-x: auto;*/
/*        box-sizing: border-box;*/
/*        margin: 0 auto;*/
/*        padding: clamp(1vh, 2vh, 2.5vh) 0;*/
/*        scrollbar-width: none;*/
/*        !*scroll-padding-inline: clamp(16px, 4vw, 32px);*!*/
/*        scroll-padding-inline: clamp(24px, 5vw, 40px);*/

/*        overflow-y: hidden; !* 🚫 Вимикає вертикальний скрол *!*/
/*    }*/

/*    .card {*/
/*        flex: 0 0 auto;*/
/*        !*width: calc(*!*/
/*        !*        (100% - 2 * clamp(1vw, 2vh, 2vw) - clamp(0.5vw, 1vw, 1.5vw)) / 3*!*/
/*        !*);*!*/
/*        width: calc((100% - 2 * clamp(1vw, 2vh, 2vw)) / 3);  !* рівно 3 картки *!*/
/*        max-height: calc(100vh - clamp(22vh, 27vh, 33vh)); !* залишає місце під .bet-control-wrapper *!*/
/*        margin-bottom: clamp(0.3vh, 0.8vh, 1vh);*/
/*        height: 100%;*/
/*        scroll-snap-align: center;*/
/*        display: flex;*/
/*        flex-direction: column;*/
/*        align-items: center;*/
/*        justify-content: space-between;*/
/*        border-radius: 20px;*/
/*        box-shadow: 0px 1.57514px 1.57514px rgba(0, 0, 0, 0.8);*/
/*        box-sizing: border-box;*/
/*    }*/

/*    !*.card--ultra {*!*/
/*    !*    height: 100%;*!*/
/*    !*    max-height: calc(100vh - clamp(22vh, 27vh, 33vh));*!*/
/*    !*    z-index: 1;*!*/
/*    !*    border-radius: 20px;*!*/
/*    !*    !*ТУТ МІНЯТИ КОЛІР*!*!*/
/*    !*    border-radius: 20px;*!*/
/*    !*    background: radial-gradient(circle at top center,*!*/
/*    !*    rgba(124, 12, 72, 0.4) 0%,*!*/
/*    !*    rgba(60, 44, 91, 0.4) 100%*!*/
/*    !*    );*!*/
/*    !*    backdrop-filter: blur(12px);*!*/
/*    !*    -webkit-backdrop-filter: blur(12px);*!*/

/*    !*    border: 1.5px solid #ffa903;*!*/

/*    !*    box-shadow:*!*/
/*    !*            0 4px 20px rgba(0, 0, 0, 0.3),*!*/
/*    !*            inset 0 0 8px rgba(255, 255, 255, 0.05);*!*/
/*    !*}*!*/
/*    !*.card--ultra .card-badge {*!*/
/*    !*    position: absolute;*!*/
/*    !*    top: 0;*!*/
/*    !*    left: 0;*!*/
/*    !*    right: 0;*!*/
/*    !*    padding: 4px 0;*!*/
/*    !*    z-index: 3;*!*/
/*    !*    font-family: var(--main-font);*!*/
/*    !*    text-transform: uppercase;*!*/
/*    !*}*!*/

/*    .card--regular {*/
/*        background-color: #4C5278;*/
/*        height: 100%;*/
/*        border-radius: clamp(10px, 1dvw, 20px);*/
/*        z-index: 1;*/
/*    }*/

/*    .card-content {*/
/*        display: flex;*/
/*        flex-direction: column;*/
/*        align-items: center;*/
/*        gap: 0.5vh;*/
/*        text-align: justify;*/
/*        justify-content: space-between;*/
/*        flex-grow: 1;*/
/*        height: 100%;*/
/*    }*/

/*    .card-main {*/
/*        display: flex;*/
/*        flex-direction: column;*/
/*        justify-content: space-between;*/
/*        height: 100%;*/
/*        flex-grow: 1;*/

/*        width: 100%;*/
/*        padding-inline: clamp(0.5vw, 1vw, 1.5vw);*/
/*    }*/

/*    .card-title {*/
/*        font-size: clamp(12px, 2vw, 20px);*/
/*        text-align: center;*/
/*        line-height: 1.1;*/
/*        display: flex;*/
/*        justify-content: center;*/
/*        margin: 0 0 4px clamp(20px, 3vw, 40px);*/
/*        padding-right: clamp(20px, 3vw, 40px);*/
/*        min-height: clamp(2em, 2.2em, 2.5em);*/
/*        align-items: flex-start;*/
/*        background: linear-gradient(90deg, #F9D15D 0%, #937B37 100%);*/
/*        background-clip: text;*/
/*        -webkit-background-clip: text;*/
/*        -webkit-text-fill-color: transparent;*/
/*        text-shadow: 0px 3px 3px rgba(0, 0, 0, 0.25);*/
/*    }*/
/*    .card-title,*/
/*    .card-description {*/
/*        display: block;*/
/*        flex-grow: 1;*/
/*    }*/
/*    .card-icon {*/
/*        position: absolute;*/
/*        top: clamp(8px, 1vh, 10px);*/
/*        left: clamp(8px, 1vh, 10px);*/
/*        width: clamp(18px, 3.2vw, 40px);*/
/*        height: clamp(18px, 3.2vw, 40px);*/
/*        cursor: pointer;*/
/*        transition: transform 0.2s ease, filter 0.2s ease;*/
/*        z-index: 5;*/
/*    }*/

/*    .card-icon img {*/
/*        image-rendering: smooth;*/
/*        width: 100%;*/
/*        height: 100%;*/
/*        object-fit: contain;*/
/*    }*/

/*    .card-description {*/
/*        font-size: clamp(14px, 1.8vw, 18px);*/
/*        text-align: justify;*/
/*        padding: 0 1.5%;*/
/*        margin-top: 1%;*/
/*        line-height: 1.3;*/

/*        !* прибираємо flex-grow та min-height *!*/
/*        display: block;*/
/*    }*/

/*    .card-image {*/
/*        max-height: clamp(10vh, 20vh, 25vh);*/
/*        display: flex;*/
/*        align-items: center;*/
/*        justify-content: center;*/
/*        overflow: visible;*/
/*    }*/

/*    .card-image img {*/
/*        image-rendering: smooth;*/
/*        height: clamp(10vh, 15vh, 17vh);*/
/*        object-fit: contain;*/
/*    }*/

/*    .card-footer {*/
/*        width: 100%;*/
/*        display: flex;*/
/*        justify-content: space-between;*/
/*        align-items: center;*/
/*        padding-top: 0.5vh;*/
/*        flex-wrap: nowrap;*/
/*    }*/

/*    .card-price {*/
/*        font-size: clamp(14px, 2.5vw, 22px);*/
/*    }*/

/*    .card-check img {*/
/*        image-rendering: smooth;*/
/*        width: auto;*/
/*        height: clamp(2rem, 5vw, 4rem);*/
/*    }*/

/*    .scroll::-webkit-scrollbar {*/
/*        display: none;*/
/*    }*/

/*    .scroll {*/
/*        scrollbar-width: none;*/
/*    }*/

/*    .scroll-arrow {*/
/*        position: absolute;*/
/*        top: 50%;*/
/*        transform: translateY(-50%);*/
/*        background: none;*/
/*        border: none;*/
/*        cursor: pointer;*/
/*        z-index: 10;*/

/*        width: clamp(20px, 4vw, 32px);*/
/*        height: clamp(32px, 6vh, 48px);*/
/*        padding: 0;*/

/*        display: flex;*/
/*        align-items: center;*/
/*        justify-content: center;*/
/*        transition: all 0.2s ease;*/
/*    }*/

/*    .scroll-arrow.left {*/
/*        left: 0;*/
/*    }*/

/*    .scroll-arrow.right {*/
/*        right: 0;*/
/*    }*/

/*    .scroll-arrow.disabled {*/
/*        opacity: 0.3;*/
/*        pointer-events: none;*/
/*    }*/

/*    .pagination-bf {*/
/*        display: flex;*/
/*        justify-content: center;*/
/*        align-items: center;*/
/*        gap: clamp(0.4vw, 0.8vw, 1.2vw);*/
/*        margin-bottom: clamp(1vh, 2vh, 2.5vh);*/
/*        z-index: 10;*/
/*        position: relative;*/
/*    }*/

/*    .dot {*/
/*        width: clamp(6px, 1.2vw, 10px);*/
/*        height: clamp(6px, 1.2vw, 10px);*/
/*        background: white;*/
/*        border-radius: 50%;*/
/*        opacity: 0.3;*/
/*        transition: all 0.2s ease;*/
/*    }*/

/*    .dot.active {*/
/*        opacity: 1;*/
/*        background: white;*/
/*    }*/

/*    !* BOOST CARD - VISIBLE IMAGE *!*/
/*    .boost.card .card-image,*/
/*    .buy.card .card-image {*/
/*        height: clamp(120px, 12vh, 160px);*/
/*        position: relative;*/
/*        pointer-events: none;*/
/*    }*/

/*    !* Hidden image for layout *!*/
/*    !*.boost.card .hidden-img,*!*/
/*    !*.buy.card .hidden-img {*!*/
/*    !*    visibility: hidden;*!*/
/*    !*}*!*/

/*    !*!* Visible image with animation *!*!*/
/*    !*.boost.card .pulse-img,*!*/
/*    !*.buy.card .pulse-img {*!*/
/*    !*    position: absolute;*!*/
/*    !*    top: 50%;*!*/
/*    !*    left: 50%;*!*/
/*    !*    transform: translate(-50%, -50%) scale(1.3);*!*/
/*    !*    z-index: -5;*!*/
/*    !*    object-fit: contain;*!*/
/*    !*    pointer-events: none;*!*/
/*    !*    animation: pulse 4s infinite ease-in-out;*!*/
/*    !*    box-shadow: none !important;*!*/
/*    !*    filter: none !important;*!*/
/*    !*    text-shadow: none !important;*!*/
/*    !*    drop-shadow: none !important;*!*/
/*    !*}*!*/

/*    @keyframes pulse {*/
/*        0%, 100% {*/
/*            transform: translate(-50%, -50%) scale(1.3);*/
/*        }*/
/*        50% {*/
/*            transform: translate(-50%, -50%) scale(1.4);*/
/*        }*/
/*    }*/
/*}*/
/* endregion */

@media (orientation: portrait) {
    .bet-control-wrapper-bf {
        bottom: 0.3vh;
    }
}

@media (orientation: landscape) {
    .bet-control-wrapper-bf {
        grid-area: bet;
        align-self: end;
        justify-self: center;

        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-end;
    }
    .balance-bf {
        position: unset !important;
        margin-top: 0;
        margin-bottom: 20px;
        font-size: clamp(0.7rem, calc(1.5vw + 0.8vh), 1.1rem) !important;
    }
    .bet-control-wrapper-bf {
        position: unset !important;
    }
}

@media (orientation: landscape) and (max-height: 500px) and (max-width: 1400px) {
    .bet-control-wrapper-bf {
        transform: scale(0.7) !important;
        transform-origin: bottom center;
    }
}
@media (orientation: landscape) and (max-height: 300px) {
    .bet-control-wrapper-bf {
        margin-bottom: 12px;
        transform: scale(0.65) !important;
        transform-origin: bottom center;
    }
    .balance-bf {
        margin-top: 2px;
        bottom: 12px;
        height: 10dvh;
        /*bottom: calc(env(safe-area-inset-bottom, 0px) + 12px);*/
    }
    #featurebuy-overlay .scroll-container {
        height: auto;
        transform: scale(0.75);
        margin-top: -2%;
    }
    #featurebuy-overlay .title-container {
        transform: scale(0.75);
    }
    .bet-control-wrapper-bf {
        margin-top: -5%;
        transform: scale(0.65);
    }
    #block-wrapper {
        margin-bottom: 0;
        margin-top: -1%;
    }
}

@media screen and (orientation: landscape) and (max-height: 430px) {
    .card {
        max-width: 48%;
        height: auto;
        padding: 8px;
    }

    .card--ultra .card-badge,
    .card--regular .card-badge {
        font-size: clamp(10px, 1.6vw, 12px);
        padding: 2px 0;
        letter-spacing: 0.15em;
    }

    .card-image {
        max-height: clamp(8vh, 15vh, 20vh);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .card-check img {
        image-rendering: smooth;
        width: auto;
        height: clamp(35px, 5vh, 36px);
    }

    .card-footer {
        align-items: end;
        padding: 0;
    }

    .card-description {
        font-size: clamp(12px, 1.5vw, 14px);
        display: inline-table;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3; /* обмежуємо до 3 рядків */
        overflow: scroll;
        text-overflow: ellipsis;
        /*font-size: clamp(0.7rem, 1.5vw, 0.9rem);*/
        line-height: 1.2;
        height: calc(1.3em * 3); /* точно 3 рядки */
    }

    .buy.card .pulse-img,
    .boost.card .pulse-img {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(1.6);
        z-index: -2;
        object-fit: contain;
        pointer-events: none;
        animation: pulse 4s infinite ease-in-out;
    }

    .pagination-bf {
        gap: clamp(0.3vw, 1vw, 0.6vw);
        position: relative;
        z-index: 10;
        transform: translateY(-1.5vh);
    }

    .dot {
        width: clamp(6px, 1.2vw, 6px);
        height: clamp(6px, 1.2vw, 6px);
        background: white;
        border-radius: 50%;
        opacity: 0.3;
    }

    .dot.active {
        opacity: 1;
        background: white;
    }
}

@media screen and (orientation: landscape) and (max-height: 450px) {
    .card {
        max-height: calc(100vh - clamp(20vh, 28vh, 34vh));
        overflow: hidden;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .card-price {
        font-size: clamp(14px, 2vw, 20px);
    }

    .card-description {
        overflow-y: auto;
        text-overflow: ellipsis;

        display: block;
        line-height: 1.2;
        max-height: calc(1.2em * 3); /* рівно 3 рядки */
        min-height: calc(1.2em * 3); /* щоб усі були однакові */

        padding-right: 4px;
        scrollbar-width: thin;
        scrollbar-color: rgba(255,255,255,0.2) transparent;
    }

    .card-footer {
        align-items: end;
    }

    .buy.card .pulse-img,
    .boost.card .pulse-img {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(1.6);
        z-index: -2;
        object-fit: contain;
        pointer-events: none;
        animation: pulse 4s infinite ease-in-out;
    }
}

@media screen and (max-height: 280px) and (orientation: landscape) {
    .card {
        padding: 8px;
        max-height: 100vh;
    }

    .card-image {
        display: none;
    }

    .buy.card .pulse-img,
    .boost.card .pulse-img {
        display: none;
    }

    .card-description {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: scroll;
        text-overflow: ellipsis;

        /*font-size: clamp(0.7rem, 1.5vw, 0.9rem);*/
        line-height: 1.2;
        height: calc(1.3em * 2);
    }

    card-footer {
        align-items: end;
    }
}


#block-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
    box-sizing: border-box;
    justify-content: center;
    padding-top: 10px;
    padding-bottom: 30px;
    max-width: 100%;
}

.card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: auto;
    padding: 10px;
    width: 100%;
    /*background: radial-gradient(circle at top center, #7c0c48 0%, #3c2c5b 100%);*/
}
@media (orientation: portrait) {
    .card {
        max-width: clamp(280px, 85vw, 360px);
    }
}
@media (orientation: landscape) {
    .card {
        max-width: clamp(280px, 85vw, 400px);
    }
}

.card--ultra {
    height: auto;
    max-height: calc(100vh - clamp(22vh, 27vh, 33vh));
    z-index: 2;
    border-radius: 20px;

    /*ТУТ МІНЯТИ КОЛІР*/
    /* Скляний ефект */
    background: radial-gradient(circle at top center,
    rgba(124, 12, 72, 0.4) 0%,
    rgba(60, 44, 91, 0.4) 100%
    );
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    border: 1.5px solid #ffa903;

    box-shadow:
            0 4px 20px rgba(0, 0, 0, 0.3),
            inset 0 0 8px rgba(255, 255, 255, 0.05);
}

.card--ultra .card-badge {
    visibility: visible;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    font-weight: 700;
    text-align: center;
    font-size: clamp(12px, 2vw, 14px);
    padding: 4px 0;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    z-index: 3;
    font-family: var(--main-font);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

/* REGULAR CARD */
.card--regular {
    background-color: #485276;
    height: auto;
    border-radius: 20px;
    z-index: 1;
    box-shadow: 3px 3px 8px 0 rgb(255 0 0 / 0%) inset, 0 3px 3px 0 rgb(0 0 0 / 64%);
}

.card--regular .card-badge {
    visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: #A9B4D2;
    color: #51587A;
    font-weight: 700;
    text-align: center;
    font-size: clamp(12px, 2vw, 14px);
    padding: 4px 0;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    z-index: 3;
    font-family: var(--main-font);
    text-transform: uppercase;
}

.card,
.card--ultra,
.card--regular {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: auto;
    border-radius: 20px;
    overflow: hidden;
    box-sizing: border-box;
}

.card-content {
    display: grid;
    height: auto;
    grid-template-columns: 38% 58%;
    /*grid-template-columns: auto 1fr;*/
    gap: 8px;
    align-items: center;
    flex: 1;
}

.card-title {
    /*margin-bottom: 4px;*/
    /*margin-top: 0;*/
    /*text-align: left;*/
    /*grid-column: 2;*/
    grid-column: 1 / -1;
    grid-row: 1;
    text-align: center;
    margin-bottom: 4px;
    margin-top: 0;
}

.card-icon {
    position: absolute;
    top: 10px;
    left: 10px;
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
    height: auto;
    z-index: 5;
}

.card-icon img {
    image-rendering: smooth;
    width: 100%;
    height: clamp(30px, 3.2vh, 35px)
}

.card-image {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    /*width: clamp(100px, 20vw, 140px);*/
    align-self: center;
    box-sizing: border-box;
    position: relative;
    transform: translateY(calc(-30% - ((100% - 300px) / 100 * 0.1)));
}

.card-image img {
    image-rendering: smooth;
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.card-image > img {
    position: relative;
    width: 100%;
    object-fit: contain;
}

/* Знімаємо обмеження для нашої анімації */
.card-image .wild-container img {
    height: auto !important;
    width: 100% !important;
}

.card-main {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.card-description {
    font-size: clamp(0.9rem, 1.5vw, 1rem);
    height: auto;
    position: relative;
    z-index: 2;
    font-weight: 500;
}

.buy.card .hidden-img,
.boost.card .hidden-img {
    visibility: hidden;
    width: clamp(100px, 20vw, 140px);
    height: auto;
}

/*.buy.card .pulse-img,*/
/*.boost.card .pulse-img {*/
/*    position: absolute;*/
/*    top: 0;*/
/*    left: 0;*/
/*    right: 0;*/
/*    bottom: 0;*/
/*    margin: auto;*/
/*    width: 90%;*/
/*    max-width: 90%;*/
/*    height: auto;*/
/*    pointer-events: none;*/
/*    object-fit: contain;*/
/*    animation: pulse-portrait 4s infinite ease-in-out;*/
/*    z-index: -5;*/
/*}*/

/*@keyframes pulse-portrait {*/
/*    0%, 100% {*/
/*        transform: scale(1.2);*/
/*    }*/
/*    50% {*/
/*        transform: scale(1.3);*/
/*    }*/
/*}*/

.card-text {
    margin-bottom: 8px;
}

.card-footer {
    position: relative;
    z-index: 2;
}

.scroll-container {
    position: relative;
    width: 100%;
    height: calc(100dvh - 30vh);
    overflow: hidden;
    box-sizing: border-box;
    justify-content: center;
    padding-left: 8px;
    padding-right: 0;
}

.scroll {
    /*height: 100%;*/
    overflow-y: auto;
    box-sizing: content-box;
    padding-right: 10px;
    scrollbar-width: thin;
    scrollbar-color: #ffffff80 transparent;

    /*-webkit-mask-image: -webkit-linear-gradient(top, rgba(0,0,0,1) 88%, rgba(0,0,0,0));*/
    /*mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 88%, rgba(0,0,0,0));*/
    /*-webkit-mask-size: 100% 100%;*/
    /*mask-size: 100% 100%;*/
    /*-webkit-mask-repeat: no-repeat;*/
    /*mask-repeat: no-repeat;*/
}

.scroll::-webkit-scrollbar {
    width: 8px;
    right: 0;
}

.scroll::-webkit-scrollbar-track {
    background: transparent;
}

.scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.4);
    transition: background 0.3s ease;
}

.scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.6);
}

.card-image .wild-container {
    position: relative;
    /*width: clamp(120px, 16vw, 180px);*/
    /*max-height: clamp(120px, 16vh, 200px);*/
    aspect-ratio: 1700 / 1360;
    margin: 0 auto;
}

.card-image .wild-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    pointer-events: none;
    image-rendering: auto;
}

.card-image {
    overflow: visible !important;
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto !important;
}

.wild-container .wild{
    -webkit-mask-image: radial-gradient(circle, #000 42%, transparent 63%);
    mask-image: radial-gradient(circle, #000 42%, transparent 63%);
}

@media (orientation: landscape) {
    .wild-container {
        transform: scale(1.3);
    }
}

@media (orientation: portrait) {
    .wild-container {
        transform: scale(1.6);
    }
}

.wild-container {
    z-index: 0;
    position: relative;
    width: 100%;
    aspect-ratio: 1700 / 1360;
}

.wild-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    pointer-events: none;
}

/* Glow synced with wild */
.glow {
    filter: none !important;
    box-shadow: none !important;
    animation: subtleGlow 3s ease-in-out infinite;
}

@keyframes subtleGlow {
    0%, 100% { transform: scale(1.12);
        opacity: 1; }
    50% { transform: scale(1.05);
        opacity: 0.8; }
}

/* Wings */
.wing.left {
    /*      transform-origin: right center;*/
    animation: flapLeft 3s ease-in-out infinite;
}
.wing.right {
    /*      transform-origin: left center;*/
    animation: flapRight 3s ease-in-out infinite;
}

@keyframes flapLeft {
    0%, 100% { transform: rotate(0deg) scaleX(1); }
    50% { transform: rotate(3deg) scaleX(0.98); }
}
@keyframes flapRight {
    0%, 100% { transform: rotate(0deg) scaleX(1); }
    50% { transform: rotate(-3deg) scaleX(0.98); }
}

/* Wild */
.wild {
    animation: wildPulse 3s ease-in-out infinite;
}

@keyframes wildPulse {
    0%, 100% { transform: scale(1.03); }
    50% { transform: scale(1); }
}

/* Shine synced with others */
.shine {
    animation: shineRotateSync 3s ease-in-out infinite;
    mix-blend-mode: screen;
    /*      opacity: 0.8;*/
}

@keyframes shineRotateSync {
    0%, 100% { transform: rotate(8deg); }
    50% { transform: rotate(0deg); }
}

/* region PLUS/MINUS BUTTONS */
/* Загальний стиль кнопок */
.bet-btn {
    position: relative;
    width: clamp(56px, 8dvw, 69px);
    height: clamp(56px, 8dvw, 69px);
    border: none;
    padding: 0;
    background: transparent;
    clip-path: circle(50%);
    cursor: pointer;
}

/* Темний диск */
.bet-btn .disc {
    position: absolute;
    inset: 0;
    border-radius: var(--btn-radius);
    background: rgba(0,0,0,0.3);
    box-shadow: 0 2.195px 1.646px rgba(0,0,0,0.50);
    z-index: 0;
}

/* Білий радіальний контур (1-в-1 як у SVG) */
.bet-btn .ring {
    position: absolute;
    inset: 0;
    border-radius: var(--btn-radius);
    opacity: 0.9;
    background: radial-gradient(50% 50% at 50% 50%,
    rgba(255,255,255,0.00) 0%,
    rgba(255,255,255,0.00) 85.31%,
    rgba(255,255,255,0.70) 100%);
    box-shadow: 0 2.195px 1.646px rgba(0,0,0,0.50);
    pointer-events: none;
    z-index: 1;
}

/* Символи (мінус / плюс) */
.bet-btn .symbol {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    background: white;
    border-radius: 999px;
    filter: drop-shadow(0 2.195px 1.646px rgba(0,0,0,0.50));
    z-index: 2;
}

/* Мінус */
.bet-btn.minus .symbol {
    width: 44%;
    height: 8%;
}

/* спільні для обох рисок плюса */
.bet-btn.plus .h,
.bet-btn.plus .v{
    position:absolute;
    left:50%;
    top:50%;
    transform:translate(-50%, -50%);
    background:#fff;
    border-radius:999px;
    z-index:2;
}

.bet-btn.plus {
    filter: drop-shadow(0 2.195px 1.646px rgba(0,0,0,.5));
}

/* горизонтальна риска */
.bet-btn.plus .h{
    width:44%;
    height:8%;
}

/* вертикальна риска */
.bet-btn.plus .v{
    width:8%;
    height:44%;
}
/* endregion */
/* region Кнопка "Buy Confirm"*/
.confirm-btn {
    /* Розміри (міняйте під себе) */
    --w: 78px;
    --h: 42px;

    width: var(--w);
    height: var(--h);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    /* форма-пилюля */
    border: 1.5px solid #fff;
    /* біла обводка ~1.18px */
    background:
            radial-gradient(50% 50% at 50% 50%,
                /* зелено→синій як у SVG */
            #35F866 32%, #41497D 100%);
    /* емулюємо внутрішній білий інсет і зовнішню тінь */

    box-shadow:
            inset 0 2px 8px -2px rgba(255, 255, 255, .95),
            inset 0 -2px 8px -2px rgba(0, 0, 0, .65),
            0 2px 2px rgba(0, 0, 0, .5);



    /* зовн. шадоу як feOffset */
    padding: 0;
    outline: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;

    position: relative;

    /* зручно керувати розміром галочки змінною */
    --icon-w: 42%;
    /* підкрутіть 36–48% під свій розмір */
}

.confirm-btn .tick {
    --w: calc(var(--h) * 1);
    --t: 5px;
    --angle: 45deg;
    --color: #ffffff;
    position: relative;
    width: var(--w);
    height: calc(var(--w) * 0.42);
    display: block;
    filter: drop-shadow(0 1.6px 1.6px rgba(0, 0, 0, .5));
}

/* два штрихи, праве довше — класична форма ✓ */
.confirm-btn .tick::before,
.confirm-btn .tick::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 100%;
    height: var(--t);
    background: var(--color);
    border-radius: 999px;
}

/* ліве коротше плече */
.confirm-btn .tick::before {
    left: 25%;
    width: 35%;
    transform-origin: right center;
    transform: translate(-5px, -3%) rotate(var(--angle));
}

/* праве довше плече */
.confirm-btn .tick::after {
    left: 27%;
    width: 70%;
    transform-origin: left center;
    transform: translate(6px, -20%) rotate(calc(-1 * var(--angle)));
}

/* (опційно) :active — невеликий “натиск” */
.confirm-btn:active {
    transform: translateY(1px);
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, .22);
}
/* endregion */

/* ---- PORTRAIT Not enough balance ---- */
@media (orientation: portrait) {
    :root { --bf-footer-h: clamp(40px, 5vh, 42px); }
    .card-footer {
        margin-top: auto;
        min-height: var(--bf-footer-h);
        align-items: center;
    }
    .card-footer.hidden { display: none; }
    .card-error-bf { display: none; }
    .card-error-bf.active {
        display: flex !important;
        align-items: center;
        justify-content: flex-start;
        margin-top: auto;
        min-height: var(--bf-footer-h);
        width: 100%;
        text-align: left;
        color: #ff6b6b;
        z-index: 9999 !important;
        position: relative !important;
    }
}

/* region New Grid for card */
@media (orientation: portrait) {
    .card-content {
        grid-template-columns: 38% 58%;
        grid-template-rows: auto 1fr auto;
        grid-template-areas:
      "title  title"
      "image  text"
      "price  button";
        align-items: start;
    }
    .card-main {
        display: contents;
    }
    .card-footer {
        display: contents;
    }
    .card-image {
        grid-area: image;
        transform: none;
        align-self: center;
    }
    .card-text {
        grid-area: text;
    }
    .card-description {
        grid-area: text;
    }
    .card-price {
        margin-left: 10%;
        grid-area: price;
        justify-self: start;
        align-self: end;
    }
    .card-check {
        grid-area: button;
        justify-self: end;
        align-self: end;
    }
}
/* endregion */



