/* Header overlays: original #Header is z-index 1000 and was covering alerts. */
.swal2-container {
    z-index: 2147483000 !important;
    pointer-events: auto !important;
}

.swal2-html-container {
    display: block !important;
    color: #f4f4f4 !important;
}

#NavIcon a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    background: #e24a4a;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
}

.Toastify__toast-container,
#ToastRoot {
    z-index: 35000 !important;
}

.Popup.PopupScreen,
#Popup {
    z-index: 30000 !important;
}

#PrismPopups {
    position: fixed;
    inset: 0;
    z-index: 12000;
    pointer-events: none;
}

#PrismPopups .prism-popup {
    position: absolute;
    pointer-events: auto;
    color: #fff;
    border-radius: 5px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    overflow: hidden;
}

#PrismPopups .prism-popup-body {
    font-size: 14px;
    line-height: 1.45;
}

#PrismPopups .prism-popup-body img {
    max-width: 100%;
    height: auto;
    display: block;
}

#PrismPopups .prism-popup-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 40px;
    padding: 0 10px;
    font-size: 12px;
    background: rgba(0, 0, 0, 0.25);
}

#PrismPopups .prism-popup-foot button {
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    padding: 0;
}

#UserAppModal {
    position: fixed;
    inset: 0;
    z-index: 50000 !important;
    display: none !important;
    pointer-events: none !important;
    overflow-y: auto !important;
    align-items: flex-start !important;
    padding: 20px 12px;
    box-sizing: border-box;
}

#UserAppModal.show {
    display: flex !important;
    pointer-events: auto !important;
}

body > div.fixed.inset-0,
body > div.fixed.inset-0.z-30 {
    z-index: 3500 !important;
}

#Popup,
.Popup.PopupScreen {
    pointer-events: none;
}
.Popup.PopupScreen.Active,
.Popup.PopupScreen:has(.PopupItem) {
    pointer-events: auto;
}

#MainOutlogin {
    align-items: flex-start;
    z-index: 2;
}

#MainOutlogin .button {
    background: transparent;
    border: 0;
    appearance: none;
    line-height: 1;
}

#MainOutlogin .user-auth-actions {
    display: contents;
}

#TopAlert {
    position: absolute;
    left: 212px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    height: 36px;
    width: min(480px, calc(100% - 760px));
    min-width: 180px;
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, rgba(6, 16, 31, 0.15) 0%, rgba(18, 48, 86, 0.55) 50%, rgba(6, 16, 31, 0.15) 100%);
    border: 1px solid rgba(201, 163, 90, 0.35);
    border-radius: 18px;
    box-shadow: none;
    color: #f3e2b4;
    overflow: hidden;
    pointer-events: none;
}

.top-alert-inner {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    gap: 8px;
    padding: 0 12px;
}

.top-alert-icon {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M3 10v4a1 1 0 0 0 1 1h2.6l4.7 3.1a1 1 0 0 0 1.6-.8V6.7a1 1 0 0 0-1.6-.8L6.6 9H4a1 1 0 0 0-1 1m13.5 2a3.5 3.5 0 0 0-1.8-3v6a3.5 3.5 0 0 0 1.8-3m1.7-6.5a.75.75 0 0 0-1.1 1 7.25 7.25 0 0 1 0 11 .75.75 0 1 0 1.1 1 8.75 8.75 0 0 0 0-13'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M3 10v4a1 1 0 0 0 1 1h2.6l4.7 3.1a1 1 0 0 0 1.6-.8V6.7a1 1 0 0 0-1.6-.8L6.6 9H4a1 1 0 0 0-1 1m13.5 2a3.5 3.5 0 0 0-1.8-3v6a3.5 3.5 0 0 0 1.8-3m1.7-6.5a.75.75 0 0 0-1.1 1 7.25 7.25 0 0 1 0 11 .75.75 0 1 0 1.1 1 8.75 8.75 0 0 0 0-13'/%3E%3C/svg%3E") center / contain no-repeat;
}

