@font-face {
    font-family: 'BagelFatOne';
    src: url('../assets/main/fonts/BagelFatOne-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'BagelFatOne';
    src: url('../assets/main/fonts/BagelFatOne-Regular.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'BagelFatOne';
    src: url('../assets/main/fonts/BagelFatOne-Regular.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'BagelFatOne';
    src: url('../assets/main/fonts/BagelFatOne-Regular.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'NunitoBlack';
    src: url('../assets/main/fonts/NunitoBlack.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'NunitoBlack';
    src: url('../assets/main/fonts/NunitoBlack.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'NunitoBlack';
    src: url('../assets/main/fonts/NunitoBlack.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'NunitoBlack';
    src: url('../assets/main/fonts/NunitoBlack.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'CherryBombOne';
    src: url('../assets/main/fonts/CherryBombOne-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'KosugiMaru';
    src: url('../assets/main/fonts/KosugiMaru-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'NotoSansSC';
    src: url('../assets/main/fonts/NotoSansSC-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'NotoSansTC';
    src: url('../assets/main/fonts/NotoSansTC-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Mitr';
    src: url('../assets/main/fonts/Mitr-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
:root {
    --bf-font-family: 'BagelFatOne', 'NunitoBlack', 'CherryBombOne', 'KosugiMaru', 'Noto Sans', serif;
    --bf-font-family-zh: 'BagelFatOne', 'NotoSansSC', 'Noto Sans', serif;
    --bf-font-family-zh-hant: 'BagelFatOne', 'NotoSansTC', 'Noto Sans', serif;
    --bf-font-family-th: 'BagelFatOne', 'Mitr', 'Noto Sans', sans-serif;
    --bf-footer-h: clamp(40px, 5dvh, 42px);
    --grid-base-height: 420px;
}
html:lang(zh) {
    --bf-font-family: var(--bf-font-family-zh);
}
html:lang(zh-hant) {
    --bf-font-family: var(--bf-font-family-zh-hant);
}
html:lang(th) {
    --bf-font-family: var(--bf-font-family-th);
}
#featurebuy-overlay .title-underline {
    height: 2px;
}
#featurebuy-overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    background: transparent !important;
}
#featurebuy-overlay::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(2, 4, 35, 0.7);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    z-index: 0;
}
#featurebuy-overlay .buy-feature {
    position: relative;
    width: 100%;
    height: 100%;
    background: transparent !important;
    z-index: 1;
}
#featurebuy-overlay .buy-feature::before,
#featurebuy-overlay .buy-feature::after {
    content: none;
}
#featurebuy-overlay #block-wrapper .card-wrapper:has(> .card[hidden]),
#featurebuy-overlay #block-wrapper .card-wrapper:not(:has(> .card)) {
    display: none;
}
@media (hover: hover) and (pointer: fine) {
    .card:hover {
        filter: brightness(1.2);
        /*transform: scale(1.005) 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;
    }
}
.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--booster {
    background: linear-gradient(180deg, #09265a 0%, #4C5278 100%);;
    border-radius: 16px;
    z-index: 1;
}
.card--regular {
    background-color: #4C5278;
    height: auto;
    border-radius: 16px;
    z-index: 1;
    box-shadow: 3px 3px 8px 0 rgb(255 0 0 / 0%) inset, 0 3px 3px 0 rgb(0 0 0 / 64%);
}
.card--regular.blue {
    background: linear-gradient(180deg, #055d84 15%, #4C5278 56%);
    height: auto;
    border-radius: 16px;
    z-index: 1;
    box-shadow: 3px 3px 8px 0 rgb(255 0 0 / 0%) inset, 0 3px 3px 0 rgb(0 0 0 / 64%);
}
.card--regular.dark-blue {
    background: linear-gradient(180deg, #2e3f86 15%, #4C5278 56%);
    height: auto;
    border-radius: 16px;
    z-index: 1;
    box-shadow: 3px 3px 8px 0 rgb(255 0 0 / 0%) inset, 0 3px 3px 0 rgb(0 0 0 / 64%);
}
.card--regular.purple {
    background: linear-gradient(180deg, #573f7b 15%, #4C5278 56%);
    height: auto;
    border-radius: 16px;
    z-index: 1;
    box-shadow: 3px 3px 8px 0 rgb(255 0 0 / 0%) inset, 0 3px 3px 0 rgb(0 0 0 / 64%);
}
.card--regular::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -10px;
    height: 13px;
    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 rgb(0, 0, 0);
    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;
    background: linear-gradient(348deg, #46d9f4 0%, #4b95ac 5%, #145e7f 25%, #0a173b 56%);
    z-index: 1;
}
.card--ultra::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -10px;
    height: 13px;
    background: linear-gradient(90deg, #00cbff 40%, #ffffff 50%, #00cbff 70%);
    box-shadow: 0 6px 12px rgb(0, 0, 0);
    z-index: -1;
}
@property --border-angle {
    syntax: '<angle>';
    initial-value: 90deg;
    inherits: false;
}
.card--booster::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(var(--border-angle), #00fff8 0%, #0097ff 15%, #097397 25%, #04ffea 50%, #21c7f5 75%, #6c5ad1 85%, #c79cfe 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;
}
.card--ultra::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(var(--border-angle), #00fff8 0%, #0097ff 15%, #097397 25%, #a804ff 50%, #21c7f5 75%, #6c5ad1 85%, #c79cfe 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 {
    font-family: var(--bf-font-family);
    position: relative;
    font-size: clamp(12px, 1.6vw + 1.2vh, 16px);
    margin: 0 0 4px 0;
    text-transform: uppercase;
    line-height: 1.5;
    letter-spacing: 1px;
    font-weight: 500;
    white-space: nowrap;
    text-align: center;
}
.card-description {
    /*font-family: var(--bf-font-family);*/
    font-size: var(--card-description);
    color: white;
    margin: 0;
    font-weight: 500;
    text-align: left;
    line-height: 1.15;
}
.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 BOOSTER card bubbles */
.buy.card.card--booster {
    position: relative;
    overflow: hidden;
}
.buy.card.card--booster .card-content {
    position: relative;
    z-index: 1;
}
.buy.card.card--booster .card-bubbles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 2;
}
.buy.card.card--booster .card-bubbles .bubble {
    position: absolute;
    width: var(--size, 18%);
    height: auto;
    transform: translate(-50%, -50%) rotate(var(--rotate, 0deg)) scale(var(--scale, 1));
    transform-origin: 50% 50%;
    opacity: 0.96;
    image-rendering: smooth;
    filter: drop-shadow(0 8px 18px rgba(28, 63, 145, 0.24));
    animation: bubble-drift var(--duration, 9.5s) ease-in-out infinite;
    animation-delay: var(--delay, 0s);
    will-change: transform;
}

.buy.card.card--booster .bubble-1 {
    --size: 7%;
    --scale: 1;
    --rotate: -2deg;
    --duration: 11.4s;
    --delay: -2.8s;
    top: 28%;
    left: 26%;
}
.buy.card.card--booster .bubble-2 {
    --size: 5%;
    --scale: 1;
    --duration: 8.8s;
    --delay: -1.2s;
    top: 20%;
    left: 29%;
}
.buy.card.card--booster .bubble-3 {
    --size: 10%;
    --scale: 1;
    --rotate: 0deg;
    --duration: 10.6s;
    --delay: -4.1s;
    top: 22%;
    left: 75%;
}
.buy.card.card--booster .bubble-4 {
    --size: 3%;
    --scale: 1;
    --rotate: 0deg;
    --duration: 8.2s;
    --delay: -0.6s;
    top: 40%;
    left: 23%;
}
.buy.card.card--booster .bubble-5 {
    --size: 8%;
    --scale: 1;
    --rotate: -6deg;
    --duration: 11.9s;
    --delay: -3.4s;
    top: 56%;
    left: 28%;
}
.buy.card.card--booster .bubble-6 {
    --size: 7%;
    --scale: 1;
    --rotate: 12deg;
    --duration: 9.1s;
    --delay: -1.8s;
    top: 45%;
    left: 75%;
}
.buy.card.card--booster .bubble-7 {
    --size: 8%;
    --scale: 1;
    --rotate: 45deg;
    --duration: 10.8s;
    --delay: -5s;
    top: 56%;
    left: 74%;
}

@keyframes bubble-drift {
    0%, 100% {
        transform: translate(-50%, -50%) translate3d(0, 0, 0) rotate(var(--rotate, 0deg)) scale(var(--scale, 1));
    }
    25% {
        transform: translate(-50%, -50%) translate3d(-3%, -4%, 0) rotate(calc(var(--rotate, 0deg) - 2deg)) scale(calc(var(--scale, 1) * 1.03));
    }
    50% {
        transform: translate(-50%, -50%) translate3d(2%, 2%, 0) rotate(calc(var(--rotate, 0deg) + 1.5deg)) scale(calc(var(--scale, 1) * 0.985));
    }
    75% {
        transform: translate(-50%, -50%) translate3d(-2%, 3%, 0) rotate(calc(var(--rotate, 0deg) - 1deg)) scale(calc(var(--scale, 1) * 1.02));
    }
}
/* endregion */
/* region Card Vertical Layout */
.buy.card {
    height: 100%;
}
#featurebuy-overlay #block-wrapper .card-wrapper {
    align-items: stretch;
}
#featurebuy-overlay #block-wrapper .card-wrapper > .buy.card {
    height: 100%;
}
.buy.card .card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: clamp(10px, 1.6dvh, 18px);
    height: 100%;
    min-height: 100%;
    text-align: center;
}
.buy.card .card-title {
    width: 100%;
    margin-bottom: 0;
    text-align: center;
}
.buy.card .card-image {
    grid-column: auto;
    grid-row: auto;
    align-self: center;
    justify-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
    height: clamp(112px, 10.8dvh, 170px);
    width: min(100%, clamp(132px, 24vw, 192px));
    margin: 0 auto;
    transform: none;
    overflow: visible;
}
.buy.card .hidden-img,
.buy.card .pulse-img {
    width: auto;
    height: 100%;
    max-width: none;
    max-height: 100%;
}
.buy.card .card-multiplier {
    display: block;
    position: absolute;
    z-index: 3;
    width: clamp(35px, 3.5vw, 58px);
    height: auto;
    max-width: none;
    max-height: none;
    pointer-events: none;
    transform-origin: 58% 58%;
    will-change: transform, filter;
    animation: multiplier-bounce 2.4s ease-in-out infinite;
    filter: brightness(1);
}
.buy.card .card-multiplier--single {
    top: 50%;
    right: 10%;
}
@keyframes multiplier-bounce {
    0%, 70%, 100% {
        transform: scale(1);
        filter: brightness(1);
    }
    76% {
        transform: scaleX(1.055) scaleY(0.94);
        filter: brightness(1.18);
    }
    82% {
        transform: scaleX(0.96) scaleY(1.065);
        filter: brightness(1.08);
    }
    88% {
        transform: scaleX(1.025) scaleY(0.985);
        filter: brightness(1.03);
    }
    94% {
        transform: scale(1);
        filter: brightness(1);
    }
}
.buy.card .card-image--feature-2,
.buy.card .card-image--feature-3,
.buy.card .card-image--feature-4,
.buy.card .card-image--feature-5 {
    width: min(100%, clamp(232px, 36vw, 292px));
}
.buy.card .card-main {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-width: 0;
    min-height: 0;
    gap: clamp(4px, 1.2dvh, 8px);
}
.buy.card .card-text,
.buy.card .card-description {
    grid-column: auto;
    grid-row: auto;
    width: 100%;
    min-width: 0;
    min-height: 0;
    max-width: 100%;
    max-height: none;
    block-size: auto;
    max-block-size: none;
    overflow: visible;
    margin: 0;
    padding: 0;
    text-align: center;
}
.buy.card .card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: auto;
    gap: 8px;
}
.buy.card .card-price,
.buy.card .card-check {
    grid-column: auto;
    grid-row: auto;
    justify-self: auto;
}
.buy.card .card-error-bf {
    width: 100%;
    text-align: center;
}
/* 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: 25px;
    padding-bottom: 30px;
    max-width: 100%;
}
#block-wrapper .card-wrapper {
    display: flex;
    width: 100%;
    max-width: clamp(280px, 85vw, 360px);
}
#block-wrapper .card-wrapper > .card {
    width: 100%;
    max-width: 100%;
}
.card {
    height: auto;
    padding: 10px 15px;
    width: 100%;
    max-width: clamp(280px, 85vw, 360px);
    position: relative;
    z-index: 0;
}
.card--ultra {
    height: auto;
    z-index: 2;
}
.card--booster {
    height: auto;
}
.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.9rem, 1.5vw, 1.2rem);
    height: auto;
    position: relative;
    z-index: 2;
    font-weight: 500;
    line-height: 1.08;
}
.buy.card .hidden-img {
    visibility: hidden;
    width: clamp(120px, 22vw, 160px);
    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.1);
    }
    50% {
        transform: scale(1.15);
    }
}
.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::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
    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: 46px;
    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.08;
    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);
}
@media (orientation: portrait) {
    .scroll {
        height: 100%;
        overflow-y: auto;
        overflow-x: hidden;
        box-sizing: border-box;
        padding-right: 0;
        scrollbar-width: none;
        scrollbar-color: transparent transparent;
        -ms-overflow-style: none;
        -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;
    }
}
/* 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 LANDSCAPE */
@media (orientation: landscape) {
    #featurebuy-overlay .buy-feature {
        --bf-landscape-card-width: clamp(280px, 24vw, 340px);
        --bf-landscape-card-height: clamp(184px, 50dvh, 236px);
        --bf-landscape-booster-height: calc(var(--bf-landscape-card-height) + clamp(30px, 4.8dvh, 52px));
        --bf-landscape-card-pad-x: clamp(14px, 1.5vw, 20px);
        --bf-landscape-card-pad-y: clamp(10px, 1.4dvh, 14px);
        --bf-landscape-content-gap: clamp(8px, 1.2dvh, 14px);
        --bf-landscape-main-gap: clamp(4px, 0.9dvh, 8px);
        --bf-landscape-image-height: clamp(84px, 13dvh, 112px);
        --bf-landscape-image-width: min(100%, clamp(118px, 18vw, 164px));
        --bf-landscape-feature-image-width: min(100%, clamp(168px, 26vw, 210px));
        align-items: start;
        justify-items: center;
        padding: clamp(1.5%, 2dvh, 3%);
        box-sizing: border-box;
        overflow: hidden;
        row-gap: clamp(0px, calc(5dvh - 20px), 12px);
        display: grid;
        grid-template-rows: auto minmax(0, 1fr) auto auto;
        grid-template-columns: 1fr;
        grid-template-areas:
          "title"
          "scroll"
          "pagination"
          "bet";
    }
    .title-container {
        grid-area: title;
        align-self: start;
        justify-self: center;
        width: 100%;
    }
    .scroll {
        flex: 1 1 auto;
        height: auto;
        min-width: 0;
        overflow-x: visible;
    }
    #featurebuy-overlay .scroll-container,
    #featurebuy-overlay .scroll,
    #featurebuy-overlay .scroll *,
    #featurebuy-overlay #block-wrapper,
    #featurebuy-overlay #block-wrapper * {
        touch-action: manipulation;
    }
    #featurebuy-overlay #block-wrapper {
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
    }
    #featurebuy-overlay .scroll,
    #featurebuy-overlay #block-wrapper {
        -webkit-overflow-scrolling: touch;
    }
    #featurebuy-overlay .scroll-arrow {
        display: flex;
        align-items: center;
        justify-content: center;
        align-self: center;
        flex: 0 0 auto;
        width: clamp(40px, 4.2vw, 54px);
        height: clamp(40px, 4.2vw, 54px);
        border-radius: 999px;
        z-index: 3;
        transition: opacity 0.2s ease, transform 0.2s ease;
    }
    #featurebuy-overlay .scroll-arrow.left {
        margin-right: clamp(8px, 1vw, 14px);
    }
    #featurebuy-overlay .scroll-arrow.right {
        margin-left: clamp(8px, 1vw, 14px);
    }
    #featurebuy-overlay .scroll-arrow img {
        width: clamp(16px, 1.5vw, 22px);
        height: auto;
        display: block;
    }
    #featurebuy-overlay .scroll-arrow.disabled {
        opacity: 0.35;
        pointer-events: none;
    }
    .scroll-track {
        display: none !important;
    }
    .scroll-thumb {
        display: none !important;
    }
    .scroll-container {
        grid-area: scroll;
        align-self: start;
        width: 100%;
        height: auto;
        min-height: 0;
        max-height: none;
        display: flex;
        justify-content: center;
        align-items: flex-start;
        transform-origin: top center;
        max-width: clamp(900px, 95vw, 1200px);
        margin: 0 auto;
        overflow: auto;
    }
    #featurebuy-overlay .pagination-bf {
        grid-area: pagination;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-height: 16px;
        padding: 4px 10px;
        z-index: 2;
        transform: translateY(36px);
    }
    #featurebuy-overlay .pagination-bf .dot {
        display: block;
        flex: 0 0 6px;
    }
    .bet-control-wrapper-bf {
        grid-area: bet;
        align-self: start;
        justify-self: center;
        width: 100%;
        position: unset !important;
    }
    #featurebuy-overlay #block-wrapper {
        display: flex;
        flex-direction: row;
        align-items: stretch;
        justify-content: flex-start;
        gap:8px;
        padding-top: 5px;
        padding-bottom: 5px;
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    #featurebuy-overlay #block-wrapper::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }
    #featurebuy-overlay #block-wrapper .card-wrapper {
        flex: 0 0 auto;
    }
    #featurebuy-overlay .buy.card .card-description {
        display: block;
        margin-top: -10px;
        line-height: 1;
        font-size: clamp(12px, 1.2vw, 14px);
    }
    #block-wrapper .card-wrapper {
        display: flex;
        width: 100%;
        max-width: clamp(240px, 85vw, 258px);
    }
    .buy.card.card--ultra .card-image--feature-2 {
        width: min(100%, clamp(190px, 30vw, 240px));
        flex-grow: 1;
    }
    .buy.card .card-image--feature-3,
    .buy.card .card-image--feature-5 {
        position: relative;
        top: 10px;
    }
}
@media (orientation: landscape) and (max-height: 400px) {
    #featurebuy-overlay #block-wrapper {
        gap: 12px;
        padding-top: 0;
        padding-bottom: 2px;
    }
    #block-wrapper .card-wrapper {
        max-width: clamp(265px, 30vw, 272px);
    }
    .card {
        max-width: clamp(236px, 30vw, 272px);
        padding: 8px 12px;
    }
    .card-content {
        gap: 10px;
    }
    .card-title {
        margin-bottom: 10px;
        font-size: clamp(13px, 1vw + 1dvh, 18px);
        width: 100%;
        margin-inline: auto;
        text-align: center;
        white-space: normal;
        line-height: 1;
    }
    .buy.card .card-image {
        height: clamp(72px, 18dvh, 96px);
        margin-top: 0;
        margin-inline: auto;
    }
    .card-text,
    .card-description {
        block-size: calc(4.5lh + 2px);
        max-block-size: calc(4.5lh + 2px);
        font-size: clamp(0.76rem, 1vw + 0.3dvh, 0.95rem);
    }
    .card-description {
        display: block;
        margin-top: -26px;
        line-height: 1;
    }
    #featurebuy-overlay .buy.card .card-description {
        font-size: 10px;
    }
    .card-price {
        font-size: clamp(0.64rem, 1.75vw, 0.90rem);
    }
    #featurebuy-overlay .card-footer {
        display: flex;
        width: 100%;

        align-items: center;
        justify-content: space-between;

        gap: 4px;

        grid-column: 1 / -1;
        grid-row: 3;
    }

    #featurebuy-overlay .card-price {
        flex: 1 1 auto;
        min-width: 0;
    }
    #featurebuy-overlay .card-check {
        width: 61px;
        height: 32px;

        min-width: 61px;
        min-block-size: 0;

        flex: 0 0 61px;

        display: flex;
        align-items: center;
        justify-content: center;

        grid-column: auto;
        grid-row: auto;
    }

    #featurebuy-overlay .confirm-btn {
        transform: scale(0.80) !important;
        -webkit-transform: scale(0.80) !important;

        transform-origin: center center;
        -webkit-transform-origin: center center;
    }
    #featurebuy-overlay .pagination-bf {
        transform: translateY(37px);
    }
    #featurebuy-overlay #block-wrapper {
        transform: scale(0.9);
        transform-origin: top center;
    }
    #featurebuy-overlay .scroll-arrow {
        align-self: flex-start;

        margin-top: calc(
            (var(--bf-landscape-card-height) * 0.7 - clamp(40px, 4.2vw, 54px)) / 2
            + clamp(8px, 1.5dvh, 68px)
        );
    }
    .bet-control-wrapper-bf {
        transform: scale(0.65) !important;
        transform-origin: bottom center;
    }
    .buy.card.card--ultra .card-image--feature-2 {
        height: 60px;
        margin-top: -10px;
    }
}
@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;
    }

    .card-price {
        font-size: clamp(0.62rem, 1.7vw, 0.88rem);
    }

    #featurebuy-overlay .card-check {
        width: 59px;
        height: 31px;

        min-width: 59px;
        min-block-size: 0;

        flex: 0 0 59px;

        display: flex;
        align-items: center;
        justify-content: center;
    }

    #featurebuy-overlay .confirm-btn {
        transform: scale(0.78) !important;
        -webkit-transform: scale(0.78) !important;

        transform-origin: center center;
        -webkit-transform-origin: center center;
    }

    #featurebuy-overlay .scroll-container {
        transform: scale(0.70) !important;
        transform-origin: top center;
    }

    .bet-control-wrapper-bf {
        transform: scale(0.5) !important;
        transform-origin: bottom center;
    }

    #featurebuy-overlay .pagination-bf {
        transform: translateY(55px);
    }
}
@media (orientation: landscape) and (max-height: 200px) {

    .card-price {
        font-size: clamp(0.56rem, 1.5vw, 0.80rem);
    }

    #featurebuy-overlay .card-check {
        width: 55px;
        height: 29px;

        min-width: 55px;
        min-block-size: 0;

        flex: 0 0 55px;

        display: flex;
        align-items: center;
        justify-content: center;
    }

    #featurebuy-overlay .confirm-btn {
        transform: scale(0.72) !important;
        -webkit-transform: scale(0.72) !important;

        transform-origin: center center;
        -webkit-transform-origin: center center;
    }

    #featurebuy-overlay .scroll-container {
        transform: scale(0.5) !important;
        transform-origin: top center;
    }
}
@media (orientation: landscape) and (min-width: 768px) and (min-height: 500px) {
    #featurebuy-overlay .pagination-bf {
        transform: none;
    }
}
@media (orientation: landscape) {
    #featurebuy-overlay .scroll {
        flex: 1 1 auto;
        min-width: 0;
        width: 100%;
        overflow: hidden;
    }
    #featurebuy-overlay #block-wrapper {
        --card-gap: clamp(8px, 1vw, 16px);
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        gap: var(--card-gap);

        width: 100%;
        max-width: none;
        overflow-x: auto;
        overflow-y: hidden;
        box-sizing: border-box;

        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    #featurebuy-overlay #block-wrapper::-webkit-scrollbar {
        display: none;
    }
    #featurebuy-overlay #block-wrapper .card-wrapper {
        flex: 0 0 calc((100% - (var(--card-gap) * 2)) / 3);
        width: calc((100% - (var(--card-gap) * 2)) / 3);
        max-width: none;
        min-width: 0;
    }
    #featurebuy-overlay #block-wrapper .card-wrapper > .card {
        width: 100%;
        max-width: none;
        min-width: 0;
    }
}
@media (orientation: landscape) and (max-height: 300px) {
    .buy.card .card-image--feature-3,
    .buy.card .card-image--feature-5 {
        top: 8px;
    }
}
/* endregion */
