@font-face {
    font-family: 'Silvanowestern';
    src: url('../assets/main/fonts/Silvanowestern.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
:root {
    --bf-footer-h: clamp(40px, 5dvh, 42px);
    --grid-base-height: 420px;
}
#featurebuy-overlay {
    position: fixed;
    inset: 0;
    /*top: 0;*/
    /*left: 0;*/
    /*width: 100%;*/
    /*height: 100dvh;*/
    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: linear-gradient(180deg, #1a2759 0%, #4C5278 100%);;
    border-radius: 16px;
    z-index: 1;
}
.card::after {
    content: "";
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: -9px;
    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 {
    position: relative;
    /*overflow: visible;*/
    background: linear-gradient(348deg, #f4bc46 0%, #ac614b 5%, #723242 25%, #3b0a28 56%);
    z-index: 1;
}
.card--ultra::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -10px;
    height: 13px;
    background: linear-gradient(90deg, #ffae00 40%, #ffffff 50%, #ffae00 70%);
    box-shadow: 0 6px 12px rgb(0, 0, 0);
    z-index: -1;
}
@property --border-angle {
    syntax: '<angle>';
    initial-value: 90deg;
    inherits: false;
}
.card--ultra::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(var(--border-angle),
    #feee9c 0%,
    #d1845a 15%,
    #970909 25%,
    #590606 50%,
    #970909 75%,
    #d1845a 85%,
    #feee9c 100%);
    background-size: 200% 100%;
    animation: border-angle-spin 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;
    z-index: 0;
}
@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;
    background: linear-gradient(to bottom, #fff490 30%, #ff6500 70%, #fff490 30%, #a94606 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    -webkit-text-stroke: 1px #ffcf26a8;
    text-stroke: 1px #ffcf26a8;
    filter: drop-shadow(0px 1px 1px rgba(41, 41, 43, 0.85)) drop-shadow(0px 0px 2px rgba(37, 34, 34, 0.78)) drop-shadow(0px 1px 2px rgba(19, 16, 16, 0.7));
    text-shadow: none !important;
}
.card-title::before {
    content: attr(data-text);
    position: absolute;
    top: 1px;
    z-index: -1;
    -webkit-text-stroke: 3px #5d2200;
    color: transparent;
}
.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;
        background-image: linear-gradient(
                180deg,
                #fffbd1 0%,
                #ffd24a 35%,
                #ff7a00 70%,
                #b64000 100%
        );
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;

        background-repeat: no-repeat;
        background-size: 100% 1em;
        background-position: 50% 0.1em;

        -webkit-text-stroke: 1px #ffcf26a8;
        text-stroke: 1px #ffcf26a8;
    }

    .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 1.5%;
        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;
        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: 3%;
    }
    .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.5rem, calc(1rem + 1vw), 0.85rem);
    }
    .scroll-container {
        width: 100% !important;
        max-width: 100% !important;
    }
    #block-wrapper {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: clamp(1vw, 2vw, 3vw);
        width: 100%;
    }
    .card {
        flex: unset !important;
        width: 100% !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: 8px;
        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;
    }
}
/* 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: 10px 15px;
        width: 100%;
        max-width: clamp(280px, 85vw, 360px);
        position: relative;
        z-index: 0;
    }
    .card-title::before {
        content: attr(data-text);
        position: absolute;
        top: 1px;
        z-index: -1;
        -webkit-text-stroke: 3px #5d2200;
        color: transparent;
    }
    .card--ultra {
        height: auto;
        max-height: calc(100dvh - clamp(22dvh, 27dvh, 33dvh));
        z-index: 2;
    }
    .card--regular {
        height: auto;
    }
    .card-content {
        display: grid;
        height: 100%;
        grid-template-columns: auto 1fr;
        gap: 16px;
        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.8rem, 1.5vw, 1rem);
        height: auto;
        position: relative;
        z-index: 2;
        font-weight: 500;
        line-height: 1.2;
    }
    .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: 26px;
        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;
        /*max-height: calc(6lh + 8px);*/
        min-width: 0;
        min-height: 0;
        overflow-y: auto;
        overflow-x: hidden;

        overscroll-behavior: contain;
        padding-bottom: 2px;
        box-sizing: border-box;
        line-height: 1.1;

        block-size: calc(6lh + 2px);
        max-block-size: calc(6lh + 2px);
    }
    .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);
    }
}
/* 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 REGULAR Card Decor */
.card-corner-decor {
    position: absolute;
    top: -3%;
    right: -3%;
    width: 15%;
    pointer-events: none;
    z-index: 100;
}
.card-necklace {
    display: block;
    width: 100%;
    height: auto;
}
.card-feather {
    position: absolute;
    left: 40%;
    top: 85%;
    width: 40%;
    transform-origin: 50% 0;
    animation: feather-sway 4s ease-in-out infinite;
}
@keyframes feather-sway {
    0%   { transform: rotate(-3deg) translateY(0); }
    50%  { transform: rotate(3deg) translateY(2px); }
    100% { transform: rotate(-3deg) translateY(0); }
}
/* endregion */
/* region ULTRA Card Particles */
.buy.card.card--ultra .particles {
    position:absolute;
    inset:0;
    pointer-events:none;
    z-index: -100;
    mix-blend-mode: screen;
}
.buy.card.card--ultra .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: 0.5;

    animation: blinkHard var(--blink,4s) ease-in-out infinite;
}
@media (orientation: portrait) {
    .bf-particles1{
        --w: 55%; --x: 6%;  --y: 10%; --tx: 0; --ty: 0; --s: 1;
        --blink: 3.6s;
        animation-delay: .0s;
    }
    .bf-particles2 {
        --w: 60%;
        --x: -5%;
        --y: -2%;
        --s: 0.85;
        --blink: 4.8s;
        animation-delay: .35s;
    }
    .bf-particles3{
        --w: 70%; --x: 18%; --y: 52%; --s: .95;
        --blink: 5.6s;
        animation-delay: .9s;
    }
}
@media (orientation: landscape) {
    .bf-particles1{
        --w: 55%; --x: 6%;  --y: 10%; --tx: 0; --ty: 0; --s: 1;
        --blink: 3.6s;
        animation-delay: .0s;
    }
    .bf-particles2 {
        --w: 60%;
        --x: -5%;
        --y: -2%;
        --s: 0.85;
        --blink: 4.8s;
        animation-delay: .35s;
    }
    .bf-particles3{
        --w: 70%; --x: 18%; --y: 52%; --s: .95;
        --blink: 5.6s;
        animation-delay: .9s;
    }
}
@media (orientation: landscape) and (min-height: 620px) {
    .bf-particles1{
        --w: 55%; --x: 6%;  --y: 10%; --tx: 0; --ty: 0; --s: 1;
        --blink: 3.6s;
        animation-delay: .0s;
    }
    .bf-particles2 {
        --w: 60%;
        --x: 20%;
        --y: 6%;
        --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;
    }
}
/* endregion */
@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);
        }
    }
}
@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;
    }
}
/* region REGULAR card stars */
.buy.card.card--regular {
    position: relative; /* на всякий випадок, щоб inset працював гарантовано */
    overflow: hidden;
}
/* шар зі зірочками поверх фону, але під контентом */
.buy.card.card--regular .card-stars {
    position: absolute;
    inset: 0;
    pointer-events: none;
    mix-blend-mode: screen;
    z-index: -1; /* за текстом / картинкою */
}
/* базовий стиль однієї зірки */
.buy.card.card--regular .card-stars .star {
    position: absolute;
    width: var(--size, 20%);
    height: auto;
    transform: translate(-50%, -50%) scale(var(--scale, 1));
    opacity: 0.8;
    image-rendering: smooth;
    animation: star-twinkle var(--duration, 3.5s) ease-in-out infinite;
    animation-delay: var(--delay, 0s);
}
/* конкретні позиції/розміри зірок */
@media (orientation: portrait) {
    .buy.card.card--regular .star-1 {
        --size: 12%;
        --scale: 1;
        --duration: 3.6s;
        --delay: 0s;
        top: 18%;
        left: 14%;
    }
    .buy.card.card--regular .star-2 {
        --size: 10%;
        --scale: 0.8;
        --duration: 4.2s;
        --delay: 0.5s;
        top: 32%;
        left: 40%;
    }
    .buy.card.card--regular .star-3 {
        --size: 18%;
        --scale: 0.9;
        --duration: 5s;
        --delay: 1s;
        top: 70%;
        left: 15%;
    }
    .buy.card.card--regular .star-4 {
        --size: 22%;
        --scale: 0.7;
        --duration: 4.8s;
        --delay: 1.7s;
        top: 10%;
        left: 80%;
    }
    .buy.card.card--regular .star-5 {
        --size: 14%;
        --scale: 0.6;
        --duration: 3.2s;
        --delay: 2.1s;
        top: 30%;
        left: 5%;
    }
}
@media (orientation: landscape) {
    .buy.card.card--regular .star-1 {
        --size: 12%;
        --scale: 1;
        --duration: 3.6s;
        --delay: 0s;
        top: 18%;
        left: 14%;
    }
    .buy.card.card--regular .star-2 {
        --size: 10%;
        --scale: 0.8;
        --duration: 4.2s;
        --delay: 0.5s;
        top: 32%;
        left: 82%;
    }
    .buy.card.card--regular .star-3 {
        --size: 18%;
        --scale: 0.9;
        --duration: 5s;
        --delay: 1s;
        top: 27%;
        left: 15%;
    }
    .buy.card.card--regular .star-4 {
        --size: 22%;
        --scale: 0.7;
        --duration: 4.8s;
        --delay: 1.7s;
        top: 20%;
        left: 80%;
    }
    .buy.card.card--regular .star-5 {
        --size: 14%;
        --scale: 0.6;
        --duration: 3.2s;
        --delay: 2.1s;
        top: 30%;
        left: 5%;
    }
}
@media (orientation: landscape) and (max-height: 620px) {
    .buy.card.card--regular .star-1 {
        --size: 12%;
        --scale: 1;
        --duration: 3.6s;
        --delay: 0s;
        top: 18%;
        left: 14%;
    }
    .buy.card.card--regular .star-2 {
        --size: 10%;
        --scale: 0.8;
        --duration: 4.2s;
        --delay: 0.5s;
        top: 32%;
        left: 40%;
    }
    .buy.card.card--regular .star-3 {
        --size: 18%;
        --scale: 0.9;
        --duration: 5s;
        --delay: 1s;
        top: 70%;
        left: 15%;
    }
    .buy.card.card--regular .star-4 {
        --size: 22%;
        --scale: 0.7;
        --duration: 4.8s;
        --delay: 1.7s;
        top: 10%;
        left: 80%;
    }
    .buy.card.card--regular .star-5 {
        --size: 14%;
        --scale: 0.6;
        --duration: 3.2s;
        --delay: 2.1s;
        top: 30%;
        left: 5%;
    }
}
/* анімація мерехтіння + трохи "дихання" по масштабу */
@keyframes star-twinkle {
    0%, 100% {
        opacity: 0.1;
        transform: translate(-50%, -50%) scale(calc(var(--scale) * 0.9));
    }
    20% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(calc(var(--scale) * 1.05));
    }
    40% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(calc(var(--scale) * 1.15));
    }
    60% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(calc(var(--scale) * 1));
    }
    80% {
        opacity: 0.9;
        transform: translate(-50%, -50%) scale(calc(var(--scale) * 1.1));
    }
}
/* endregion */