.top-alert-track {
    flex: 1;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.top-alert-marquee {
    display: flex;
    width: max-content;
    animation: top-alert-slide var(--top-alert-duration, 18s) linear infinite;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.top-alert-marquee span {
    padding-right: 96px;
}

@keyframes top-alert-slide {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

#MobileNavToggle {
    display: none;
}
#MobileNavOverlay {
    display: none;
}

@media (max-width: 1024px) {
    html, body {
        overflow-x: hidden;
        max-width: 100%;
        min-width: 0 !important;
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }

    #App,
    #App #Page,
    #App #Page #Container {
        position: relative !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        overflow-x: hidden !important;
        overflow-y: visible !important;
    }

    #App #Page #Container {
        overflow-x: hidden !important;
        overflow-y: visible !important;
        padding-bottom: 24px;
    }

    #Header {
        position: sticky !important;
        top: 0;
        left: 0;
        right: 0;
        height: auto !important;
        min-height: 0 !important;
        min-width: 0 !important;
        z-index: 5000;
        background: #03081c !important;
        border-bottom: 1px solid #363f49 !important;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
        overflow: visible !important;
        pointer-events: auto;
    }

    #Header.logouted.main {
        background: #03081c !important;
        border-bottom: 1px solid #363f49 !important;
    }

    #Header .InnerBox {
        position: relative !important;
        left: auto !important;
        transform: none !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        grid-template-areas:
            "logo user hamburger"
            "alert alert alert";
        align-items: center;
        gap: 8px 10px;
        padding: 8px 12px;
        box-sizing: border-box;
    }

    html.user-logged-in #Header .InnerBox {
        grid-template-areas:
            "logo user hamburger"
            "alert alert alert"
            "cash cash cash";
    }

    #Header .InnerBox .logo {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;
        margin: 0;
        z-index: 2;
        grid-area: logo;
        flex: 0 0 auto;
    }

    #Header .InnerBox .logo img {
        height: 32px;
        width: auto;
        max-width: 120px;
        display: block;
    }

    #MobileNavToggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        width: 44px;
        height: 44px;
        margin-left: 0;
        grid-area: hamburger;
        border: 1px solid rgba(201, 163, 90, 0.35);
        border-radius: 10px;
        background: rgba(8, 32, 61, 0.8);
        cursor: pointer;
        z-index: 2;
        padding: 0;
        position: relative;
        pointer-events: auto;
        -webkit-tap-highlight-color: transparent;
    }

    #MobileNavToggle span {
        display: block;
        width: 18px;
        height: 2px;
        background: #f3e2b4;
        border-radius: 2px;
        transition: transform 0.2s, opacity 0.2s;
    }

    body.mobile-nav-open #MobileNavToggle span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    body.mobile-nav-open #MobileNavToggle span:nth-child(2) {
        opacity: 0;
    }
    body.mobile-nav-open #MobileNavToggle span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    #MainOutlogin {
        position: relative !important;
        right: auto !important;
        top: auto !important;
        grid-area: user;
        width: auto;
        min-width: 0;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-end;
        gap: 6px;
        padding: 0;
        z-index: 2;
        pointer-events: auto;
    }

    html.user-logged-in #MainOutlogin {
        grid-area: cash;
        width: 100%;
        justify-content: flex-start;
    }

    #MainOutlogin .w-10 {
        display: none;
    }
    #MainOutlogin .mt-3 {
        margin: 0 !important;
        margin-right: auto !important;
        order: 1;
    }

    #MainOutlogin .button {
        order: 2;
    }

    #MainOutlogin .user-cash-container,
    #MainOutlogin [class*="min-w-[180px]"] {
        min-width: 0 !important;
        width: calc(50% - 6px);
        margin: 0 !important;
        flex: 1 1 calc(50% - 6px);
        height: 34px !important;
        font-size: 12px;
    }

    #MainOutlogin .relative.flex {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        order: 3;
    }

    #NavIcon {
        display: flex !important;
        align-items: center;
        justify-content: flex-end;
        width: 100%;
        padding: 4px 0 0 !important;
        gap: 14px !important;
        margin: 0 !important;
        order: 4;
    }

    #NavIcon a {
        padding: 4px;
    }

    #NavIcon .icon-top {
        width: 18px;
        height: 18px;
    }

    #MainOutlogin .button {
        height: 36px;
        padding: 0 12px;
        margin: 0;
        border: 1px solid rgba(201, 163, 90, 0.4);
        border-radius: 8px;
        background: rgba(8, 32, 61, 0.9);
        pointer-events: auto;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
    }

    #MainNav {
        display: none !important;
        position: fixed !important;
        inset: 0 !important;
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        max-width: none !important;
        padding: calc(20px + env(safe-area-inset-top, 0px)) 18px calc(24px + env(safe-area-inset-bottom, 0px));
        background: #071222;
        border: 0;
        z-index: 5100;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        box-shadow: none;
        pointer-events: auto !important;
    }

    body.mobile-nav-open #MainNav {
        display: flex !important;
        flex-direction: column;
    }

    #MainNav .mobile-nav-close {
        align-self: flex-end;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 44px;
        height: 44px;
        margin: 0 0 12px;
        padding: 0;
        border: 1px solid rgba(201, 163, 90, 0.35);
        border-radius: 10px;
        background: rgba(8, 32, 61, 0.9);
        cursor: pointer;
        flex: 0 0 44px;
    }
    #MainNav .mobile-nav-close span {
        display: block;
        width: 18px;
        height: 2px;
        background: #f3e2b4;
        border-radius: 2px;
    }
    #MainNav .mobile-nav-close span:first-child {
        transform: translateY(1px) rotate(45deg);
    }
    #MainNav .mobile-nav-close span:last-child {
        transform: translateY(-1px) rotate(-45deg);
    }

    #MainNav .menuGroup {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 6px;
        cursor: default;
    }

    #MainNav .menuGroup .menuItem {
        width: 100%;
        position: relative;
    }

    #MainNav .menuGroup .menuItem > a {
        pointer-events: auto !important;
        position: relative;
        z-index: 2;
        padding: 14px 14px;
        font-size: 16px;
        line-height: 1.2;
        border-radius: 10px;
        background: rgba(15, 61, 113, 0.45);
        color: #fff !important;
        -webkit-tap-highlight-color: rgba(201, 163, 90, 0.25);
    }

    #MainNav .menuGroup .menuItem.active > a,
    #MainNav .menuGroup .menuItem > a:hover,
    #MainNav .menuGroup .menuItem > a:active {
        background: rgba(15, 61, 113, 0.85);
        color: #fff;
    }

    #MainNav .menuGroup .menuItem .menuGroup {
        position: static !important;
        transform: none !important;
        height: auto !important;
        opacity: 1 !important;
        overflow: visible !important;
        left: auto !important;
        bottom: auto !important;
        width: 100%;
        margin: 4px 0 8px;
        padding-left: 10px;
    }

    #MobileNavOverlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.55);
        z-index: 5050;
        pointer-events: auto;
    }

    body.mobile-nav-open #MobileNavOverlay {
        display: block;
    }

    #TopAlert {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;
        width: 100% !important;
        min-width: 0 !important;
        grid-area: alert;
        height: 32px;
        margin: 0;
        pointer-events: none;
    }

    #Footer {
        height: auto;
        padding: 28px 16px;
        min-width: 0 !important;
    }

    #Footer .logo img {
        max-width: 140px;
        height: auto;
    }

    #Content {
        min-height: 0 !important;
        padding: 12px !important;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    #Content [class*="w-[1100px]"],
    #Content [class*="min-w-[1400px]"],
    #PageMain [class*="min-width"],
    .w-\[1100px\] {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
        box-sizing: border-box;
    }

    #Content .grid-cols-6 {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    #Content .w-44 {
        width: 100% !important;
        margin-bottom: 4px;
    }

    #Content [class*="[&>div:not(.hidden)]:flex"] > div {
        flex-wrap: wrap;
        align-items: flex-start !important;
    }

    #Content table,
    #Page table,
    .table-responsive {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    img, video, iframe {
        max-width: 100%;
        height: auto;
    }
    .background-container img,
    .background-container .visual-img,
    .background-container .background-image {
        max-width: none;
    }

    .PopupItem,
    .Popup.PopupScreen,
    #Popup .PopupItem {
        width: min(100vw - 16px, 480px) !important;
        min-width: 0 !important;
        max-width: calc(100vw - 16px) !important;
        max-height: 92vh;
        overflow: auto;
    }

    .PopupItem.SignInPopupNew .form-body,
    .PopupItem .form-body {
        width: 100% !important;
        padding: 16px !important;
        box-sizing: border-box;
    }

    .MainAfterLoginVisualBox,
    .MainAfterLoginVisualBox .visualSet .background,
    .MainAfterLoginVisualBox .visualSet .model,
    #PageMain > .popularGame {
        min-width: 0 !important;
        max-width: 100% !important;
        height: auto !important;
    }

    .MainAfterLoginVisualBox .visualSet .background {
        height: 220px !important;
        background-size: cover;
    }

    #PageMain > .popularGame .content .slideBox {
        height: 220px;
        padding: 0 8px;
    }

    #PageMain > .popularGame .content .slideBox:before,
    #PageMain > .popularGame .content .slideBox:after {
        width: 40px;
    }

    input, select, textarea {
        font-size: 16px !important;
    }

    .SportsInternational,
    .match_master,
    #Content > div,
    #PageMain > div {
        max-width: 100%;
        min-width: 0 !important;
    }

    body.mobile-nav-open {
        overflow: hidden;
    }

    .prism-popup {
        left: 8px !important;
        right: 8px !important;
        width: auto !important;
        max-width: calc(100vw - 16px) !important;
        top: auto !important;
        bottom: 16px !important;
    }

    div.fixed.inset-0.z-30 {
        padding: 0 !important;
        overflow: visible;
        pointer-events: none !important;
        background: transparent !important;
    }
    div.fixed.inset-0.z-30 > .contents,
    div.fixed.inset-0.z-30 > .grid {
        display: block !important;
        width: 100%;
    }
    div.fixed.inset-0.z-30 .absolute.overflow-auto {
        pointer-events: auto !important;
        position: fixed !important;
        left: 12px !important;
        right: 12px !important;
        top: auto !important;
        bottom: 16px !important;
        width: auto !important;
        max-width: calc(100vw - 24px) !important;
        max-height: min(42vh, 360px) !important;
        transform: none !important;
        z-index: 1;
    }

    [class*="min-w-[1400px]"],
    [class*="w-[1100px]"],
    [class*="max-w-[1612px]"] {
        min-width: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        left: 0 !important;
        transform: none !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
        box-sizing: border-box;
    }

    [class*="grid-cols-[70px"] {
        grid-template-columns: 48px minmax(0, 1fr) 76px !important;
        align-items: center;
    }
    [class*="grid-cols-[70px"] > :nth-child(2) {
        min-width: 0;
        overflow-wrap: anywhere;
        word-break: keep-all;
        white-space: normal;
        line-height: 1.35;
    }
    [class*="grid-cols-[70px"] > :nth-child(3) {
        display: none !important;
    }

    [class*="grid-cols-[1fr_180px_120px]"] {
        grid-template-columns: minmax(0, 1fr) 72px !important;
    }
    [class*="grid-cols-[1fr_180px_120px]"] > :nth-child(2) {
        display: none !important;
    }

    [class*="grid-cols-[1fr_1fr_180px_180px_120px]"] {
        grid-template-columns: 1fr 1fr !important;
        overflow-x: auto;
    }

    .CasinoTab {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px;
        padding: 8px 12px !important;
        margin-top: 0;
    }
    .CasinoTab .tab-box {
        display: none !important;
    }
    .CasinoTab .balance {
        width: 100% !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 8px 12px !important;
        writing-mode: horizontal-tb;
        min-height: 40px;
        height: auto !important;
    }
    .CasinoTab .balance-title,
    .CasinoTab .balance .balance-title {
        writing-mode: horizontal-tb !important;
        text-orientation: mixed;
        white-space: nowrap;
    }

    .CasinoCardList {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        padding: 0 12px 20px !important;
        place-items: stretch;
    }
    .CasinoCard,
    .CasinoCard .card-upper {
        width: 100% !important;
        max-width: 100% !important;
    }

    .SlotCard,
    [class*="SlotCard"][class*="w-[226px]"] {
        width: calc(50% - 6px) !important;
        max-width: calc(50% - 6px) !important;
        height: auto !important;
        min-height: 168px;
    }

    #Content .grid.grid-cols-3,
    #Content [class*="grid-cols-3"] {
        grid-template-columns: 1fr !important;
        grid-template-rows: none !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
    #Content .h-125 {
        height: 180px !important;
    }
    #Content .px-8,
    #Content [class*="px-8"] {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
    #Content div[style*="min-width: 350px"],
    #Content div[style*="flex: 0 0 350px"] {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    #Content .flex.gap-4:has(div[style*="min-width: 350px"]) {
        flex-direction: column;
    }

    .background-container {
        width: 100% !important;
        max-width: 100vw !important;
        height: min(62svh, 500px) !important;
        min-height: 410px;
        max-height: 520px;
        overflow: hidden !important;
        position: relative !important;
        background: #06102a;
    }
    .background-container .background-layer,
    .background-container .background-image {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
        object-fit: cover !important;
        object-position: 50% 78%;
    }
    .background-container .particles {
        display: none !important;
    }
    .background-container .overlay {
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        align-items: stretch !important;
        z-index: 10;
    }
    .background-container .overlay::before {
        content: "";
        position: absolute;
        inset: 0 0 auto 0;
        height: 38%;
        background: linear-gradient(180deg, rgba(3, 8, 28, 0.42) 0%, rgba(3, 8, 28, 0.12) 62%, transparent 100%);
        pointer-events: none;
        z-index: 6;
    }
    .background-container .fade-in,
    .background-container .slide-down,
    .background-container .slide-up {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    .background-container .overlay .center-details {
        width: 100% !important;
        max-width: 100% !important;
        height: 100% !important;
        min-height: 100% !important;
        justify-content: flex-start !important;
        align-items: center !important;
        overflow: visible;
        padding: 22px 14px 0;
        box-sizing: border-box;
    }
    .background-container .overlay .center-details .text-container,
    .background-container .overlay .center-details .text-container-2 {
        position: relative !important;
        z-index: 8 !important;
        width: 100%;
        max-width: 100%;
        margin: 0 !important;
        line-height: 1.1 !important;
        align-self: stretch;
        text-align: center;
    }
    .background-container .overlay .center-details .visual-img.left-img-0,
    .background-container .overlay .center-details .visual-img.left-img-0.animated,
    .background-container .overlay .center-details .visual-img.left-img-0.initial,
    .background-container .overlay .center-details .visual-img.left-img-1,
    .background-container .overlay .center-details .visual-img[src=""],
    .background-container .overlay .center-details .visual-img:not([src]) {
        display: none !important;
    }
    .background-container .overlay .center-details .visual-img,
    .background-container .overlay .center-details .visual-img.animated,
    .background-container .overlay .center-details .visual-img.initial,
    .background-container .overlay .center-details .visual-img.right-img-0,
    .background-container .overlay .center-details .visual-img.right-img-0.animated,
    .background-container .overlay .center-details .visual-img.right-img-0.initial,
    .background-container .overlay .center-details .visual-img.right-img-1,
    .background-container .overlay .center-details .visual-img.right-img-2 {
        display: block !important;
        position: absolute !important;
        animation: none !important;
        transition: none !important;
        top: auto !important;
        right: auto !important;
        left: -12% !important;
        bottom: 10px !important;
        width: 150% !important;
        height: auto !important;
        max-width: none !important;
        max-height: none !important;
        object-fit: contain !important;
        object-position: left bottom !important;
        opacity: 1 !important;
        z-index: 4 !important;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        transform: none !important;
    }
    .background-container .overlay .center-details .font-impact,
    .background-container .top-text,
    .background-container .middle-text,
    .background-container .bottom-text,
    .background-container .last-text {
        font-size: clamp(23px, 6.6vw, 30px) !important;
        letter-spacing: 0.02em !important;
        line-height: 1.16 !important;
        text-align: center !important;
        margin: 0 auto !important;
        margin-left: auto !important;
        padding: 0 !important;
        word-break: keep-all;
        white-space: normal !important;
        max-width: 100%;
        opacity: 1 !important;
        -webkit-text-fill-color: #fff !important;
        color: #fff !important;
    }
    .background-container .top-text {
        -webkit-text-stroke: 0 !important;
        text-stroke: 0 !important;
        text-shadow: 0 0 1px #fff, 0 1px 3px rgba(0, 0, 0, 0.95), 0 0 16px rgba(0, 0, 0, 0.5) !important;
        color: #fff !important;
        -webkit-text-fill-color: #fff !important;
    }
    .background-container .bottom-text {
        -webkit-text-stroke: 0 !important;
        text-stroke: 0 !important;
        text-shadow: 0 0 12px rgba(0, 220, 255, 0.7), 0 1px 3px rgba(0, 0, 0, 0.9) !important;
        color: #fff !important;
        -webkit-text-fill-color: #fff !important;
    }
    .background-container .overlay .center-details .text-container-2 {
        margin-top: 6px !important;
    }
    .background-container .visualNav {
        display: none !important;
    }

    .w-42 {
        width: auto !important;
        min-width: 0;
        padding-right: 8px;
    }

    #Content .min-h-\[150px\],
    #Container .min-h-\[150px\] {
        min-height: 110px !important;
        overflow: hidden;
    }

    [class*="max-w-[1200px]"],
    [class*="max-w-[2200px]"] {
        max-width: 100% !important;
    }

    #Content .flex.justify-between,
    #Content .flex.items-center.justify-between {
        flex-wrap: wrap;
        gap: 8px;
    }

    .PopupItem.SlotGameListPopup,
    .PopupItem.SignupPopup,
    .PopupItem.AskFormPopup,
    .PopupItem.FindPasswordPopup,
    .PopupItem.casino_transfer_popup,
    .PopupItem.QuickBettingHistoryPopup,
    .PopupItem.SignInPopupNew,
    .PopupItem.SigninPopup {
        width: min(100vw - 16px, 480px) !important;
        min-width: 0 !important;
        max-width: calc(100vw - 16px) !important;
        left: 50% !important;
        transform: translateX(-50%);
    }

    #Footer .copyright {
        font-size: 11px;
        line-height: 1.5;
        word-break: keep-all;
        padding: 0 4px;
    }

    [class*="min-w-[1400px]"] .text-4xl,
    #Container .text-4xl {
        font-size: 1.55rem !important;
        line-height: 1.2;
    }
    [class*="min-w-[1400px]"] .flex.items-end {
        flex-wrap: wrap;
        gap: 4px;
    }
    [class*="min-w-[1400px]"] .text-sm.italic {
        display: none;
    }

    .casino_visual_section {
        overflow: hidden;
        width: 100% !important;
        max-width: 100% !important;
    }
    .casino_visual_section .banner_list {
        overflow: hidden;
        width: 100% !important;
    }
    .casino_visual_section .banner_list img.banner,
    .casino_visual_section img.banner {
        width: 100% !important;
        max-width: 100% !important;
        left: 0 !important;
        right: 0 !important;
    }
    .casino_visual_section .navigator {
        bottom: 10px !important;
        gap: 8px !important;
        z-index: 3;
        pointer-events: auto;
    }
    .casino_visual_section .navigator .circle_nav_item {
        width: 8px !important;
        height: 8px !important;
        margin: 0 !important;
    }
    .casino_visual_section .navigator .circle_nav_item.active {
        width: 22px !important;
        box-shadow: 0 0 8px rgba(0, 66, 255, 0.65);
    }
    .CasinoTab {
        margin-top: 0;
        padding-top: 8px !important;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .background-container {
        height: min(52vh, 560px) !important;
        min-height: 480px;
        max-height: 600px;
    }
    .background-container .overlay .center-details .visual-img,
    .background-container .overlay .center-details .visual-img.right-img-0,
    .background-container .overlay .center-details .visual-img.right-img-0.animated {
        width: 112% !important;
        left: 2% !important;
        bottom: 0 !important;
    }
    .background-container .overlay .center-details .font-impact,
    .background-container .top-text,
    .background-container .bottom-text {
        font-size: clamp(28px, 4.2vw, 40px) !important;
    }
}

