:root {
    --app-width: 430px;
    --page-bg: #41485c;
    --panel-bg: #282d3d;
    --panel-bg-deep: #222736;
    --panel-bg-dark: #1d2230;
    --line: #31384a;
    --line-soft: rgba(255, 255, 255, .06);
    --green: #16d979;
    --green-strong: #11c66d;
    --green-dark: #0e9a58;
    --text: #ffffff;
    --muted: #8f96ac;
    --muted-2: #a8afbf;
    --shadow: 0 18px 40px rgba(0, 0, 0, .28);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    min-width: 320px;
    overflow-x: hidden;
    background: var(--page-bg);
    color: var(--text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

body.is-strip-hidden .download-strip {
    display: none;
}

button,
input,
a {
    font: inherit;
}

button {
    border: 0;
    color: inherit;
    background: transparent;
}

img {
    display: block;
    max-width: 100%;
}

svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

svg.filled-icon,
svg.nav-filled {
    fill: currentColor;
    stroke: none;
}

.category-glyph {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.page-wrap {
    min-height: 100vh;
}

.app-shell {
    position: relative;
    width: min(100%, var(--app-width));
    min-height: 100vh;
    margin: 0 auto;
    background: var(--panel-bg);
    box-shadow: var(--shadow);
}



.side-menu {
    position: fixed;
    top: 0;
    left: max(0px, calc(50% - (var(--app-width) / 2)));
    bottom: 0;
    z-index: 95;
    width: min(100vw, var(--app-width));
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    color: #bec4d0;
    background: #282d3d;
    box-shadow: 20px 0 48px rgba(0, 0, 0, .42);
    pointer-events: none;
    transform: translateX(-105%);
    transition: transform .26s ease, opacity .2s ease, visibility 0s linear .26s;
    scrollbar-width: none;
}

.side-menu::-webkit-scrollbar {
    display: none;
}

.side-menu-backdrop {
    position: fixed;
    z-index: 90;
    inset: 0;
    visibility: hidden;
    opacity: 0;
    border: 0;
    background: rgba(10, 13, 20, .64);
    cursor: pointer;
    transition: opacity .24s ease, visibility .24s ease;
}

body.menu-open {
    overflow: hidden;
}

body.menu-open .side-menu {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
    transition-delay: 0s;
}

body.menu-open .side-menu-backdrop {
    visibility: visible;
    opacity: 1;
}

.side-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    padding: 0 18px 0 10px;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    background: #202431;
}

.side-menu-head img {
    width: 143px;
    height: auto;
}

.side-menu-head button {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: #333849;
    cursor: pointer;
}

.side-menu-head button svg {
    width: 21px;
    height: 21px;
}

.side-menu-promos {
    padding: 18px 18px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.menu-promo {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    color: #fff;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    font-size: 20px;
    cursor: pointer;
    isolation: isolate;
}

.menu-promo > span:first-child {
    position: relative;
    z-index: 2;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .18);
}

.menu-promo-invite {
    width: 100%;
    height: 68px;
    background-image: url('../images/sidebar/invite-bg.png');
}

.menu-promo-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 13px;
}

.menu-promo-row .menu-promo {
    height: 70px;
}

.menu-promo-offer {
    justify-content: flex-start;
    padding-left: 22px;
    background-image: url('../images/sidebar/offer-bg.png');
}

.menu-promo-share {
    justify-content: flex-start;
    padding-left: 48px;
    background-image: url('../images/sidebar/share-bg.png');
}

.menu-promo-floating {
    position: absolute;
    top: -13px;
    right: 12px;
    z-index: 3;
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, .62);
    border-radius: 10px;
    background: #050505;
    box-shadow: 0 8px 16px rgba(0, 0, 0, .35);
    animation: menu-offer-float 2.1s ease-in-out infinite;
}

.menu-promo-floating img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes menu-offer-float {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50% { transform: translateY(-6px) rotate(2deg); }
}

