#site-top-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    z-index: 2147483646;
    pointer-events: none;
    background: linear-gradient(90deg, #2563EB, #38BDF8, #60A5FA);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.55);
    opacity: 0;
    transition: width 0.28s ease, opacity 0.2s ease;
}

#site-top-progress.is-on {
    opacity: 1;
}

.nav-floating-btn-hide {
    opacity: 0;
    pointer-events: none;
}

.layout-bc .nav-floating-btn,
.header-bc .center-bottom-btn > .nav-floating-btn,
.header-bc .center-bottom-btn > button.nav-floating-btn,
body > .center-bottom-btn > .nav-floating-btn,
body > .center-bottom-btn > button.nav-floating-btn {
    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;
    min-height: 46px !important;
    max-width: 46px !important;
    max-height: 46px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    font-size: 15px !important;
    background: rgba(255, 255, 255, 0.14) !important;
    border: 1px solid rgba(255, 255, 255, 0.38) !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
    backdrop-filter: blur(14px) saturate(1.4) !important;
    -webkit-backdrop-filter: blur(14px) saturate(1.4) !important;
    color: rgba(255, 255, 255, 0.92) !important;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.92) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45) !important;
    transition: opacity 0.22s ease, transform 0.22s ease, background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease !important;
}

.header-bc .center-bottom-btn,
.layout-bc .center-bottom-btn,
body > .center-bottom-btn {
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 110px !important;
    top: auto !important;
    width: 100% !important;
    height: 0 !important;
    margin: 0 !important;
    z-index: 2147483000 !important;
    pointer-events: none !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    transform: none !important;
    overflow: visible !important;
}