@media (max-width: 640px) {
    #Content .grid-cols-6 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    #Header .InnerBox .logo img {
        height: 30px;
        max-width: 120px;
    }

    #Content .text-4xl {
        font-size: 1.5rem !important;
    }

    #Content .text-xl {
        font-size: 0.95rem !important;
    }
}

.CasinoCard .card-upper {
    filter: none !important;
    background-size: cover !important;
    background-position: center center !important;
}
.CasinoCard:hover .card-upper {
    filter: none !important;
}
.CasinoCard .card-upper .card-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.38) 0%, rgba(0, 0, 0, 0.12) 58%, rgba(0, 0, 0, 0.22) 100%);
    z-index: 1;
    pointer-events: none;
}
.CasinoCard .card-upper .card-contents {
    position: absolute !important;
    inset: 0 !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column;
    align-items: center !important;
    justify-content: center !important;
    z-index: 2;
    padding: 12px 16px;
    box-sizing: border-box;
}
.CasinoCard .card-upper .card-contents .card-header {
    display: flex !important;
    flex-direction: column;
    align-items: center !important;
    justify-content: center !important;
    width: 100%;
    text-align: center;
}
.CasinoCard .card-upper .card-contents .card-header .card-title-kor {
    display: block !important;
    width: 100%;
    flex-shrink: 1;
    text-align: center !important;
    justify-content: center;
    font-size: clamp(16px, 4.6vw, 24px);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.95), 0 0 14px rgba(0, 0, 0, 0.85);
    word-break: keep-all;
    overflow-wrap: anywhere;
    white-space: normal !important;
}
.CasinoCard .card-upper .card-contents .card-header .card-title-en {
    display: none !important;
}