.side-menu-accordion {
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.side-menu-row {
    display: flex;
    width: 100%;
    height: 79px;
    align-items: center;
    justify-content: space-between;
    padding: 0 31px;
    color: #b9bfcc;
    font-size: 20px;
    cursor: pointer;
}

.side-menu-chevron {
    display: grid;
    width: 20px;
    height: 20px;
    place-items: center;
    transition: transform .2s ease;
}

.side-menu-chevron svg {
    width: 18px;
    height: 18px;
    transform: rotate(90deg);
}

.side-menu-accordion.is-open .side-menu-chevron {
    transform: rotate(180deg);
}

.side-menu-submenu {
    display: none;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0 26px 18px;
}

.side-menu-accordion.is-open .side-menu-submenu {
    display: grid;
}

.side-menu-submenu a,
.side-menu-submenu button {
    display: flex;
    width: 100%;
    min-height: 52px;
    align-items: center;
    gap: 16px;
    padding: 0 4px;
    border: 0;
    border-radius: 0;
    color: #b9bfcc;
    background: transparent;
    text-decoration: none;
    font-size: 15px;
    text-align: left;
    cursor: pointer;
}

.side-menu-category-list img {
    width: 27px;
    height: 27px;
    flex: 0 0 auto;
    object-fit: contain;
    opacity: .82;
}

.side-menu-category-list a:hover,
.side-menu-category-list a:focus-visible,
.side-menu-support-list a:hover,
.side-menu-support-list button:hover,
.side-menu-support-list a:focus-visible,
.side-menu-support-list button:focus-visible {
    color: #fff;
}

.side-menu-option-icon {
    display: grid;
    width: 27px;
    height: 27px;
    place-items: center;
    flex: 0 0 auto;
    color: #aeb5c2;
}

.side-menu-option-icon svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.side-menu-login-options {
    display: grid;
    gap: 18px;
    padding: 25px 31px 26px;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.side-menu-login-options button {
    display: flex;
    align-items: center;
    gap: 17px;
    color: #bdc3d0;
    font-size: 16px;
    cursor: pointer;
}

.quick-login-icon {
    display: grid;
    width: 26px;
    height: 26px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    flex: 0 0 auto;
}

.wallet-login-icon {
    position: relative;
    background: #278cff;
    font-size: 13px;
}

.wallet-login-icon span {
    position: absolute;
    right: 3px;
    bottom: 4px;
    font-size: 7px;
}

.telegram-login-icon {
    background: #18a9e8;
}

.telegram-login-icon svg {
    width: 18px;
    height: 18px;
    fill: #fff;
    stroke: none;
}

.side-menu-language {
    padding: 15px 12px 28px;
}

.language-select-wrap {
    position: relative;
    display: grid;
    width: 100%;
    height: 52px;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 8px;
    color: #bbc1ce;
    background: #303546;
    cursor: pointer;
}

.language-select-wrap select {
    width: 100%;
    height: 100%;
    border: 0;
    outline: 0;
    color: #d5d9e2;
    background: transparent;
    font-size: 15px;
    appearance: none;
    cursor: pointer;
}

.language-select-wrap select option {
    color: #fff;
    background: #303546;
}

.language-icon {
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 50%;
    color: #dbdde4;
    background: #8c919d;
}

.language-chevron {
    display: grid;
    width: 18px;
    height: 18px;
    place-items: center;
}

.language-chevron svg {
    transform: rotate(90deg);
}

.download-strip {
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    align-items: center;
    gap: 6px;
    height: 38px;
    padding: 0 6px 0 4px;
    background: #43d57a;
}

.download-close {
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    color: #0e6d40;
    font-size: 22px;
    cursor: pointer;
}

.download-brand {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    overflow: hidden;
    border-radius: 4px;
    background: #157c4b;
}

.download-brand img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.download-strip p {
    overflow: hidden;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.download-action {
    min-width: 70px;
    height: 24px;
    padding: 0 8px;
    border-radius: 6px;
    color: #fff;
    background: #10be49;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 12px 12px;
    border-bottom: 1px solid var(--line-soft);
    background: var(--panel-bg-deep);
}

.site-logo img {
    width: 136px;
    height: auto;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-btn {
    display: inline-flex;
    min-width: 82px;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    height: 34px;
    padding: 0 18px;
    border-radius: 18px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.header-btn.is-primary {
    color: #fff;
    background: linear-gradient(180deg, #17d777 0%, #12c56b 100%);
}

.header-btn.is-outline {
    border: 1px solid var(--green);
    color: var(--green);
    background: transparent;
}

.header-account {
    display: inline-flex;
    max-width: 170px;
    height: 34px;
    align-items: center;
    overflow: hidden;
    padding: 0 14px;
    border: 1px solid rgba(22, 217, 121, .5);
    border-radius: 18px;
    color: var(--green);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-header.is-dashboard {
    height: 68px;
    padding: 0 9px;
}

.site-header.is-dashboard .site-logo img {
    width: 142px;
}

.dashboard-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dashboard-deposit {
    position: relative;
    display: inline-flex;
    width: 88px;
    height: 39px;
    align-items: center;
    justify-content: center;
    border-radius: 22px;
    color: #fff;
    background: linear-gradient(180deg, #17d877 0%, #10bd66 100%);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
}

.deposit-bonus {
    position: absolute;
    top: -10px;
    right: -6px;
    display: inline-flex;
    min-width: 34px;
    height: 18px;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border-radius: 9px;
    color: #fff;
    background: #ff4771;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
}

.dashboard-balance {
    display: flex;
    width: 86px;
    height: 38px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0 7px;
    border-radius: 20px;
    color: #aeb5c3;
    background: #333849;
    cursor: pointer;
}

.balance-status {
    position: relative;
    display: block;
    width: 16px;
    height: 16px;
    border: 2px solid #ff4d5f;
    border-radius: 50%;
    flex: 0 0 auto;
}

.balance-status::after {
    position: absolute;
    inset: 2px;
    border-radius: 50%;
    background: #11c96d;
    content: "";
}

.balance-amount {
    padding-bottom: 1px;
    border-bottom: 1px solid #ffcb0a;
    color: #ffca05;
    font-size: 14px;
    line-height: 16px;
}

.balance-refresh {
    display: grid;
    width: 18px;
    height: 18px;
    place-items: center;
    color: #a8afbd;
    flex: 0 0 auto;
}

.balance-refresh svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.5;
}

.home-main {
    padding: 12px 12px 96px;
}

.banner-slider {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.banner-track {
    position: relative;
    aspect-ratio: 393 / 128;
    background: #1d2330;
}

.banner-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease;
}

.banner-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.banner-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    z-index: 2;
    display: flex;
    gap: 5px;
    transform: translateX(-50%);
}

.banner-dots button {
    width: 14px;
    height: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .55);
    cursor: pointer;
}

.banner-dots button.is-active {
    width: 22px;
    background: #fff;
}

.notice-row {
    display: block;
    overflow: hidden;
    padding: 10px 2px 8px;
    color: var(--muted-2);
}

.notice-text {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 6px;
    flex: 1 1 auto;
}

.notice-flag {
    flex: 0 0 auto;
    font-size: 12px;
}

.notice-static {
    color: #aeb4c1;
    font-size: 15px;
    line-height: 24px;
    white-space: nowrap;
}

.notice-row.is-dashboard-notice {
    min-height: 46px;
    padding: 8px 3px 7px;
}

.notice-row.is-dashboard-notice .notice-link {
    width: 27px;
    height: 27px;
}

.notice-marquee {
    position: relative;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}

.notice-marquee-text {
    display: inline-block;
    padding-left: 100%;
    padding-right: 24px;
    color: #aeb4c1;
    font-size: 14px;
    line-height: 24px;
    animation: notice 24s linear infinite;
    backface-visibility: hidden;
    will-change: transform;
}

.notice-link {
    display: grid;
    width: 26px;
    height: 26px;
    place-items: center;
    border: 1px solid #d7dce6;
    border-radius: 7px;
    color: #f0f3fa;
    flex: 0 0 auto;
}

@keyframes notice {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(-100%, 0, 0); }
}

.search-row {
    padding-bottom: 10px;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 46px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, .02);
    border-radius: 9px;
    background: #202635;
}

.search-icon {
    width: 30px;
    height: 30px;
    color: #d5d9e5;
    flex: 0 0 auto;
}

.search-box input {
    width: 100%;
    border: 0;
    outline: 0;
    color: #f6f8fd;
    background: transparent;
    font-size: 14px;
}

.search-box input::placeholder {
    color: #777f95;
}

.category-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 62px;
    gap: 16px;
    overflow-x: auto;
    padding: 10px 4px 9px;
    margin: 0 -4px 2px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
}

.category-strip::-webkit-scrollbar {
    display: none;
}

.category-item {
    display: flex;
    min-width: 62px;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    scroll-snap-align: start;
    cursor: pointer;
}

.category-icon {
    position: relative;
    isolation: isolate;
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(70, 214, 157, .06);
    border-radius: 50%;
    color: #12965f;
    background: rgba(28, 78, 68, .88);
    box-shadow: inset 0 0 18px rgba(19, 161, 101, .12), 0 7px 18px rgba(0, 0, 0, .13);
}

.category-icon::before {
    position: absolute;
    inset: -34%;
    z-index: -1;
    border-radius: 50%;
    background:
        radial-gradient(circle at 34% 27%, rgba(35, 205, 137, .48) 0, rgba(20, 135, 96, .31) 31%, rgba(22, 79, 69, .72) 62%, rgba(19, 58, 55, .92) 100%);
    content: "";
    filter: blur(7px);
    transform: scale(1.12);
}

.category-item.is-active .category-icon {
    color: #c8f4df;
    border-color: rgba(190, 255, 226, .14);
    background: #14bd78;
    box-shadow: inset 0 0 18px rgba(255, 255, 255, .12), 0 8px 22px rgba(12, 196, 117, .24);
}

.category-item.is-active .category-icon::before {
    background:
        radial-gradient(circle at 34% 25%, rgba(119, 255, 196, .72) 0, rgba(25, 214, 135, .72) 32%, rgba(13, 175, 107, .9) 68%, rgba(9, 151, 91, 1) 100%);
    filter: blur(5px);
}

.category-icon svg {
    width: 29px;
    height: 29px;
}

.category-icon-image {
    position: relative;
    z-index: 1;
    width: 29px;
    height: 29px;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(44%) sepia(61%) saturate(913%) hue-rotate(112deg) brightness(86%) contrast(93%) drop-shadow(0 2px 3px rgba(0, 0, 0, .22));
    transition: filter .18s ease, transform .18s ease;
}

.category-item.is-active .category-icon-image {
    filter: brightness(0) saturate(100%) invert(94%) sepia(20%) saturate(506%) hue-rotate(91deg) brightness(102%) contrast(91%) drop-shadow(0 2px 3px rgba(0, 0, 0, .2));
    transform: scale(1.03);
}

.category-emoji {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
    font-size: 27px;
    line-height: 1;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .22));
}

