.card {
    font-family: var(--main-font);
    position: relative;
    border-radius: 18px;
    padding: 16px;
    box-sizing: border-box;
    overflow: hidden;
    z-index: 1;
    cursor: default;
}

.card--regular > .texture {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    mix-blend-mode: lighten;
    opacity: 0.7;
    z-index: 0;
    border-radius: 18px;
}

.card--regular .card-content {
    position: relative;
    z-index: 1;
}

.card--regular.green {
    background: linear-gradient(to bottom, #97653F 5%, #1C110A 100%);
    box-shadow: 0 1px 2px 0 rgb(255 255 255) inset, 0 3px 3px 0 rgba(0, 0, 0, 0.80);
    height: inherit;
    z-index: 1;
}

.card--regular.blue {
    background: linear-gradient(to bottom, #736A4B 5%, #1C110A 100%);
    box-shadow: 0 1px 2px 0 rgb(255 255 255) inset, 0 3px 3px 0 rgba(0, 0, 0, 0.80);
    height: inherit;
    z-index: 1;
}

.card--regular.violet {
    background: linear-gradient(to bottom, #5c724b 5%, #1C110A 100%);
    box-shadow: 0 1px 2px 0 rgb(255 255 255) inset, 0 3px 3px 0 rgba(0, 0, 0, 0.80);
    height: inherit;
    z-index: 1;
}

.card--regular.red {
    background: linear-gradient(to bottom, #676764 5%, #1C110A 100%);
    box-shadow: 0 1px 2px 0 rgb(255 255 255) inset, 0 3px 3px 0 rgba(0, 0, 0, 0.80);
    height: inherit;
    z-index: 1;
    position: relative;
}

.card--regular.cyan::after {
    content: "";
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: -8px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(90deg, #E39DCA 40%, #ffffff 50%, #E39DCA 70%);
    box-shadow: 0 6px 12px rgba(0,0,0,0.35);
    z-index: -1;
}

.card--regular.cyan::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(90deg, #fe9ce8 0%, #8E6EAF 25%, #7BC3F6 50%, #8E6EAF 75%, #fe9ce8 100%);
    background-size: 200% 100%;
    animation: border-pan 6s linear infinite;

    -webkit-mask:
            linear-gradient(#000 0 0) content-box,
            linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.card::after {
    content: "";
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: -8px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(90deg, rgba(246, 218, 180, 0) 0%, #F6DAB4 47.5%, rgba(246, 218, 180, 0) 97.81%);
    box-shadow: 0 6px 12px rgba(0,0,0,0.35);
    z-index: -1;
}

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

.card-title {
    text-align: center;
    font-family: var(--main-font);
    font-size: var(--card-title);
    font-weight: 800;
    background: linear-gradient(270deg, #FFC6B9 40%, #F9E7C9 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0 0 4px 0;
    text-transform: uppercase;
    filter: drop-shadow(0 1px 0 rgba(0,0,0,.55))
            drop-shadow(0 6px 12px rgba(0,0,0,.35));
}

.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(20px, 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;
    z-index: 3;
}

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

.card:hover:not(.disabled) {
    transform: scale(1.01);
    filter: brightness(1.2);
    cursor: pointer;
}

.card:hover:not(.disabled) {
    transform: scale(1.01);
    filter: brightness(1.2);
    cursor: default;
}

.card .confirm-btn,
.card .card-check,
.card .card-check button {
    cursor: pointer;
}

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

@media (orientation: landscape) {
    #block-wrapper { --cards-gap: clamp(1dvw, 1.6dvh, 1.8dvw); }
    .scroll-container { --arrows-space: clamp(24px, 4vw, 48px); }
    html, body {
        overflow-y: hidden;
        height: 100dvh;
        max-height: 100dvh;
    }
    .scroll-arrow,
    .pagination-bf {
        display: flex;
    }

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

    .scroll {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        gap: 0;
        padding: 0;
        margin-inline: var(--arrows-space);
        max-width: min(96dvw, 1000px);
        scrollbar-width: none;
        overflow-y: hidden;
    }

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

        max-height: 100%;
        flex-direction: row;
        gap: var(--cards-gap);
        justify-content: flex-start;
        overflow-x: auto;
        box-sizing: border-box;
        margin: 0 auto;
        width: 100%;
        min-width: 100%;
        padding: clamp(1dvh, 2dvh, 2.5dvh) 2px;
        padding-top: clamp(1dvh, 3dvh, 5dvh);
        scrollbar-width: none;

        scroll-padding-inline: clamp(24px, 5vw, 40px);

        overflow-y: hidden;
    }

    .card {
        flex: 0 0 auto;

        width: calc((100% - 2 * var(--cards-gap)) / 3);
        height: auto;
        align-self: stretch;
        margin-bottom: clamp(0.3vh, 0.8vh, 1vh);
        scroll-snap-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
        box-shadow: 0 1.57514px 1.57514px rgba(0, 0, 0, 0.8);
        box-sizing: border-box;
    }

    .card--regular.cyan {
        background: linear-gradient(180deg,
            #675091 0%,
            #342551 18%,
            #150E24 35%,
            #202346 73%,
            #2C3868 100%);
        box-shadow: 0 1px 3px 0 rgb(0 160 255) inset, 0 4px 4px 0 rgba(0,0,0,.80);
    }

    .card--regular.cyan::after {
        content: "";
        position: absolute;
        left: 20px;
        right: 20px;
        bottom: -8px;
        height: 10px;
        border-radius: 50%;
        background: linear-gradient(90deg, #E39DCA 40%, #ffffff 50%, #E39DCA 70%);
        box-shadow: 0 6px 12px rgba(0,0,0,0.35);
        z-index: -1;
    }

    .card--regular.cyan::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: inherit;
        padding: 1px;
        background: linear-gradient(90deg, #fe9ce8 0%, #8E6EAF 25%, #7BC3F6 50%, #8E6EAF 75%, #fe9ce8 100%);
        background-size: 200% 100%;
        animation: border-pan 6s linear infinite;

        -webkit-mask:
                linear-gradient(#000 0 0) content-box,
                linear-gradient(#000 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        pointer-events: none;
    }

    @keyframes border-pan {
        0%   { background-position: 200% 0; }
        100% { background-position: 0 0; }
    }

    .card-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: clamp(0.5vh, calc(1vh + 1vw), 2vh);
        text-align: justify;
        justify-content: space-between;
        flex-grow: 1;
        height: 100%;
        min-height: 0;
    }

    .card-main {
        /*flex-grow: 1;*/
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 100%;
        /*height: 100%;*/
        padding-inline: clamp(0.5dvw, 1dvw, 1.5dvw);
        min-height: 0;
    }

    .card-title {
        font-size: clamp(13px, 1.2dvw + 1dvh, 18px);
        text-align: center;
        line-height: 1.1;
        display: flex;
        justify-content: center;
        margin: 0 0 4px clamp(20px, 3dvw, 40px);
        padding-right: clamp(18px, 2.5dvw, 32px);
        min-height: clamp(1.5em, 1.8em, 2em);
        align-items: flex-start;
    }

    .card-title,
    .card-footer { flex: 0 0 auto; }

    .card-icon {
        position: absolute;
        top: clamp(8px, 1dvh, 10px);
        left: clamp(8px, 1dvh, 10px);
        width: clamp(18px, 3.2dvw, 40px);
        height: clamp(18px, 3.2dvw, 40px);
        transition: transform 0.2s ease, filter 0.2s ease;
        z-index: 5;
    }

    .card-description {
        font-size: clamp(14px, 1.8dvw, 18px);
        text-align: left;
        padding: 0 1.5%;
        margin-top: 1%;
        line-height: 1.3;
        flex: 1 1 auto;
        min-height: 0;
        justify-content: center;
        align-items: flex-start;
        display: block;
    }


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

    .card-footer {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
        margin-top: auto;
        /*padding-top: clamp(6px, 1vh, 12px);*/
    }

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

    .card-check img {
        image-rendering: smooth;
        width: auto;
        height: clamp(2rem, 5dvw, 3.5rem);
    }

    .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, 4dvw, 32px);
        height: clamp(32px, 6dvh, 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.4dvw, 0.8dvw, 1.2dvw);
        margin-bottom: clamp(1dvh, 2dvh, 2.5dvh);
        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;
    }

    .buy.card .card-image {
        position: relative;
        pointer-events: none;
        height: auto;
        z-index: 1;
    }

    .buy.card .hidden-img {
        visibility: hidden;
    }

    .buy.card .pulse-img {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(1);
        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;
        width: clamp(65%, 22vw, 85%);
        max-width: 90%;
        max-height: 100%;
        height: auto;
    }

    .card--regular.cyan .pulse-img {
        filter:
                drop-shadow(0 0 1px rgba(0, 160, 255, 0.42))
                drop-shadow(0 0 3px rgba(0, 160, 255, 0.39)) !important;
        text-shadow: none !important;
        box-shadow: none !important;
    }

    @keyframes pulse {
        0%, 100% {
            transform: translate(-50%, -50%) scale(1.3);
        }
        50% {
            transform: translate(-50%, -50%) scale(1.35);
        }
    }

    @keyframes pulse-compact {
        0%, 100% {
            transform: translate(-50%, -50%) scale(1.55);
        }
        50% {
            transform: translate(-50%, -50%) scale(1.6);
        }
    }
}

.card-fill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.card-fill .card-image  { flex: 0 0 40%; }
.card-fill .card-content{ flex: 1 1 60%; min-width:0; }

.card-fill .card-image img{
    display:block;
    width:100%;
    height:auto;            /* або height:100%; object-fit:contain; для фікс.висоти */
    object-fit: contain;
}
@media (orientation: landscape) {

    .buy.card.card--regular.cyan .card-fill {
        margin-top: auto;
        margin-bottom: auto;
    }
}

@media (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, 12vh, 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;
    }

    .card-description {
        font-size: clamp(12px, 1.5vw, 14px);
        display: inline-table;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        overflow: scroll;
        text-overflow: ellipsis;
        line-height: 1.2;
        height: calc(1.3em * 3);
    }

    .buy.card .pulse-img {
        position: absolute;
        top: 50%;
        left: 50%;
        z-index: -2;
        object-fit: contain;
        pointer-events: none;
        animation: pulse-compact 4s infinite ease-in-out;
        width: clamp(78%, 30vw, 120%);
        max-width: 110%;
        height: auto;
    }

    .pagination-bf {
        margin-top: -1%;
        margin-bottom: 2%;
        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 (orientation: landscape) and (max-height: 450px) {
    .card {
        max-height: calc(100dvh - 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;

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

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

    .buy.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-compact 4s infinite ease-in-out;
        width: clamp(78%, 30vw, 120%);
        max-width: 110%;
        height: auto;
    }

    .confirm-btn {
        transform: scale(0.9);
    }
    .toggle-switch-bf {
        transform: scale(0.9);
    }
}

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

    /*.card-image {*/
    /*    display: none;*/
    /*}*/

    /*.buy.card .pulse-img {*/
    /*    display: none;*/
    /*}*/

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

        line-height: 1.2;
        height: calc(1.3em * 2);
    }

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

@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: 2vh;
        font-size: clamp(0.7rem, calc(1.5vw + 0.8vh), 1.1rem) !important;
    }
    .bet-control-wrapper-bf {
        position: unset !important;
    }
}

@media (orientation: portrait) {
    .card-fill {
        gap: 0;
        height: 100px;
    }

    .card-content.landscape {
        display: none;
    }

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

    .card {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: auto;
        min-height: 180px;
        padding: 10px;
        width: 100%;
        max-width: clamp(280px, 85dvw, 360px);
    }

    .card--regular {
        height: auto;
        z-index: 1;
    }
    .card--regular.cyan {
        background: linear-gradient(180deg,
        #675091 0%,
        #342551 18%,
        #150E24 35%,
        #202346 73%,
        #2C3868 86%,
        #51485A 100%);
        box-shadow: 0 1px 3px 0 rgba(255, 255, 255, 0.50) inset, 0 4px 4px 0 rgba(0, 0, 0, 0.80);
    }
    .card,
    .card--regular {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        height: auto;
        overflow: hidden;
        box-sizing: border-box;
    }

    .card-content {
        height: 100%;
        align-items: center;
        flex: 1;
    }

    .card-title {
        margin-bottom: 4px;
        margin-top: 0;
        text-align: center;
        grid-column: 2;
        z-index: 5;
    }

    .card-icon {
        position: absolute;
        top: 10px;
        left: 10px;
        width: clamp(18px, 3.5dvh, 40px);
        height: clamp(18px, 3.5dvh, 40px);
        z-index: 5;
    }

    .card-image {
        margin-top: 8%;
        margin-bottom: 5%;
        justify-content: center;
        width:100%;
        align-self: center;
        box-sizing: border-box;
        position: relative;
        /*transform: scale(1.6);*/
        height: clamp(100px, 2dvh, 230px);
    }

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

    .card-main {
        display: flex;
        width: 100%;
        flex-wrap: nowrap;
        min-width: 0;
        flex-direction: column;
        justify-content: center;
        gap: 8px;
        position: relative;
        z-index: 1;
    }

    .card-description {
        top: 10px;
        display: block;
        font-size: clamp(0.9rem, 1.5dvw, 1rem);
        height: auto;
        position: relative;
        z-index: 2;
        font-weight: 500;
    }

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

    .buy.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.45);
        }
        50% {
            transform: scale(1.5);
        }
    }

    .card.card--regular.cyan .pulse-img {
        top: 16px;
        width: 70%;
        max-width: 70%;
        animation: pulse-portrait-2 4s infinite ease-in-out;
    }
    .card.card--regular.cyan .card-title {
        position: relative;
        z-index: 10;
    }

    @keyframes pulse-portrait-2 {
        0%, 100% {
            transform: scale(0.6);
        }
        50% {
            transform: scale(0.65);
        }
    }

    .card.card--regular.cyan .card-content {
        height: auto;
        grid-template-columns: auto 1fr;
        gap: 8px;
        align-items: center;
        flex: 1;
    }

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

    .card.card--regular.cyan .pulse-img {
        left: -12%;
        right: 0;
        max-width: none;
        max-height: none;
        width: min(125%, clamp(180px, 42vw, 280px));
        height: auto;
        animation: pulse-portrait-2 4s infinite ease-in-out;
    }

    .card-text {
        margin-bottom: 5%;
        padding-right: 1%;
    }

    .card-footer {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        width: 100%;
        flex-wrap: nowrap;
        min-width: 0;
        position: relative;
        z-index: 2;
    }

    .card-price {
        display: block;
        font-size: clamp(1rem, 5vw, 1.6rem);
        font-weight: 700;
        color: #ffffff;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        flex-shrink: 1;
        min-width: 0;
    }

    .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);
    }

    .bet-control-wrapper-bf {
        bottom: 0.3vh;
    }

    .balance-bf {
        position: unset !important;
        margin-top: 0;
        margin-bottom: 2vh;
    }
}

.popup-box, .popup-text {
    font-family: "Noto Sans", sans-serif !important;
}

.popup-btn.confirm {
    font-family: "Noto Sans", sans-serif !important;
}

.popup-btn.cancel {
    font-family: "Noto Sans", sans-serif !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 {
        transform: scale(0.65) !important;
        transform-origin: bottom center;
    }
}

@media (orientation: landscape) and (max-height: 280px) {
    .title-container {
        transform: scale(0.8) !important;
    }
    #buy-close {
        transform: scale(0.8) !important;
    }
    .scroll-container {
        transform: scale(0.95) !important;
    }
    .card-check {
        transform: scale(0.85) !important;
    }
    .card {
        transform: scale(0.85) !important;
    }
}

.buy.card.card--regular.cyan{ position: relative; overflow: hidden; }
.buy.card.card--regular.cyan .card-content{ position: relative; z-index: 3; }

.buy.card.card--regular.cyan .particles{
    position:absolute; inset:0; pointer-events:none; z-index:2;
    mix-blend-mode: screen;
}

.buy.card.card--regular.cyan .particles img{
    position:absolute;
    width: var(--w, 100%);
    height:auto;
    left:  var(--x, 0);
    top:   var(--y, 0);
    transform: translate(var(--tx,0), var(--ty,0)) scale(var(--s,1));
    opacity: .5;

    animation: blinkHard var(--blink,4s) ease-in-out infinite;
}

.bf-particles1{
    --w: 55%; --x: 6%;  --y: 10%; --tx: 0; --ty: 0; --s: 1;
    --blink: 3.6s;
    animation-delay: .0s;
}
.bf-particles2{
    --w: 40%; --x: 58%; --y: 18%; --s: 1.05;
    --blink: 4.8s;
    animation-delay: .35s;
}
.bf-particles3{
    --w: 70%; --x: 18%; --y: 52%; --s: .95;
    --blink: 5.6s;
    animation-delay: .9s;
}

@keyframes blinkHard{
    0%, 11%, 24%, 39%, 59%, 79%, 100% {
        opacity: .18;
    }
    12% {
        opacity: 1;
    }
    25% {
        opacity: .95;
    }
    40% {
        opacity: 1;
    }
    60% {
        opacity: .9;
    }
    80% {
        opacity: 1;
    }
}

/* a11y */
@media (prefers-reduced-motion: reduce){
    .buy.card.card--regular.cyan .particles img{ animation: blinkHard 7s ease-in-out infinite; }
}

/* region Sun Particles */
/* контейнер */
/*.buy.card.card--regular{ position: relative; overflow: hidden; }*/
/*.buy.card.card--regular .card-content{ position: relative; z-index: 0; }*/

/*!* шар з PNG-партіклами *!*/
/*.buy.card.card--regular .particles{*/
/*    position:absolute; inset:0; pointer-events:none; z-index: 0;*/
/*    mix-blend-mode: screen;*/
/*}*/

/*!* базові стилі *!*/
/*.buy.card.card--regular .particles img{*/
/*    position:absolute;*/
/*    width: var(--w, 100%);*/
/*    height:auto;*/
/*    left:  var(--x, 0);*/
/*    top:   var(--y, 0);*/
/*    transform: translate(var(--tx,0), var(--ty,0)) scale(var(--s,1));*/
/*    opacity: .5;*/
/*    animation: blinkHard var(--blink,4s) ease-in-out infinite;*/
/*}*/

/*!* позиції трьох PNG *!*/
/*.buy.card.card--regular .card-particles1{*/
/*    --w: 55%; --x: 6%;  --y: 10%; --tx: 0; --ty: 0; --s: 1;*/
/*    --blink: 3.6s;*/
/*    animation-delay: 0s;*/
/*}*/
/*.buy.card.card--regular .card-particles2{*/
/*    --w: 40%; --x: 58%; --y: 18%; --s: 1.05;*/
/*    --blink: 4.8s;*/
/*    animation-delay: .35s;*/
/*}*/
/*.buy.card.card--regular .card-particles3{*/
/*    --w: 70%; --x: 18%; --y: 52%; --s: .95;*/
/*    --blink: 5.6s;*/
/*    animation-delay: .9s;*/
/*}*/

/*!* ключові кадри (можеш не дублювати, якщо вже оголошені вище) *!*/
/*@keyframes blinkHard{*/
/*    0%, 11%, 24%, 39%, 59%, 79%, 100% {*/
/*        opacity: .18;*/
/*    }*/
/*    12% {*/
/*        opacity: 1;*/
/*    }*/
/*    25% {*/
/*        opacity: .95;*/
/*    }*/
/*    40% {*/
/*        opacity: 1;*/
/*    }*/
/*    60% {*/
/*        opacity: .9;*/
/*    }*/
/*    80% {*/
/*        opacity: 1;*/
/*    }*/
/*}*/

/*!* a11y *!*/
/*@media (prefers-reduced-motion: reduce){*/
/*    .buy.card.card--regular .particles img{ animation: blinkHard 7s ease-in-out infinite; }*/
/*}*/

/*.buy.card.card--regular .particles img{ --glow: #F6DAB4; }*/
/* endregion */

@media (orientation: landscape) {
    .card-content{
        display: grid;
        grid-template-rows: auto 1fr auto;
        align-items: center;
        justify-items: center;
        gap: clamp(6px, 1vh, 12px);
        height: 100%;
    }
    .card-title{
        /*margin: 0;*/
        text-align: center;
        justify-self: center;
    }
    .card-image img{
        max-height: 100%;
        max-width: 100%;
        height: auto;
        object-fit: contain;
    }
    .card-footer{
        align-self: end;
        justify-self: stretch;
        margin-top: auto;
    }
    .buy.card .pulse-img{
        position: absolute;
        inset: 50% auto auto 50%;
        transform: translate(-50%, -50%) scale(1.25);
        /*width: 95%;*/
        height: auto;
        max-width: 95%;
        z-index: 0;
    }
    .card-main{ min-height: 0; }
    .card-price{ line-height: 1; }
}

/*@media screen and (min-width: 600px) and (max-width: 1194px)*/
/*and (hover: none) and (pointer: coarse) and (orientation: portrait){*/
/*    @keyframes pulse-portrait-tablet {*/
/*        0%, 100% {*/
/*            transform: scale(1.1);*/
/*        }*/
/*        50% {*/
/*            transform: scale(1.2);*/
/*        }*/
/*    }*/
/*    @keyframes pulse-portrait-tablet1 {*/
/*        0%, 100% {*/
/*            transform: scale(0.8);*/
/*        }*/
/*        50% {*/
/*            transform: scale(0.85);*/
/*        }*/
/*    }*/
/*    .buy.card .pulse-img {*/
/*        animation: pulse-portrait-tablet 4s infinite ease-in-out;*/
/*    }*/
/*    .card.card--regular.cyan .pulse-img {*/
/*        animation: pulse-portrait-tablet1 4s infinite ease-in-out;*/
/*    }*/
/*}*/