.header-bc .center-bottom-btn.nav-floating-btn-hide,
.layout-bc .center-bottom-btn.nav-floating-btn-hide,
body > .center-bottom-btn.nav-floating-btn-hide {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.header-bc .center-bottom-btn > .nav-floating-btn,
.header-bc .center-bottom-btn > button.nav-floating-btn,
body > .center-bottom-btn > .nav-floating-btn,
body > .center-bottom-btn > button.nav-floating-btn {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    top: auto !important;
    margin: 0 !important;
    pointer-events: auto !important;
    z-index: 2147483001 !important;
}

.layout-bc .nav-floating-btn::before,
.header-bc .center-bottom-btn > .nav-floating-btn::before,
body > .center-bottom-btn > .nav-floating-btn::before,
html.is-mobile .header-bc .center-bottom-btn > .nav-floating-btn::before,
html.is-web body > .center-bottom-btn > .nav-floating-btn::before,
html.is-web body > .center-bottom-btn > button.nav-floating-btn::before {
    color: rgba(255, 255, 255, 0.95) !important;
    -webkit-text-fill-color: rgba(255, 255, 255, 0.95) !important;
    opacity: 1 !important;
    font-size: 15px !important;
    text-shadow: 0 0 1px rgba(0, 0, 0, 0.75), 0 1px 2px rgba(0, 0, 0, 0.45) !important;
}

.layout-bc .nav-floating-btn.nav-floating-btn--flash,
.header-bc .center-bottom-btn > .nav-floating-btn.nav-floating-btn--flash,
body > .center-bottom-btn > .nav-floating-btn.nav-floating-btn--flash,
html.is-mobile .nav-floating-btn.nav-floating-btn--flash,
html.is-web body > .center-bottom-btn > .nav-floating-btn.nav-floating-btn--flash {
    animation: nav-floating-pink-pulse 0.55s ease-out 1 !important;
}

@keyframes nav-floating-pink-pulse {
    0% {
        background: rgba(255, 255, 255, 0.14) !important;
        border-color: rgba(255, 255, 255, 0.38) !important;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
    }
    35% {
        background: rgba(214, 4, 111, 0.38) !important;
        border-color: rgba(214, 4, 111, 0.65) !important;
        box-shadow: 0 0 0 3px rgba(214, 4, 111, 0.22), 0 8px 22px rgba(214, 4, 111, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
    }
    100% {
        background: rgba(255, 255, 255, 0.14) !important;
        border-color: rgba(255, 255, 255, 0.38) !important;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nav-floating-btn.nav-floating-btn--flash {
        animation: none !important;
        background: rgba(214, 4, 111, 0.28) !important;
    }
}

@media (min-width: 1025px) {
    .casino-game-item-content,
    .casinoGameItemContent,
    .product-banner-bc {
        transition: transform 0.28s ease, box-shadow 0.28s ease, filter 0.28s ease;
        will-change: transform;
    }

    .casino-game-item-content:hover,
    .casinoGameItemContent:hover,
    .product-banner-bc:hover {
        transform: translateY(-3px) scale(1.035);
        box-shadow: 0 12px 28px rgba(37, 99, 235, 0.28), 0 0 0 1px rgba(56, 189, 248, 0.22);
        filter: saturate(1.06);
        z-index: 2;
    }

    .casino-game-item-content:hover .casino-game-item-image-bc,
    .casinoGameItemContent:hover .casinoGameItemImage {
        filter: drop-shadow(0 0 14px rgba(56, 189, 248, 0.35));
    }
}

.site-pressable {
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
}

.site-pressable:active {
    transform: scale(0.97);
}

.site-ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    background: rgba(255, 255, 255, 0.35);
    pointer-events: none;
    animation: siteRipple 0.55s ease-out forwards;
}

@keyframes siteRipple {
    to {
        transform: scale(2.4);
        opacity: 0;
    }
}

.games-horiz-scroll .casino-game-item-image-bc.is-shimmer,
.casinoGameItemImage.is-shimmer,
.games-horiz-scroll .casino-game-item.is-shimmer {
    background: linear-gradient(110deg, #1e293b 8%, #334155 18%, #1e293b 33%);
    background-size: 200% 100%;
    animation: siteShimmer 1.15s linear infinite;
}

@keyframes siteShimmer {
    to { background-position-x: -200%; }
}

.site-recent-rail {
    position: sticky;
    top: 0;
    z-index: 40;
    margin: 0 0 10px;
    padding: 8px 10px;
    border-radius: 12px;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 58, 138, 0.88));
    border: 1px solid rgba(56, 189, 248, 0.22);
    box-shadow: 0 8px 22px rgba(2, 6, 23, 0.28);
    display: none;
}

.site-recent-rail.is-on {
    display: block;
}

.site-recent-rail__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.site-recent-rail__title {
    margin: 0;
    color: #e2e8f0;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.site-recent-rail__tabs {
    display: flex;
    gap: 4px;
}

.site-recent-rail__tab {
    border: 0;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.72rem;
    cursor: pointer;
    color: #cbd5e1;
    background: rgba(148, 163, 184, 0.16);
}

.site-recent-rail__tab.is-active {
    color: #0f172a;
    background: linear-gradient(90deg, #38BDF8, #60A5FA);
    font-weight: 600;
}

.site-recent-rail__row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: thin;
}

.site-recent-rail__item {
    flex: 0 0 auto;
    width: 64px;
    text-decoration: none;
    color: #e2e8f0;
}

.site-recent-rail__thumb {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    object-fit: cover;
    background: #1e293b;
    display: block;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.35);
}

.site-recent-rail__name {
    display: block;
    margin-top: 4px;
    font-size: 0.65rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 64px;
}

.site-recent-rail__empty {
    color: #94a3b8;
    font-size: 0.75rem;
    padding: 6px 2px;
}

.casino-game-item-fav-bc.is-fav {
    color: #38BDF8 !important;
    filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.55));
}

@media (max-width: 1024px) {
    #site-scroll-top {
        bottom: 92px;
        right: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .casino-game-item-content,
    .casinoGameItemContent,
    .product-banner-bc,
    .site-pressable:active,
    .site-ripple,
    .games-horiz-scroll .casino-game-item-image-bc.is-shimmer {
        transition: none !important;
        animation: none !important;
        transform: none !important;
    }
}