.category-icon .category-premium-icon {
    width: 30px;
    height: 30px;
    stroke-width: 1.9;
}

.category-icon .glyph-777 {
    gap: 0;
    margin-top: 1px;
    color: currentColor;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -5px;
    transform: skew(-7deg);
}

.category-icon .glyph-777 i {
    font-style: normal;
    text-shadow: 1px 1px 0 rgba(0, 0, 0, .08);
}

.category-icon .glyph-vs {
    gap: 0;
    font-size: 19px;
    font-weight: 900;
    font-style: italic;
    letter-spacing: -4px;
    transform: skew(-9deg);
}

.category-icon .glyph-vs i {
    font-style: normal;
}

.category-icon .glyph-horse {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 33px;
    transform: translateY(-1px) scaleX(-1);
}

.category-icon .glyph-eight {
    display: grid;
    width: 26px;
    height: 26px;
    place-items: center;
    border-radius: 50%;
    color: #234944;
    background: #12965f;
    font-size: 0;
}

.category-icon .glyph-eight::after {
    display: grid;
    width: 15px;
    height: 15px;
    place-items: center;
    border-radius: 50%;
    color: #12965f;
    background: #234944;
    content: "8";
    font-size: 11px;
    font-weight: 900;
}

.category-item.is-active .category-icon .glyph-eight {
    background: #b9ead5;
}

