:root {
    --bf-footer-h: clamp(40px, 5dvh, 42px);
    --grid-base-height: 420px;
}
#featurebuy-overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    background: transparent !important;
}
#featurebuy-overlay::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(1, 2, 16, 0.45);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    z-index: 0;
}
@media (hover: hover) and (pointer: fine) {
    .card:hover {
        transform: scale(1.02) translateZ(0);
        z-index: 3;
    }
}
.card:focus-visible {
    outline: 2px solid rgba(255,255,255,.9);
    outline-offset: 2px;
    transform: scale(1.02);
    z-index: 3;
}
@media (prefers-reduced-motion: reduce) {
    .card {
        transition: none;
    }
}
/* region Not enough balance */
.card-error-bf {
    font-size: clamp(0.75rem, 1.5vw, 0.9rem);
    font-weight: 600;
    color: #ff6b6b;
    padding-top: 0.5dvh;
    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.5dvh;
    margin: auto;
    z-index: 9999 !important;
    position: relative !important;
    min-height: var(--bf-footer-h);
}
/* endregion */
.card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-family: var(--main-font);
    position: relative;
    border-radius: 16px;
    padding: 16px;
    box-sizing: border-box;
    overflow: hidden;
    z-index: 1;
    transition: transform 150ms ease, box-shadow 150ms ease, z-index 0s;
    will-change: transform;
    transform-origin: center;
    box-shadow: 0 1.6px 1.6px rgba(0, 0, 0, 0.8);
}
.card--regular {
    background:
        radial-gradient(70% 50% at 50% 38%, rgb(0 141 255 / 80%), transparent 60%),
        radial-gradient(70% 60% at 50% 65%, rgb(137 0 255 / 67%), transparent 62%),
        linear-gradient(180deg, #18023e 0%, #0b0620 55%, #070516 100%);
    border-radius: 16px;
    z-index: 1;
}
.card--regular::before{
    content:"";
    position:absolute;
    inset:0;
    border-radius:inherit;
    padding: 2.5px;

    background: linear-gradient(90deg, #00c8ff 0%, #745ad1 25%, #c801d0 50%, #590655 75%, #fe9ce8 100%);
    background-size:200% 100%;
    animation: borderGradientMove 4.5s ease-in-out infinite alternate;

    -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 borderGradientMove{
    from { background-position:   0% 50%; }
    to   { background-position: 300% 50%; }
}
.card::after {
    content: "";
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: -7px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(90deg, rgba(147, 154, 187, 0.00) 0%, #fff 47.5%, rgba(147, 154, 187, 0.00) 97.81%);
    box-shadow: 0 6px 12px rgba(0,0,0,0.35);
    z-index: -1;
}
@property --border-angle {
    syntax: '<angle>';
    initial-value: 90deg;
    inherits: false;
}
@keyframes border-angle-spin {
    0%   { background-position: 0 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0 50%; }
}
.card-image img {
    image-rendering: smooth;
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}
.card-title {
    position: relative;
    font-size: var(--card-title);
    margin: 0 0 4px 0;
    text-transform: uppercase;
    line-height: 1.5;
    letter-spacing: 1px;
    font-weight: 500;
    /*white-space: nowrap;*/
    text-align: center;
    color: #e6f8ff;
    text-shadow:
            0 0 2px rgba(0, 139, 255, 0.9),
            0 0 6px rgba(0, 179, 255, 0.85),
            0 0 14px rgba(0, 179, 255, 0.55),
            0 0 22px rgba(0, 179, 255, 0.35);
}
.card-description {
    font-size: var(--card-description);
    color: white;
    margin: 0;
    font-weight: 500;
    text-align: left;
}
.card-footer {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
}
.card-price {
    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 Footer for Android */
@media (orientation: landscape) {
    .card-content { min-height: 0; }
    .card-main {
        display: grid;
        grid-template-rows: 1fr auto;
        min-height: 0;
        /*align-self: stretch;*/
    }
    .card-text {
        min-height: 0;
        /*overflow: auto;*/
        overscroll-behavior: contain;
    }
    .card-footer {
        width: auto;
        min-height: var(--bf-footer-h);
        gap: 8px;
    }
    .card-price {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .card-check {
        flex: 0 0 auto;
    }
}
/* endregion */
/* region LANDSCAPE */
@media (orientation: landscape) {
    html, body {
        overflow-y: hidden;
        height: 100dvh;
        max-height: 100dvh;
    }
    #featurebuy-overlay {
        background: rgba(1, 2, 16, 0.45);
        backdrop-filter: blur(clamp(5px, 2dvh, 20px));
        align-items: start;
        justify-items: center;
        padding: clamp(1.5%, 2dvh, 3%);
        box-sizing: border-box;
        overflow: hidden;
        opacity: 1;
        transition: opacity 0.3s ease;
        z-index: 1000;
        row-gap: clamp(0.8dvh, 1.5dvh, 2dvh);
        display: grid;
        grid-template-rows: auto 1fr auto;
        grid-template-columns: 1fr;
        grid-template-areas:
          "title"
          "scroll"
          "bet";
    }
    .scroll {
        overflow-x: visible;
    }
    .scroll-track {
        display: none !important;
    }
    .scroll-thumb {
        display: none !important;
    }
    .title-container {
        grid-area: title;
        align-self: start;
        justify-self: center;
        flex: 1;
        text-align: center;
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .scroll-container {
        grid-area: scroll;
        align-self: start;

        width: 100%;
        max-height: 100%;
        display: flex;
        justify-content: center;
        align-items: flex-start;
        transform-origin: top center;
        max-width: clamp(900px, 95vw, 1200px);
        margin: 0 auto;
    }
    .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: 2dvh;
        font-size: clamp(0.7rem, calc(1.5vw + 0.8dvh), 1.1rem) !important;
    }
    .bet-control-wrapper-bf {
        position: unset !important;
    }
    #block-wrapper {
        display: flex;
        align-items: stretch;

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

        overflow-y: hidden;
    }
    .card {
        flex: 0 0 clamp(17rem, 30vw, 22rem);
        margin-bottom: clamp(0.3dvh, 0.8dvh, 1dvh);
        scroll-snap-align: center;
        align-items: center;
        box-sizing: border-box;
    }
    .card-title {
        font-size: clamp(16px, 1.2vw + 1dvh, 20px);
        text-align: center;
        line-height: 1.1;
        display: flex;
        justify-content: center;
        /*margin: 0 0 4px clamp(20px, 3vw, 40px);*/
        /*padding-right: clamp(18px, 2.5vw, 32px);*/
        min-height: clamp(2em, 2.2em, 2.5em);
        align-items: flex-start;
    }
    .card-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5dvh;
        text-align: justify;
        justify-content: space-between;
        flex-grow: 1;
        height: auto;
    }
    .card-main {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        gap: 0.8dvh;
        width: 100%;
        height: auto;
        padding-inline: clamp(0.5vw, 1vw, 1.5vw);
    }
    .card-icon {
        position: absolute;
        top: clamp(8px, 1dvh, 10px);
        left: clamp(8px, 1dvh, 10px);
        width: clamp(18px, 3.2vw, 40px);
        height: clamp(18px, 3.2vw, 40px);
        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: left;
        padding: 0 10px;
        margin-top: 1%;
        line-height: 1.3;
        flex-grow: 1;
        justify-content: center;
        align-items: flex-start;
        display: block;
    }
    .card-image {
        /*max-height: clamp(10vh, 20vh, 25vh);*/
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: visible;
    }
    .card-image img {
        height: clamp(10dvh, 20dvh, 27dvh);
    }
    .card-footer {
        /*width: 100%;*/
        align-items: center;
        padding-top: 0.5dvh;
        padding-left: 10px;
        padding-right: 10px;
        flex-wrap: nowrap;
        margin-top: auto;
    }
    .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 {
        width: 100%;
        height: auto;
        scrollbar-width: none;
    }
    .buy.card .card-image {
        height: clamp(120px, 12dvh, 160px);
        position: relative;
        pointer-events: none;
    }
    .buy.card .hidden-img {
        visibility: hidden;
    }
    .buy.card .pulse-img {
        position: absolute;
        top: clamp(25%, calc(50dvh - 18%), 45%);
        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.6);
        }
        50% {
            transform: translate(-50%, -50%) scale(1.7);
        }
    }
    #featurebuy-overlay .scroll-container {
        transform-origin: top center;
        will-change: transform;
    }
}
@media (orientation: landscape) and (max-height: 620px) {
    .scroll-container {
        grid-area: scroll;
        display: flex;
        justify-content: center;
        align-items: flex-start;
        width: 100%;
        max-height: calc(100dvh - var(--bet-wrapper-height));
        overflow: hidden;
        transform-origin: top center;
    }
    .card {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        border-radius: 16px;
        padding: clamp(6px, 1vw, 12px);
        height: auto;
        max-height: none;
        flex: unset !important;
        width: 100%;
        max-width: 100%;
    }
    .card-description {
        font-size: clamp(0.5rem, calc(1rem + 1vw), 1rem);
    }
    .card-content {
        display: grid;
        grid-template-columns: clamp(110px, 20vw, 140px) 1fr;
        grid-template-rows: auto 1fr auto;
        column-gap: 0.1rem;
        row-gap: 0;
        align-items: start;
        min-height: 0;
    }
    .card-title {
        grid-column: 1 / -1;
        grid-row: 1;
        text-align: center;
        min-height: clamp(1em, 1.5em, 2em);
    }
    .card-image {
        grid-column: 1;
        grid-row: 2;
        align-self: center;
        justify-self: center;
        margin-top: 8px;
    }
    .card-text,
    .card-description {
        color: #FFFFFF;
        grid-column: 2;
        grid-row: 2;
        min-width: 0;
        min-height: 0;
        overflow: auto;
        padding: 0;
        /*margin-top: 5%;*/
        display: flex;
        flex-direction: column;
        justify-content: center;
        height: 100%;
    }
    .card-main {
        grid-template-rows: initial;
        min-height: 0;
        display: contents;
    }
    .card-footer {
        display: contents;
    }
    .card-price {
        grid-column: 1;
        grid-row: 3;
        justify-self: start;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1;
        min-block-size: var(--bf-footer-h);
        align-items: center;
        display: flex;
        transform: translateY(1px);
    }
    .card-check {
        grid-column: 2;
        grid-row: 3;
        justify-self: end;
        align-self: center;
        min-block-size: var(--bf-footer-h);
    }
    .card {
        height: auto;
        padding: 10px 20px;
        width: 100%;
        max-width: clamp(280px, 85vw, 360px);
        position: relative;
        z-index: 0;
    }
}
@media (orientation: landscape) and (max-height: 400px) {
    .card-description {
        font-size: clamp(0.7rem, calc(1rem + 1vw), 0.9rem);
    }
    .scroll-container {
        width: 100% !important;
        max-width: 100% !important;
    }
    #block-wrapper {
        display: grid !important;
        grid-template-columns: 1fr;
        place-items: center;
        gap: clamp(1vw, 2vw, 3vw);
        width: 100%;
    }
    .card {
        width: min(360px, 90%);
        flex: unset !important;
        max-width: 100% !important;
        height: auto;
    }
    .card-content {
        display: grid;
        grid-template-columns: clamp(100px, 16dvw, 110px) 1fr;
        grid-template-rows: auto 1fr auto;
        column-gap: 16px;
        row-gap: 0;
        align-items: start;
        min-height: 0;
    }
    .card-image {
        width: 100%;
        margin-top: -5%;
    }
    #featurebuy-overlay .scroll-container {
        transform: scale(0.80);
        transform-origin: top center;
    }
}
@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) {
    .card-title {
        min-height: clamp(1.6em, 1.8em, 2em);
    }
    .buy.card .card-image {
        height: clamp(25dvh, 35dvh, 35dvh);
    }
    .card-text {
        margin-top: 0;
    }
    #featurebuy-overlay .scroll-container {
        transform: scale(0.70) !important;
        transform-origin: top center;
    }
    .bet-control-wrapper-bf {
        transform: scale(0.65) !important;
        transform-origin: bottom center;
    }
}
@media (orientation: landscape) and (max-height: 200px) {
    #featurebuy-overlay .scroll-container {
        transform: scale(0.5) !important;
        transform-origin: top center;
    }
}
@media (orientation: landscape) and (min-width: 950px) and (max-width: 1199px) {
    .buy.card .pulse-img {
        animation: pulse-1 4s infinite ease-in-out;
    }
    @keyframes pulse-1 {
        0%, 100% {
            transform: translate(-50%, -50%) scale(1.35);
        }
        50% {
            transform: translate(-50%, -50%) scale(1.4);
        }
    }
}
@media (orientation: landscape) and (min-width: 1200px) {
    .buy.card .pulse-img {
        animation: pulse-1 4s infinite ease-in-out;
    }
    @keyframes pulse-1 {
        0%, 100% {
            transform: translate(-50%, -50%) scale(1.35);
        }
        50% {
            transform: translate(-50%, -50%) scale(1.4);
        }
    }
}
/* iPad mini / tablets in landscape */
@media (orientation: landscape) and (max-width: 1100px) {
    /* дозволяємо дітям гріда стискатися */
    .card-content,
    .card-main,
    .card-text,
    .card-description,
    .card-footer {
        min-width: 0;
    }
    .card-content > * { min-width: 0; }

    /* заголовок НЕ повинен бути nowrap на планшеті */
    .card-title{
        white-space: normal;          /* <-- головне */
        overflow: hidden;
        text-overflow: ellipsis;      /* якщо раптом 3 рядки не хочеш */
        line-height: 1.1;
        padding-inline: 10px;         /* щоб не липло до рамки */
        letter-spacing: 0.5px;        /* можна 0, якщо ще тисне */
        text-wrap: balance;           /* якщо підтримується */
    }

    /* щоб текст не розпирало довгими словами */
    .card-text, .card-description{
        overflow-wrap: anywhere;
        word-break: break-word;
    }
}
/* endregion */
/* region PORTRAIT */
@media (orientation: portrait) {
    /* region PORTRAIT Not enough balance */
    :root {
        --bf-footer-h: clamp(40px, 5dvh, 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;
    }
    .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;
    }
    /* endregion */
    #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: 30px;
        max-width: 100%;
    }
    .card {
        height: auto;
        padding: 15px 25px;
        width: 100%;
        max-width: clamp(280px, 85vw, 360px);
        position: relative;
        z-index: 0;
    }
    .card--regular {
        background: radial-gradient(60% 60% at 50% 10%, rgb(0 141 255 / 60%), transparent 60%),
                    radial-gradient(60% 80% at 50% 50%, rgb(137 0 255 / 47%), transparent 62%),
                    linear-gradient(180deg, #12032c 0%, #180d46 55%, #070423 100%);
        height: auto;
    }
    .card-content {
        display: grid;
        height: 100%;
        grid-template-columns: auto 1fr;
        gap: 10px;
        align-items: center;
        flex: 1;
    }
    .card-title {
        position: relative;
    }
    .card-icon {
        position: absolute;
        top: 10px;
        left: 10px;
        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.2dvh, 35px)
    }
    .card-image {
        display: flex;
        align-items: flex-start;
        justify-content: center;
        width: clamp(110px, 18vw, 140px);
        align-self: center;
        box-sizing: border-box;
        position: relative;
        transform: translate3d(0, calc(-18% - ((100% - 300px) / 100 * 0.1)), 0);
    }
    .card-image img {
        max-height: 100%;
        max-width: 100%;
    }
    .card-main {
        display: flex;
        width: 100%;
        flex-wrap: nowrap;
        min-width: 0;
        flex-direction: column;
        justify-content: center;
        gap: 1px;
        position: relative;
        z-index: 1;
    }
    .card-description {
        text-align: start;
        font-size: clamp(0.9rem, 1vw, 1rem);
        height: auto;
        position: relative;
        z-index: 2;
        font-weight: 500;
    }
    .buy.card .hidden-img {
        visibility: hidden;
        width: clamp(100px, 20vw, 140px);
        height: auto;
    }
    .buy.card .pulse-img {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        margin: auto;
        width: 100%;
        max-width: 100%;
        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.3);
        }
        50% {
            transform: scale(1.35);
        }
    }
    .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);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        flex-shrink: 1;
        min-width: 0;
    }
    .scroll-container {
        position: relative;
        width: 100%;
        height: calc(100dvh - 30dvh);
        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: rgba(255, 255, 255, 0.2) 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.2);
        transition: background 0.3s ease;
    }
    .scroll::-webkit-scrollbar-thumb:hover {
        background: rgba(255, 255, 255, 0.2);
    }
    .bet-control-wrapper-bf {
        bottom: 0.3dvh;
    }
    .balance-bf {
        position: unset !important;
        margin-top: 0;
        margin-bottom: 2dvh;
    }
    .card-content{
        display: grid;
        grid-template-columns: clamp(110px, 18vw, 140px) 1fr;
        grid-template-rows: auto minmax(0, 1fr) auto;
        column-gap: 16px;
        row-gap: 0;
        align-items: start;
        min-height: 0;
    }
    .card-title {
        grid-column: 1 / -1;
        grid-row: 1;
        text-align: center;
        margin-bottom: 20px;
    }
    .card-image {
        margin-top: 10px;
        margin-left: 18px;
        grid-column: 1;
        grid-row: 2;
        align-self: end;
        justify-self: center;
        z-index: -2;
    }
    .card-text, .card-description {
        color: white;
        grid-column: 2;
        grid-row: 2;
        min-width: 0;
        min-height: 0;
        overflow-y: auto;
        overflow-x: hidden;

        overscroll-behavior: contain;
        box-sizing: border-box;
        line-height: 1.5;

        block-size: calc(7lh + 2px);
        max-block-size: calc(7lh + 2px);

        display: flex;
        flex-direction: column;
        justify-content: center;
        height: 100%;
        padding-bottom: 10px;
    }
    .card-text,
    .card-description {
        overscroll-behavior-y: none;
        -webkit-overflow-scrolling: auto;
    }

    .card-text > :first-child,
    .card-description > :first-child { margin-top: 0; }

    .card-text > :last-child,
    .card-description > :last-child { margin-bottom: 0; }

    .card-text p,
    .card-description p,
    .card-text ul,
    .card-description ul { margin: 0; }
    .card-main {
        display: contents;
    }
    .card-footer {
        display: contents;
    }
    .card-price {
        grid-column: 1;
        grid-row: 3;
        justify-self: start;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        min-block-size: var(--bf-footer-h);
        align-items: center;
        display: flex;
        transform: translateY(1px);
    }
    .card-check {
        grid-column: 2;
        grid-row: 3;
        justify-self: end;
        align-self: center;
        min-block-size: var(--bf-footer-h);
    }
}
@media (orientation: portrait) and (min-width: 768px) and (max-width: 1199px) {
    .buy.card .pulse-img {
        animation: pulse-portrait1 4s infinite ease-in-out;
    }
    @keyframes pulse-portrait1 {
        0%, 100% {
            transform: scale(1.2);
        }
        50% {
            transform: scale(1.25);
        }
    }
    .card-description {
        font-size: clamp(12px, 1.8vw, 15px);
        margin-top: 1%;
        line-height: 1.5;
    }
    .card-content {
        column-gap: 6px;
    }
    .card-image {
        width: clamp(100px, 18vw, 130px);
    }
    .card-text, .card-description {
        max-height: 120px;
    }
    .card-image {
        margin-left: -8px;
    }
}
@media (orientation: portrait) and (max-width: 375px) {
    .card-text, .card-description {
        color: white;
        grid-column: 2;
        grid-row: 2;
        min-width: 0;
        min-height: 0;
        overflow-y: auto;
        overflow-x: hidden;
        overscroll-behavior: contain;
        box-sizing: border-box;
        line-height: 1.3;
        block-size: calc(6lh + 2px);
        max-block-size: calc(6lh + 2px);
        display: flex;
        flex-direction: column;
        justify-content: start;
        height: 100%;
    }
    .card {
        padding: 10px 15px;
    }
}
/* endregion */
/* region BUTTON "CONFIRM" */
.confirm-btn {
    --w: 76px;
    --h: 40px;

    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-svg {
    width: var(--icon-w);
    height: auto;
    display: block;
    pointer-events: none;
    /* щоб кліки проходили на кнопку */
}
/* endregion */
/* region wheel (principle: stand bottom, wheel spins, pointer top) */
.bf-wheel{
    /* розмір усієї сцени (зроби менше/більше одним числом) */
    --wheel-size: clamp(110px, 13vw, 180px);

    /* позиції шарів */
    --wheel-y: 45%;
    --pointer-y: 8%;
    --stand-y: 88%;

    /* розміри шарів */
    --wheel-w: 120%;
    --pointer-w: 20%;
    --stand-w: 100%;

    position: relative;
    width: var(--wheel-size);
    aspect-ratio: 1 / 1;
    display: grid;
    place-items: center;
    overflow: visible;
}
.bf-wheel > img{
    position: absolute;
    left: 50%;
    height: auto;
    display: block;
    transform: translate(-50%, -50%);
    pointer-events: none;
    user-select: none;
}
.bf-wheel__stand{
    z-index: 1;
    top: var(--stand-y);
    width: var(--stand-w);
}
.bf-wheel__img{
    z-index: 2;
    top: var(--wheel-y);
    width: var(--wheel-w);
    transform-origin: 50% 50%;
    animation: wheelSpin 2.6s linear infinite;
    will-change: transform;
}
.bf-wheel__pointer{
    z-index: 3;
    top: var(--pointer-y);
    width: var(--pointer-w);
    transform-origin: 50% 90%;
}
@keyframes wheelSpin{
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to   { transform: translate(-50%, -50%) rotate(360deg); }
}
/* endregion */