.category-item.is-active .category-icon .glyph-eight::after {
    color: #b9ead5;
    background: #15b873;
}

.category-label {
    min-height: 18px;
    color: #737787;
    font-size: 14px;
    line-height: 16px;
    text-align: center;
    white-space: normal;
}

.category-item.is-active .category-label {
    color: #15b873;
}

.game-section {
    padding-top: 10px;
    scroll-margin-top: 12px;
    content-visibility: auto;
    contain-intrinsic-size: auto 360px;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 4px 10px 10px;
}

.section-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title-wrap h2 {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: .01em;
}

.section-title-icon {
    display: inline-flex;
    width: 22px;
    height: 22px;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.section-title-icon-image {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .28));
}

.section-head-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.all-pill {
    min-width: 56px;
    height: 26px;
    border: 1px solid #b9bece;
    border-radius: 999px;
    color: #eef1f8;
    font-size: 13px;
}

.icon-arrow {
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    color: #a8afbf;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.dashboard-view .game-grid {
    padding: 0 6px;
}

.dashboard-view .home-main {
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
}

.game-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 7px;
    outline: 0;
    cursor: pointer;
    touch-action: manipulation;
}

.game-card:focus-visible .game-art {
    box-shadow: inset 0 0 0 2px rgba(22, 217, 121, .78);
}

.game-art {
    position: relative;
    aspect-ratio: 1 / 1.34;
    overflow: hidden;
    border-radius: 15px;
    background: linear-gradient(180deg, #36405a 0%, #1d2433 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .03);
    contain: layout paint;
}

.game-art.is-placeholder {
    background:
        radial-gradient(circle at 30% 24%, rgba(255, 255, 255, .14), transparent 28%),
        linear-gradient(180deg, #3c4660 0%, #202636 100%);
}

.game-art > img,
.placeholder-art {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.game-art > img {
    object-fit: cover;
    transform: none;
    transform-origin: center;
    filter: brightness(1.12) contrast(1.06) saturate(1.08);
    image-rendering: auto;
    backface-visibility: hidden;
}

.placeholder-art {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    color: #e9edf7;
    text-align: center;
}

.placeholder-art span {
    display: inline-flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    font-size: 14px;
    font-weight: 800;
}

.placeholder-art small {
    color: #c7cedc;
    font-size: 10px;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.provider-pill {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    max-width: calc(100% - 44px);
    height: 18px;
    padding: 0 6px;
    border-radius: 10px;
    color: #fff;
    background: rgba(22, 25, 35, .82);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.card-badge {
    position: absolute;
    top: 7px;
    right: 7px;
    z-index: 3;
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    border-radius: 50%;
    color: #eceff7;
    background: rgba(202, 206, 218, .66);
    font-size: 11px;
}

.card-badge.is-plus {
    color: #e8fbf0;
    background: rgba(92, 205, 154, .82);
}

.favorite-button {
    position: absolute;
    top: 7px;
    right: 7px;
    z-index: 4;
    display: grid;
    width: 25px;
    height: 25px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 50%;
    color: #f6f7fb;
    background: rgba(37, 42, 55, .72);
    box-shadow: 0 3px 9px rgba(0, 0, 0, .22);
    cursor: pointer;
    touch-action: manipulation;
}

.favorite-button .favorite-heart {
    width: 14px;
    height: 14px;
    fill: transparent;
    stroke: currentColor;
    stroke-width: 2.1;
    transition: fill .16s ease, transform .16s ease;
}

.favorite-button.is-active {
    color: #ff6687;
    border-color: rgba(255, 102, 135, .56);
    background: rgba(48, 30, 43, .84);
}

.favorite-button.is-active .favorite-heart {
    fill: currentColor;
    transform: scale(1.04);
}

.favorite-button.is-loading {
    opacity: .58;
    pointer-events: none;
}

.favorite-button.is-error {
    animation: favorite-error .18s linear 2;
}

@keyframes favorite-error {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(2px); }
}

.game-title {
    display: -webkit-box;
    min-height: 29px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    color: #f5f7fb;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 600;
    text-align: center;
}

.game-empty-state {
    margin: 0 6px 4px;
    padding: 24px 14px;
    border: 1px dashed rgba(255, 255, 255, .09);
    border-radius: 13px;
    color: #8f96aa;
    background: rgba(30, 35, 49, .42);
    font-size: 13px;
    line-height: 1.45;
    text-align: center;
}

.site-footer {
    padding: 16px 12px 6px;
}

.footer-columns {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 22px;
    padding-top: 2px;
}

.footer-column h3,
.license-copy {
    color: #969db0;
    font-size: 12px;
    font-weight: 500;
}

.footer-column ul {
    list-style: none;
    margin-top: 10px;
}

.footer-column li + li {
    margin-top: 8px;
}

.footer-column a {
    color: #dee2ed;
    text-decoration: none;
    font-size: 12px;
}

.footer-bottom {
    display: flex;
    align-items: center;
    gap: 18px;
    padding-top: 34px;
}

.age-badge {
    display: grid;
    width: 56px;
    height: 56px;
    place-items: center;
    border: 4px solid #ffffff;
    border-radius: 50%;
    color: #ff3a56;
    background: #fff;
    font-size: 22px;
    font-weight: 800;
    box-shadow: inset 0 0 0 4px #ff6d82;
}

.age-badge span {
    font-size: 18px;
}

.top-button-wrap {
    display: flex;
    justify-content: center;
    padding: 20px 0 6px;
}

.top-button {
    min-width: 58px;
    height: 24px;
    border: 1px solid var(--green);
    border-radius: 999px;
    color: #f4f8ff;
    background: rgba(16, 23, 33, .32);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.bottom-nav {
    position: fixed;
    left: 50%;
    bottom: 0;
    z-index: 60;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    width: min(100%, var(--app-width));
    height: calc(75px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    border-top: 1px solid rgba(255, 255, 255, .025);
    background: #212430;
    transform: translateX(-50%);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 2px;
    padding-top: 9px;
    color: #f4f4f5;
    text-decoration: none;
    cursor: pointer;
}

.bottom-nav-icon {
    display: grid;
    width: 29px;
    height: 29px;
    place-items: center;
    color: #bdbec1;
}

.bottom-nav-icon svg {
    width: 27px;
    height: 27px;
}

.more-bars {
    display: flex;
    width: 23px;
    height: 23px;
    flex-direction: column;
    justify-content: space-between;
    padding: 2px 0;
}

.more-bars i {
    display: block;
    width: 23px;
    height: 3px;
    border-radius: 3px;
    background: currentColor;
}

.bottom-nav-item span:last-child {
    color: #f3f3f4;
    font-size: 15px;
    line-height: 18px;
}

.bottom-nav-item.is-active,
.bottom-nav-item.is-active .bottom-nav-icon,
.bottom-nav-item.is-active span:last-child {
    color: #0ab76b;
}

.bottom-nav.is-dashboard-nav .bottom-nav-item {
    padding-top: 10px;
}

.bottom-nav.is-dashboard-nav .bottom-nav-icon {
    width: 30px;
    height: 30px;
}

.nav-finance-icon {
    position: relative;
}

.nav-bonus {
    position: absolute;
    top: -8px;
    right: -13px;
    display: inline-flex;
    min-width: 34px;
    height: 17px;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    border-radius: 9px;
    color: #fff !important;
    background: #ff4771;
    font-size: 9px !important;
    font-weight: 800;
    line-height: 1;
}

.is-hidden {
    display: none !important;
}

@media (max-width: 430px) {
    .side-menu {
        left: 0;
    }

    .bottom-nav.is-dashboard-nav {
        height: calc(78px + env(safe-area-inset-bottom));
        padding-bottom: env(safe-area-inset-bottom);
    }
}

@media (max-width: 370px) {
    .header-actions {
        gap: 8px;
    }

    .header-btn {
        min-width: 74px;
        padding: 0 14px;
    }

    .game-grid {
        gap: 12px;
    }

    .footer-columns {
        gap: 16px;
    }
}

@media (min-width: 431px) {
    .app-shell {
        border-left: 1px solid rgba(255, 255, 255, .02);
        border-right: 1px solid rgba(0, 0, 0, .12);
    }
}

.withdraw-request-text {
    max-width: 82px;
    font-size: 12px !important;
    line-height: 13px !important;
    text-align: center;
    white-space: normal;
}

.bottom-nav-item .withdraw-request-text {
    max-width: 76px;
    font-size: 10px !important;
    line-height: 11px !important;
}

.nav-real-icon img {
    width: 34px;
    height: 28px;
    object-fit: contain;
}

.bottom-nav-item > span:last-child {
    max-width: 88px;
    white-space: nowrap;
}

.language-bn {
    font-family: "Noto Sans Bengali", "Hind Siliguri", Inter, system-ui, sans-serif;
}

.dashboard-balance {
    width: 100px;
    gap: 5px;
    padding: 0 7px;
}

.dashboard-balance-flag {
    width: 23px;
    height: 16px;
    border-radius: 3px;
    object-fit: contain;
    flex: 0 0 auto;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .35));
}

.dashboard-balance.is-spinning .balance-refresh svg {
    animation: dashboard-balance-spin .55s linear infinite;
}

.dashboard-balance.is-error .balance-refresh {
    color: #ff5570;
}

@keyframes dashboard-balance-spin {
    to { transform: rotate(360deg); }
}

.bottom-nav .nav-real-icon img {
    width: 31px;
    height: 30px;
    object-fit: contain;
}

@media (max-width: 370px) {
    .site-header.is-dashboard .site-logo img {
        width: 126px;
    }

    .dashboard-header-actions {
        gap: 5px;
    }

    .dashboard-deposit {
        width: 78px;
        font-size: 14px;
    }

    .dashboard-balance {
        width: 94px;
    }
}

/* Part 14: dashboard balance flag alignment and large amount safety */
.dashboard-balance {
    width: auto;
    min-width: 100px;
    max-width: 168px;
    justify-content: flex-start;
}

.dashboard-balance-flag {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    object-fit: contain;
    flex: 0 0 18px;
}

.dashboard-balance .balance-amount {
    min-width: 0;
    max-width: 105px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 0 1 auto;
}

.dashboard-balance .balance-refresh {
    margin-left: auto;
}

@media (max-width: 370px) {
    .dashboard-balance {
        width: auto;
        min-width: 94px;
        max-width: 142px;
        gap: 4px;
        padding-right: 6px;
        padding-left: 6px;
    }

    .dashboard-balance-flag {
        width: 16px;
        height: 16px;
        flex-basis: 16px;
    }

    .dashboard-balance .balance-amount {
        max-width: 82px;
        font-size: 13px;
    }
}

/* Part 16: homepage category All links */
a.all-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}


.site-footer {
    position: relative;
    margin: 24px -12px 0;
    padding: 22px 13px 20px;
    border-top: 1px solid rgba(255, 255, 255, .025);
    background: #252936;
}

.footer-columns {
    grid-template-columns: 1fr 1fr 1.02fr;
    gap: 22px;
    padding-top: 0;
}

.footer-column h3,
.license-copy {
    color: #7f8598;
    font-size: 14px;
    font-weight: 400;
}

.footer-column ul {
    margin-top: 10px;
}

.footer-column li + li {
    margin-top: 9px;
}

.footer-column a {
    color: #bec3cf;
    font-size: 14px;
    line-height: 1.25;
}

.footer-bottom {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 12px;
    padding-top: 36px;
}

.footer-age-icon {
    width: 62px;
    height: 62px;
    object-fit: contain;
}

.footer-bottom-spacer {
    min-width: 0;
}

.top-button-wrap {
    padding: 28px 0 0;
}

.top-button {
    min-width: 61px;
    height: 26px;
    border-color: #0bd87c;
    color: #f7f9ff;
    background: #202532;
    font-size: 11px;
}

.dashboard-floating-promos {
    position: fixed;
    right: max(8px, calc((100vw - var(--app-width)) / 2 + 8px));
    bottom: calc(158px + env(safe-area-inset-bottom));
    z-index: 57;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
    pointer-events: none;
}

.dashboard-floating-promo {
    position: relative;
    display: grid;
    width: 78px;
    height: 78px;
    place-items: center;
    pointer-events: auto;
    animation: dashboardPromoFloat 3.1s ease-in-out infinite;
    transition: opacity .2s ease, transform .2s ease;
}

.dashboard-floating-promo.is-wheel {
    width: 76px;
    height: 76px;
}

.dashboard-floating-promo.is-gift {
    animation-delay: .65s;
}

.dashboard-floating-promo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 9px 9px rgba(0, 0, 0, .28));
    user-select: none;
    -webkit-user-drag: none;
}

.dashboard-floating-close {
    position: absolute;
    top: -3px;
    left: -5px;
    z-index: 2;
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 50%;
    color: #e9edf6;
    background: rgba(24, 27, 35, .94);
    box-shadow: 0 3px 8px rgba(0, 0, 0, .28);
    font-size: 18px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
}

.dashboard-floating-close:focus-visible {
    outline: 2px solid #10d67c;
    outline-offset: 2px;
}

.dashboard-floating-promo.is-closing {
    animation: none;
    opacity: 0;
    transform: translateX(18px) scale(.82);
}

@keyframes dashboardPromoFloat {
    0%, 100% {
        transform: translateY(0) rotate(-1deg);
    }
    50% {
        transform: translateY(-7px) rotate(1deg);
    }
}

@media (max-width: 370px) {
    .footer-columns {
        gap: 10px;
    }

    .footer-column h3,
    .license-copy {
        font-size: 12px;
    }

    .footer-column a {
        font-size: 12px;
    }

    .footer-age-icon {
        width: 56px;
        height: 56px;
    }

    .dashboard-floating-promos {
        right: 6px;
        bottom: calc(154px + env(safe-area-inset-bottom));
        gap: 10px;
    }

    .dashboard-floating-promo,
    .dashboard-floating-promo.is-wheel {
        width: 68px;
        height: 68px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dashboard-floating-promo {
        animation: none;
    }
}

.game-card.is-slide-hidden {
    display: none;
}

.icon-arrow {
    border: 0;
    background: transparent;
    cursor: pointer;
    touch-action: manipulation;
}

.icon-arrow:disabled {
    opacity: .34;
    cursor: default;
}

.icon-arrow svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
