/* Shared public-facing theme. Loaded after legacy page styles by the public layouts.
   Keep visibility, panel transforms, payment selection and status colours in the app. */
body.frontend-theme {
    --theme-color: #d6b875;
    --theme-color2: #b58b43;
    --primary: #d6b875;
    --premium-bg: #0c1018;
    --premium-surface: #141b27;
    --premium-raised: #1b2432;
    --premium-line: rgba(214, 184, 117, .20);
    --premium-text: #f4f1e9;
    --premium-muted: #a6afbe;
    background: radial-gradient(ellipse at 50% 0, #20283a 0, #101620 42%, #0c1018 80%) fixed !important;
    color: var(--premium-text) !important;
    font-family: "Lato", "Segoe UI", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color-scheme: dark;
    -webkit-font-smoothing: antialiased;
    accent-color: var(--theme-color);
}
body.frontend-theme :is(h1, h2, h3, h4, h5, h6) {
    color: var(--premium-text);
    letter-spacing: -.02em;
    line-height: 1.3;
}
body.frontend-theme :is(p, label, .secondary_color) { color: var(--premium-muted); }
body.frontend-theme :is(a, button, input, select, textarea) { -webkit-tap-highlight-color: transparent; }
body.frontend-theme a { text-underline-offset: 4px; }
body.frontend-theme :is(a, button, [tabindex], input, select, textarea):focus-visible {
    outline: 2px solid #ebd39a !important;
    outline-offset: 4px;
}
body.frontend-theme ::selection { background: #d6b875; color: #101620; }

/* Navigation and the existing language/account menus. */
body.frontend-theme :is(header, .header, .tf-statusbar, .bottom-navigation-bar, .mobile-taskbar) {
    background: #101620 !important;
    color: var(--premium-text) !important;
    border-color: var(--premium-line) !important;
}
body.frontend-theme header { border-bottom: 1px solid var(--premium-line); }
body.frontend-theme .main-menu { min-height: 84px; }
body.frontend-theme .main-menu .brand-logo { padding-top: 16px; padding-bottom: 16px; }
body.frontend-theme .main-menu .brand-logo img { max-height: 52px; width: auto; }
body.frontend-theme :is(.pixelstrap a, .pixelstrap a:hover, .main-menu .menu-left .navbar i, .icon-nav i, .tf-navigation-bar a) {
    color: var(--premium-text) !important;
}
body.frontend-theme .pixelstrap a { font-size: 14px; font-weight: 600; letter-spacing: .025em; }
/* Match the lobby's later inline navigation rule during the first paint. */
body.frontend-theme.frontend-lobby #main-nav li a { font-size: 16px !important; }
body.frontend-theme.frontend-loading-auth.frontend-guest .btnLoginY,
body.frontend-theme.frontend-loading-auth.frontend-member .btnLoginX { display: none !important; }
body.frontend-theme :is(.pixelstrap a:hover, .tf-navigation-bar li.active a, .tf-navigation-bar a:hover) { color: var(--theme-color) !important; }
body.frontend-theme :is(.pixelstrap ul, .sidenav nav, .show-div.setting, .onhover-show-div) {
    background: var(--premium-surface) !important;
    border: 1px solid var(--premium-line);
    box-shadow: 0 20px 60px #0006;
}
body.frontend-theme :is(.sidebar-back, .mobile-back, .sidebar-title) { background: var(--premium-raised) !important; color: var(--premium-text) !important; }
body.frontend-theme .show-div.setting :is(h6, li, span) { color: var(--premium-text) !important; }

/* Lobby drawer: keep the existing slide and overlay behaviour. */
body.frontend-theme.frontend-lobby .sidebar-open { padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; }
body.frontend-theme.frontend-lobby .sidebar-open .bar-style { display: block; }
body.frontend-theme.frontend-lobby #mySidenav { background: transparent; }
body.frontend-theme.frontend-lobby #mySidenav nav {
    background: linear-gradient(180deg, #192231 0%, #101722 100%) !important;
    border: 0;
    border-right: 1px solid #d6b87538;
    box-shadow: 20px 0 60px #0006;
    scrollbar-width: thin;
    scrollbar-color: #826f4b transparent;
}
body.frontend-theme.frontend-lobby #mySidenav .sidebar-overlay { background: #050911; }
body.frontend-theme.frontend-lobby #mySidenav .sidebar-back {
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 90px;
    padding: 18px 18px 18px 22px;
    background: #111a27 !important;
    border-bottom: 1px solid #d6b87530;
    color: var(--premium-text);
    text-transform: none;
    letter-spacing: 0;
}
body.frontend-theme.frontend-lobby #mySidenav .sidebar-brand {
    display: flex;
    flex: 0 0 44px;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 5px;
    border: 1px solid #d6b87540;
    border-radius: 13px;
    background: #d6b8750d;
}
body.frontend-theme.frontend-lobby #mySidenav .sidebar-brand img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
body.frontend-theme.frontend-lobby #mySidenav #lblLeftMenuName {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    color: var(--premium-text) !important;
    font-size: 16px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}
body.frontend-theme.frontend-lobby #mySidenav .sidebar-close {
    display: inline-flex;
    flex: 0 0 36px;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid #ffffff18;
    border-radius: 11px;
    background: #ffffff08;
    color: #d8c69b;
    font-size: 21px;
    cursor: pointer;
}
body.frontend-theme.frontend-lobby #mySidenav .sidebar-close:hover { background: #d6b87520; border-color: #d6b87570; }
body.frontend-theme.frontend-lobby #sub-menu { width: auto; padding: 15px 12px 24px; margin: 0; background: transparent; }
body.frontend-theme.frontend-lobby #sub-menu > li { width: 100%; margin: 0 0 3px; }
body.frontend-theme.frontend-lobby #sub-menu > li > a {
    display: flex;
    align-items: center;
    min-height: 53px;
    padding: 7px 10px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
    color: var(--premium-text) !important;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .01em;
    text-transform: none;
    transition: background .18s ease, border-color .18s ease, color .18s ease;
}
body.frontend-theme.frontend-lobby #sub-menu > li > a > span:first-child { display: flex; align-items: center; gap: 13px; min-width: 0; color: inherit; }
body.frontend-theme.frontend-lobby #sub-menu > li > a i {
    display: inline-flex;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin: 0;
    border: 1px solid #d6b87526;
    border-radius: 11px;
    background: #d6b8750d;
    color: #dfc38a !important;
    font-size: 17px;
}
body.frontend-theme.frontend-lobby #sub-menu > li > a:hover,
body.frontend-theme.frontend-lobby #sub-menu > li > a:focus-visible { background: #d6b87513; border-color: #d6b87538; }
body.frontend-theme.frontend-lobby #sub-menu > li > a:hover i { background: #d6b87520; border-color: #d6b87555; }
body.frontend-theme.frontend-lobby #sub-menu > li:last-child { margin-top: 12px; padding-top: 12px; border-top: 1px solid #d6b87522; }
body.frontend-theme.frontend-lobby:not(.dark) #mySidenav nav { background: linear-gradient(180deg, #fffdf8, #f3f0e9) !important; border-color: #b2935540; }
body.frontend-theme.frontend-lobby:not(.dark) #mySidenav .sidebar-back { background: #fffdf8 !important; border-color: #b2935540; }
body.frontend-theme.frontend-lobby:not(.dark) #mySidenav .sidebar-close { color: #806126; background: #b2935510; border-color: #b2935530; }
body.frontend-theme.frontend-lobby:not(.dark) #sub-menu > li > a i { color: #896b31 !important; background: #b2935510; border-color: #b2935538; }
body.frontend-theme.frontend-lobby:not(.dark) #sub-menu > li > a:hover,
body.frontend-theme.frontend-lobby:not(.dark) #sub-menu > li > a:focus-visible { background: #b2935518; border-color: #b2935540; }

/* Give the original campaign artwork a deliberate, framed presentation. */
body.frontend-theme.frontend-lobby {
    --lobby-content-width: calc(100% - 64px);
    --lobby-content-max-width: 1440px;
}
body.frontend-theme.frontend-lobby #form1 > div > .swiper {
    width: var(--lobby-content-width);
    max-width: var(--lobby-content-max-width);
    margin: 28px auto 0;
    border: 1px solid var(--premium-line);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 64px #0005;
    background: var(--premium-surface);
    --swiper-theme-color: #e1c587;
    --swiper-navigation-size: 18px;
}
body.frontend-theme.frontend-lobby #form1 > div > .swiper .swiper-slide img { display: block; width: 100%; height: auto; }
body.frontend-theme :is(.swiper-button-prev, .swiper-button-next) {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid #ffffff38;
    background: #0c1018b3;
    color: #f3dfad;
}
body.frontend-theme .swiper-pagination-bullet { background: #fff; opacity: .45; }
body.frontend-theme .swiper-pagination-bullet-active { background: #e1c587; opacity: 1; }
/* Use the banner's content width for the balance, search, and both game grids. */
body.frontend-theme.frontend-lobby :is(.balance-section > .container, #SectionGames > .container) {
    width: var(--lobby-content-width);
    max-width: var(--lobby-content-max-width);
    padding-left: 0;
    padding-right: 0;
}

/* Lobby filters, search and games. No display rules on filterable cards. */
body.frontend-theme #SectionGames { margin-top: 36px !important; padding-bottom: 40px; }
body.frontend-theme .game-type-menu-wrapper { margin: 0 auto 28px; padding: 0; background: transparent; border-radius: 20px; max-width: 100%; }
body.frontend-theme .game-type-menu {
    display: inline-flex;
    align-items: stretch;
    max-width: 100%;
    gap: 4px;
    padding: 8px;
    background: linear-gradient(145deg, #1c2635, #111824) !important;
    border: 1px solid #d6b87540;
    border-radius: 20px;
    box-shadow: 0 14px 34px #0004, inset 0 1px #ffffff0d;
}
body.frontend-theme .game-type-menu-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 112px;
    min-height: 56px;
    padding: 8px 16px;
    border-radius: 13px;
    color: #c1c8d4 !important;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .01em;
    cursor: pointer;
    border: 0;
    background: transparent;
    font-family: inherit;
    white-space: nowrap;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}
body.frontend-theme .game-type-menu-item .game-type-menu-item-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border: 1px solid #d6b87530;
    border-radius: 10px;
    color: #d9bd82;
    background: #d6b8750e;
}
body.frontend-theme .game-type-menu-item .game-type-menu-item-icon svg {
    display: block;
    width: 19px;
    height: 19px;
}
body.frontend-theme .game-type-menu-item.active {
    background: linear-gradient(135deg, #f1ddb0, #c9a25c) !important;
    color: #191b22 !important;
    box-shadow: 0 5px 16px #0005, inset 0 1px #fff9;
}
body.frontend-theme .game-type-menu-item.active .game-type-menu-item-icon { color: #35280f; border-color: #45300d26; background: #ffffff45; }
body.frontend-theme .game-type-menu-item:hover:not(.active) { background: #ffffff10; color: #fff !important; }
body.frontend-theme .game-type-menu-item:hover:not(.active) .game-type-menu-item-icon { border-color: #d6b87570; }
body.frontend-theme .game-type-menu-item:active { transform: translateY(1px); }
body.frontend-theme #SectionGames .form-header { margin-bottom: 16px; }
body.frontend-theme #SectionGames .game-search { position: relative; width: 100%; }
body.frontend-theme #SectionGames .game-search-icon {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 18px;
    transform: translateY(-50%);
    color: var(--premium-muted);
    font-size: 19px;
    line-height: 1;
    pointer-events: none;
}
body.frontend-theme #SectionGames .game-search:focus-within .game-search-icon { color: #d6b875; }
body.frontend-theme #txtSearchGame { width: 100%; min-height: 52px; padding: 0 20px 0 50px; border-radius: 12px; }
body.frontend-theme :is(#divGameListGamesHot, #divGameListGamesPlayed) .games-all .game-grid { gap: 20px; padding: 0; }
body.frontend-theme :is(#divGameListGamesHot, #divGameListGamesPlayed) .games-all .game-card {
    padding: 1px;
    border: 1px solid #d6b87542;
    border-radius: 16px;
    background: #202a3b;
    box-shadow: 0 8px 22px #0004;
    cursor: pointer;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
body.frontend-theme :is(#divGameListGamesHot, #divGameListGamesPlayed) .games-all .game-card:hover {
    transform: translateY(-5px);
    border-color: #e0c17e;
    box-shadow: 0 16px 32px #0006;
}
body.frontend-theme :is(#divGameListGamesHot, #divGameListGamesPlayed) .games-all .game-frame { border-radius: 14px; }
body.frontend-theme :is(#divGameListGamesHot, #divGameListGamesPlayed) .games-all .game-frame img { width: 100%; height: auto; display: block; }
body.frontend-theme :is(#divGameListGamesHot, #divGameListGamesPlayed) .games-all .text-panel {
    height: 38%;
    min-height: 66px;
    padding: 20px 8px 10px;
    background: linear-gradient(180deg, transparent, #0b101de8 45%, #0b101d) !important;
}
body.frontend-theme :is(#divGameListGamesHot, #divGameListGamesPlayed) .games-all .title {
    margin: 0;
    color: #fff;
    font-size: clamp(12px, 1.1vw, 17px);
    line-height: 1.25;
    font-weight: 700;
    max-width: 100%;
    overflow-wrap: anywhere;
}
body.frontend-theme :is(#divGameListGamesHot, #divGameListGamesPlayed) .games-all .subtitle {
    margin-top: 6px;
    color: #dfc792;
    font-size: 10px;
    line-height: 1.2;
    letter-spacing: .1em;
    text-transform: uppercase;
    font-weight: 600;
}
body.frontend-theme :is(.img-wrapper, .product-box .img-wrapper) { border: 1px solid var(--premium-line); border-radius: 16px; overflow: hidden; }
body.frontend-theme .product-box-custom h4 { -webkit-text-fill-color: #e1c587; text-shadow: none; }
body.frontend-theme .product-box-custom h6 { color: var(--premium-muted) !important; opacity: 1; }
body.frontend-theme .rowNoGames p { color: var(--premium-muted) !important; padding: 28px 12px; }

/* Authentication, wallet, profile, deposit, withdrawal and bank forms. */
body.frontend-theme :is(.tf-panel .panel-box, .modal-content, .offcanvas, .sweet-modal-box, .sweet-modal-overlay.open .sweet-modal-box) {
    background: var(--premium-surface) !important;
    color: var(--premium-text) !important;
    border-color: var(--premium-line) !important;
    box-shadow: 0 24px 80px #0006;
}
body.frontend-theme :is(.modal-content, .sweet-modal-box) { border-radius: 18px; }
body.frontend-theme :is(.tf-panel .header, .tf-panel .tf-statusbar, .sweet-modal-title-wrap, .sweet-modal-buttons) { background: var(--premium-surface) !important; border-color: var(--premium-line) !important; }
/* The outer panel wrappers only contain fixed-position overlays; their borders
   otherwise stack as a visible strip beneath the page footer. */
body.frontend-theme.frontend-lobby .tf-panel { border: 0; background: transparent; }
body.frontend-theme .tf-panel .panel-box { border-left: 1px solid var(--premium-line); }
body.frontend-theme :is(.tf-panel .tf-container, .modal-body) { padding-left: 24px; padding-right: 24px; }
body.frontend-theme .tf-panel :is(h1, h2, h3, h4, h5, h6) { color: var(--premium-text) !important; }
body.frontend-theme .tf-form h1 { font-size: 30px; margin-bottom: 28px; font-weight: 700; text-transform: none; }
body.frontend-theme .group-input { margin-bottom: 20px; }
/* Keep the country code and local phone number together in account panels. */
body.frontend-theme :is(#RegisterModal, #ForgetPwdModal) .group-input:has(> .content > select[name="country_code"]) {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 10px;
    align-items: stretch;
}
body.frontend-theme :is(#RegisterModal, #ForgetPwdModal) .group-input:has(> .content > select[name="country_code"]) > .content {
    min-width: 0;
}
body.frontend-theme :is(#RegisterModal, #ForgetPwdModal) .group-input:has(> .content > select[name="country_code"]) :is(select, input) {
    width: 100%;
    min-width: 0;
    height: 48px;
    margin: 0;
    box-sizing: border-box;
}
body.frontend-theme :is(.group-input label, .tf-form label) { color: #d0d5df !important; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
/* Floating labels sit above the input's focus ring, with a surface behind the text. */
body.frontend-theme .tf-panel .tf-form .group-input > label {
    background: var(--premium-surface) !important;
    z-index: 2;
}
body.frontend-theme .tf-panel .group-input :is(input, select, textarea):focus-visible {
    outline: none !important;
    box-shadow: 0 0 0 2px #d6b875 !important;
}
body.frontend-theme :is(.form-control, .group-input input, .group-input select, .tf-form input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=submit]), .tf-form select, .tf-form textarea, .search-field) {
    background: #0e1520 !important;
    color: var(--premium-text) !important;
    border: 1px solid #354052 !important;
    border-radius: 10px;
    min-height: 48px;
    box-shadow: none;
}
body.frontend-theme :is(input, textarea)::placeholder { color: #939eb0 !important; opacity: 1; }
body.frontend-theme :is(.form-control, .group-input input, .tf-form select):focus { border-color: #d6b875 !important; box-shadow: 0 0 0 3px #d6b87518; }
body.frontend-theme :is(.btn-solid, .tf-btn.accent, .btnDivProfileMobileLogin, .btn-primary, .header .buttons a) {
    background: linear-gradient(135deg, #eed7a0, #c8a25c) !important;
    color: #191b22 !important;
    border: 1px solid #dfc17e !important;
    border-radius: 10px;
    font-weight: 700;
    text-shadow: none;
    box-shadow: 0 4px 14px #0003;
}
body.frontend-theme :is(.btn-solid, .tf-btn.accent, .btnDivProfileMobileLogin, .btn-primary):hover { filter: brightness(1.08); }
body.frontend-theme :is(.btn-outline, .btnDivProfileMobileRegister) { background: transparent !important; border: 1px solid #d6b8757a !important; color: #e1c587 !important; border-radius: 10px; box-shadow: none; }
body.frontend-theme :is(button, .btn, .tf-btn):disabled { opacity: .5; cursor: not-allowed; }
body.frontend-theme :is(.auth-forgot-password, .back-btn, .clear-panel, .tf-panel .text-primary) { color: #e1c587 !important; }
body.frontend-theme :is(.balance-card, .wallet-bg, .tf-balance-box, .box-profile, #ProfileModal a.list-profile, .divPanelProfileName, .box-settings-profile) {
    background: linear-gradient(135deg, #202b3b, #141c29) !important;
    border: 1px solid var(--premium-line) !important;
    border-radius: 16px;
    color: var(--premium-text) !important;
    box-shadow: 0 8px 24px #0002;
}
body.frontend-theme .balance-card { padding: 24px; }
body.frontend-theme .balance-card .balance-amount { color: #f0dba8; font-variant-numeric: tabular-nums; }
body.frontend-theme .balance-card .action .icon { background: #d6b87516 !important; border: 1px solid var(--premium-line); color: #e1c587 !important; box-shadow: none; }
body.frontend-theme :is(.list-profile p, .box-profile p, .balance-header .title, .balance-card .action span) { color: #cbd2dd !important; }
body.frontend-theme :is(.sweet-modal-content, .sweet-modal-content ul li, .sweet-modal-content p) { color: var(--premium-text) !important; }

/* Notices and confirmations share the same finish as the lobby and account panels. */
body.frontend-theme #ModalDepositAlert .modal-dialog { max-width: 600px; margin: 24px auto; }
body.frontend-theme #ModalDepositAlert .modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 48px);
    max-height: calc(100dvh - 48px);
    overflow: hidden;
    border: 1px solid var(--premium-line) !important;
    border-radius: 22px;
    box-shadow: 0 32px 90px #0009, 0 0 0 1px #ffffff08;
}
body.frontend-theme #ModalDepositAlert .modal-content::before {
    content: "";
    display: block;
    flex: 0 0 3px;
    background: linear-gradient(90deg, transparent, #e4c789 28%, #b58d48 72%, transparent);
}
body.frontend-theme #ModalDepositAlertMessage {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-wrap: anywhere;
    padding: 34px 40px 26px !important;
    background: var(--premium-surface) !important;
    color: var(--premium-text);
    font-family: inherit;
    font-size: 15px;
    line-height: 1.7;
    scrollbar-width: thin;
    scrollbar-color: #ae9259 transparent;
}
body.frontend-theme #ModalDepositAlertMessage :is(h1, h2, h3, h4, h5, h6) {
    color: var(--premium-text);
    font-family: inherit;
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.3;
    margin: 0 0 14px;
}
body.frontend-theme #ModalDepositAlertMessage :is(h1, h2, h3) { font-size: 21px; }
body.frontend-theme #ModalDepositAlertMessage :is(p, li) { line-height: 1.7; }
body.frontend-theme #ModalDepositAlertMessage p { color: var(--premium-muted); }
body.frontend-theme #ModalDepositAlertMessage :is(ul, ol) { padding-left: 1.4em; margin: 12px 0 18px; }
body.frontend-theme #ModalDepositAlertMessage li { color: var(--premium-muted); }
body.frontend-theme #ModalDepositAlertMessage :is(ul, ol) > li { display: list-item; }
body.frontend-theme #ModalDepositAlertMessage ul > li { list-style-type: disc; }
body.frontend-theme #ModalDepositAlertMessage ol > li { list-style-type: decimal; }
body.frontend-theme #ModalDepositAlertMessage li + li { margin-top: 6px; }
body.frontend-theme #ModalDepositAlertMessage li::marker { color: #d6b875; }
body.frontend-theme #ModalDepositAlertMessage :is(img, video, iframe) { max-width: 100%; }
body.frontend-theme #ModalDepositAlertMessage + div {
    flex: 0 0 auto;
    padding: 18px 28px 22px !important;
    border-top: 1px solid var(--premium-line);
    background: var(--premium-surface) !important;
    text-align: center;
}
body.frontend-theme #ModalDepositAlertMessage + div > br { display: none; }
body.frontend-theme #ModalDepositAlertMessage + div .btn {
    min-width: 132px;
    min-height: 46px;
    margin: 0 !important;
    padding: 10px 28px !important;
    border-radius: 11px;
    font-size: 14px;
    font-weight: 700;
}
body.frontend-theme .modal-backdrop.show { opacity: .72; }

body.frontend-theme .sweet-modal-overlay { background: rgba(4, 9, 17, .78) !important; }
body.frontend-theme .sweet-modal-overlay.open .sweet-modal-box {
    border: 1px solid var(--premium-line) !important;
    border-radius: 20px;
    font-family: inherit;
    box-shadow: 0 32px 90px #0009, 0 0 0 1px #ffffff08;
}
body.frontend-theme .sweet-modal-title-wrap { padding: 24px 64px 20px 28px; }
body.frontend-theme .sweet-modal-title { text-shadow: none; }
body.frontend-theme .sweet-modal-title h2 { color: var(--premium-text) !important; font: 700 20px/1.3 "Lato", "Segoe UI", Arial, sans-serif; letter-spacing: -.02em; text-transform: none; }
body.frontend-theme .sweet-modal-content { padding: 26px 28px; font-family: inherit; font-size: 15px; line-height: 1.7; overflow-wrap: anywhere; }
body.frontend-theme .sweet-modal-content :is(p, li) { line-height: 1.7; }
body.frontend-theme .sweet-modal-content :is(ul, ol) > li { display: list-item; }
body.frontend-theme .sweet-modal-content li::marker { color: #d6b875; }
body.frontend-theme .sweet-modal-buttons { margin-top: 0; padding: 16px 24px; }
body.frontend-theme .sweet-modal-buttons :is(a.button, button) {
    min-height: 42px;
    min-width: 100px;
    padding: 9px 18px;
    border-radius: 10px !important;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0;
}
body.frontend-theme .sweet-modal-buttons :is(a.yellowB.button, button.yellowB) {
    color: #191b22 !important;
    background: linear-gradient(135deg, #eed7a0, #c8a25c) !important;
    border: 1px solid #dfc17e !important;
}
body.frontend-theme .sweet-modal-buttons :is(a.redB.button, button.redB) {
    color: #f3c4c1 !important;
    background: #873c3c35 !important;
    border: 1px solid #db77775e !important;
}
body.frontend-theme .sweet-modal-buttons :is(a.button, button):hover { filter: brightness(1.12); }
/* Explicit icon colours avoid the legacy close SVG losing contrast in either theme. */
body.frontend-theme {
    --modal-close-bg: #263345;
    --modal-close-hover: #35465c;
    --modal-close-active: #40536b;
    --modal-close-border: #8f7b50;
    --modal-close-focus: #ebd39a;
    --modal-close-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m7 7 10 10M17 7 7 17' fill='none' stroke='%23f3d99e' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}
body.frontend-theme.frontend-lobby:not(.dark) {
    --modal-close-bg: #f3ecde;
    --modal-close-hover: #e9dcc2;
    --modal-close-active: #dfcca6;
    --modal-close-border: #a58a56;
    --modal-close-focus: #806126;
    --modal-close-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m7 7 10 10M17 7 7 17' fill='none' stroke='%23745920' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}
body.frontend-theme .sweet-modal-close a.sweet-modal-close-link {
    box-sizing: border-box;
    border: 1px solid var(--modal-close-border) !important;
    background: var(--modal-close-bg) var(--modal-close-icon) center / 22px 22px no-repeat !important;
    opacity: 1;
    transition: background-color .18s ease, box-shadow .18s ease;
}
body.frontend-theme .sweet-modal-close a.sweet-modal-close-link:hover {
    background-color: var(--modal-close-hover) !important;
}
body.frontend-theme .sweet-modal-close a.sweet-modal-close-link:active {
    background-color: var(--modal-close-active) !important;
}
body.frontend-theme .sweet-modal-close a.sweet-modal-close-link:focus-visible {
    outline: 2px solid var(--modal-close-focus) !important;
    outline-offset: 3px;
}
body.frontend-theme.frontend-lobby:not(.dark) .sweet-modal-buttons :is(a.redB.button, button.redB) { color: #963b3b !important; background: #f9e9e7 !important; }
body.frontend-theme :is(#history_table, #credit_div2) :is(th, td) { border-color: #ffffff12 !important; }
body.frontend-theme :is(#history_table, #credit_div2) th { background: #202a3b !important; color: #e1c587 !important; padding: 14px 12px; }
body.frontend-theme :is(#history_table, #credit_div2) td { background: #141b27; color: #d0d5df; padding: 14px 12px; }

/* Promotions, help and the previous public layout versions. */
body.frontend-theme.frontend-content .header.is-fixed { border-bottom: 1px solid var(--premium-line); }
body.frontend-theme.frontend-content #myTitle { color: #e1c587; font-size: 18px; font-weight: 700; }
body.frontend-theme.frontend-content #form1 > div { max-width: 1120px; margin: auto; }
body.frontend-theme.frontend-content .tf-container { max-width: 1120px; }
body.frontend-theme #DivPromos { gap: 24px; padding-bottom: 40px; }
body.frontend-theme #DivPromos img { border-radius: 16px; border: 1px solid var(--premium-line); }
body.frontend-theme :is(#DivPromoDetail, .divContentImage) { color: #d0d5df; line-height: 1.8; }
body.frontend-theme :is(#DivPromoDetail, .divContentImage) img { max-width: 100%; height: auto; border-radius: 12px; }
body.frontend-theme :is(.divContentVideo video, .divContentImage video) { max-width: 100%; border-radius: 14px; }
body.frontend-theme .divSelect { background: var(--premium-surface) !important; border: 1px solid var(--premium-line); border-radius: 10px; }
body.frontend-theme .divSelect.selected { background: #d6b87519 !important; border-color: #d6b875; }
body.frontend-theme .divSelect.selected h5 { color: #e1c587 !important; }
body.frontend-theme :is(.darken-layout, .footer, .sub-footer.dark-subfooter) { background: #0d131e !important; border-top: 1px solid var(--premium-line); }
body.frontend-theme .footer-theme :is(p, li a span), body.frontend-theme .sub-footer p { color: var(--premium-muted) !important; }
body.frontend-theme .footer-theme h4 { color: #e1c587; }
body.frontend-theme.frontend-lobby #SectionGames + div[style="height: 150px;"] { height: 32px !important; }
body.frontend-theme.frontend-lobby .footer-links-heading,
body.frontend-theme.frontend-lobby .footer-link-icon { display: none; }
body.frontend-theme.frontend-lobby .footer-language { margin-top: 16px; }
body.frontend-theme.frontend-lobby .footer-language-title { margin-bottom: 9px; color: var(--premium-muted); font-size: 12px; font-weight: 700; letter-spacing: .04em; }
body.frontend-theme.frontend-lobby .footer-language-options { display: flex; flex-wrap: wrap; gap: 7px; }
body.frontend-theme.frontend-lobby .footer-language-option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 36px;
    padding: 7px 10px;
    border: 1px solid #d6b87538;
    border-radius: 10px;
    background: #d6b8750b;
    color: var(--premium-text);
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease;
}
body.frontend-theme.frontend-lobby .footer-language-option img { width: 16px; height: 16px; border-radius: 50%; object-fit: cover; }
body.frontend-theme.frontend-lobby .footer-language-option[aria-pressed="true"] { background: #d6b87524; border-color: #d6b875a0; color: #f0d9a4; }
body.frontend-theme.frontend-lobby .footer-language-option:hover { background: #d6b8751c; border-color: #d6b87580; }
body.frontend-theme.frontend-lobby:not(.dark) .footer-language-option[aria-pressed="true"] { background: #e7d4aa; border-color: #b59659; color: #4d3b1d; }
body.frontend-theme.frontend-status #form1 {
    max-width: 600px;
    margin: 12vh auto;
    padding: 40px;
    background: var(--premium-surface);
    border: 1px solid var(--premium-line);
    border-radius: 20px;
    box-shadow: 0 24px 64px #0005;
    text-align: center;
}

/* Honour the lobby's existing saved light-mode preference and theme switch. */
body.frontend-theme.frontend-lobby:not(.dark) {
    --premium-bg: #f5f3ee;
    --premium-surface: #ffffff;
    --premium-raised: #ede9e0;
    --premium-line: #b2935538;
    --premium-text: #202b3b;
    --premium-muted: #596576;
    background: radial-gradient(ellipse at 50% 0, #fffdf7, #f3f1eb 80%) fixed !important;
    color-scheme: light;
}
body.frontend-theme.frontend-lobby:not(.dark) :is(header, .header, .tf-statusbar, .bottom-navigation-bar) { background: #fffdf8 !important; }
body.frontend-theme.frontend-lobby:not(.dark) .game-type-menu { background: linear-gradient(145deg, #fffdf8, #eae5d9) !important; box-shadow: 0 12px 30px #4f402019, inset 0 1px #fff; }
body.frontend-theme.frontend-lobby:not(.dark) .game-type-menu-item { color: #465064 !important; }
body.frontend-theme.frontend-lobby:not(.dark) .game-type-menu-item .game-type-menu-item-icon { color: #85682f; border-color: #aa8b4d40; background: #b79a5f12; }
body.frontend-theme.frontend-lobby:not(.dark) .game-type-menu-item.active { color: #191b22 !important; }
body.frontend-theme.frontend-lobby:not(.dark) .game-type-menu-item.active .game-type-menu-item-icon { color: #35280f; background: #ffffff45; }
body.frontend-theme.frontend-lobby:not(.dark) .game-type-menu-item:hover:not(.active) { color: #202b3b !important; background: #ffffff99; }
body.frontend-theme.frontend-lobby:not(.dark) :is(.form-control, .group-input input, .group-input select, .tf-form input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=submit]), .tf-form select, .tf-form textarea, .search-field) { background: #fff !important; border-color: #ccc7bb !important; }
body.frontend-theme.frontend-lobby:not(.dark) :is(.group-input label, .tf-form label, .list-profile p, .box-profile p, .balance-header .title, .balance-card .action span) { color: #465064 !important; }
body.frontend-theme.frontend-lobby:not(.dark) :is(.balance-card, .wallet-bg, .tf-balance-box, .box-profile, #ProfileModal a.list-profile, .divPanelProfileName, .box-settings-profile) { background: linear-gradient(135deg, #fffdf8, #eee7d9) !important; }
body.frontend-theme.frontend-lobby:not(.dark) :is(.auth-forgot-password, .back-btn, .clear-panel, .tf-panel .text-primary, .balance-card .balance-amount) { color: #806126 !important; }
body.frontend-theme.frontend-lobby:not(.dark) :is(.btn-outline, .btnDivProfileMobileRegister) { color: #806126 !important; }
body.frontend-theme.frontend-lobby:not(.dark) :is(.darken-layout, .sub-footer.dark-subfooter) { background: #eae6dc !important; }
body.frontend-theme.frontend-lobby:not(.dark) .footer-theme h4 { color: #806126; }
body.frontend-theme.frontend-lobby:not(.dark) :is(#history_table, #credit_div2) th { background: #e9e5dc !important; color: #806126 !important; }
body.frontend-theme.frontend-lobby:not(.dark) :is(#history_table, #credit_div2) td { background: #fff; color: #465064; }

/* Profile drawer: account identity, balance, and account actions. */
body.frontend-theme.frontend-lobby #ProfileModal .profile-panel {
    background: #101824 !important;
    border-left: 1px solid var(--premium-line);
    scrollbar-width: thin;
    scrollbar-color: #826f4b transparent;
}
body.frontend-theme.frontend-lobby #ProfileModal .profile-panel-header {
    position: sticky;
    z-index: 2;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 74px;
    padding: 16px 24px;
    border-bottom: 1px solid var(--premium-line);
    background: #101824;
}
body.frontend-theme.frontend-lobby #ProfileModal .profile-panel-header h3 { margin: 0; color: var(--premium-text) !important; font-size: 20px; font-weight: 700; text-transform: none; }
body.frontend-theme.frontend-lobby #ProfileModal .profile-close {
    display: inline-flex;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid #d6b87530;
    border-radius: 12px;
    background: #d6b8750c;
    color: #dec48e;
    font-size: 22px;
    cursor: pointer;
}
body.frontend-theme.frontend-lobby #ProfileModal .profile-close:hover { background: #d6b87520; border-color: #d6b87570; }
body.frontend-theme.frontend-lobby #ProfileModal .profile-panel-content { padding: 24px 24px calc(32px + env(safe-area-inset-bottom, 0px)); }
body.frontend-theme.frontend-lobby #ProfileModal :is(.profile-identity, .profile-balance, .profile-action) {
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
    text-align: left;
    text-decoration: none;
    font: inherit;
    cursor: pointer;
}
body.frontend-theme.frontend-lobby #ProfileModal .profile-identity {
    gap: 16px;
    min-height: 104px;
    padding: 18px;
    border: 1px solid #d6b87538 !important;
    border-radius: 18px;
    background: linear-gradient(125deg, #263448, #172232) !important;
    box-shadow: 0 12px 30px #0003;
    color: var(--premium-text);
}
body.frontend-theme.frontend-lobby #ProfileModal .profile-avatar {
    display: flex;
    flex: 0 0 56px;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    padding: 6px;
    border: 1px solid #d6b87552;
    border-radius: 17px;
    background: #0e1621;
}
body.frontend-theme.frontend-lobby #ProfileModal .profile-avatar img { max-width: 100%; max-height: 100%; object-fit: contain; }
body.frontend-theme.frontend-lobby #ProfileModal :is(.profile-identity-copy, .profile-balance-copy, .profile-action-copy) { display: flex; flex: 1 1 auto; flex-direction: column; align-items: flex-start; min-width: 0; gap: 4px; }
body.frontend-theme.frontend-lobby #ProfileModal :is(.profile-eyebrow, .profile-balance-label, .profile-action-detail) { color: #aeb9ca; font-size: 12px; font-weight: 600; line-height: 1.3; }
body.frontend-theme.frontend-lobby #ProfileModal #KeyUsername { max-width: 100%; color: var(--premium-text) !important; font-size: 21px; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
body.frontend-theme.frontend-lobby #ProfileModal .profile-chevron { flex: 0 0 auto; color: #b8a77f; font-size: 21px; line-height: 1; }
body.frontend-theme.frontend-lobby #ProfileModal .profile-balance {
    gap: 14px;
    min-height: 86px;
    margin-top: 14px;
    padding: 15px 18px;
    border: 1px solid #d6b87538;
    border-radius: 16px;
    background: #d6b8750d;
    color: var(--premium-text);
}
body.frontend-theme.frontend-lobby #ProfileModal .profile-icon {
    display: inline-flex;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid #d6b87530;
    border-radius: 13px;
    background: #d6b87510;
    color: #ddc18a;
    font-size: 17px;
}
body.frontend-theme.frontend-lobby #ProfileModal .profile-balance-value { color: #f0d9a4; font-size: 23px; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
body.frontend-theme.frontend-lobby #ProfileModal .profile-section-title { margin: 27px 2px 11px; color: #aeb9ca; font-size: 12px; font-weight: 700; letter-spacing: .05em; }
body.frontend-theme.frontend-lobby #ProfileModal .profile-actions { display: grid; gap: 8px; }
body.frontend-theme.frontend-lobby #ProfileModal .profile-action {
    gap: 13px;
    min-height: 66px;
    padding: 11px 14px;
    border: 1px solid #ffffff10;
    border-radius: 14px;
    background: #1a2534;
    color: var(--premium-text);
}
body.frontend-theme.frontend-lobby #ProfileModal .profile-action-label { color: inherit; font-size: 14px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
body.frontend-theme.frontend-lobby #ProfileModal .profile-action-detail:empty { display: none; }
body.frontend-theme.frontend-lobby #ProfileModal :is(.profile-identity, .profile-balance, .profile-action):hover { border-color: #d6b87580 !important; filter: brightness(1.08); }
body.frontend-theme.frontend-lobby #ProfileModal .profile-signout { margin-top: 7px; border-color: #d4787830; background: #b75a5a0d; color: #f0c5c0; }
body.frontend-theme.frontend-lobby #ProfileModal .profile-signout .profile-icon { border-color: #d4787838; background: #d4787812; color: #e4a49d; }
body.frontend-theme.frontend-lobby:not(.dark) #ProfileModal .profile-panel,
body.frontend-theme.frontend-lobby:not(.dark) #ProfileModal .profile-panel-header { background: #f7f5ef !important; }
body.frontend-theme.frontend-lobby:not(.dark) #ProfileModal .profile-identity { background: linear-gradient(125deg, #fffdf8, #eee6d6) !important; }
body.frontend-theme.frontend-lobby:not(.dark) #ProfileModal .profile-avatar { background: #fffdf8; }
body.frontend-theme.frontend-lobby:not(.dark) #ProfileModal :is(.profile-eyebrow, .profile-balance-label, .profile-action-detail, .profile-section-title) { color: #667282; }
body.frontend-theme.frontend-lobby:not(.dark) #ProfileModal .profile-balance { background: #e9d6ae48; }
body.frontend-theme.frontend-lobby:not(.dark) #ProfileModal .profile-balance-value,
body.frontend-theme.frontend-lobby:not(.dark) #ProfileModal .profile-icon,
body.frontend-theme.frontend-lobby:not(.dark) #ProfileModal .profile-chevron,
body.frontend-theme.frontend-lobby:not(.dark) #ProfileModal .profile-close { color: #806126; }
body.frontend-theme.frontend-lobby:not(.dark) #ProfileModal .profile-action { background: #fff; border-color: #b2935530; }
body.frontend-theme.frontend-lobby:not(.dark) #ProfileModal .profile-signout { color: #923f3f; background: #f9ece9; border-color: #d4787840; }
body.frontend-theme.frontend-lobby:not(.dark) #ProfileModal .profile-signout .profile-icon { color: #a75151; }

/* The signed-in balance and its four account shortcuts. */
body.frontend-theme.frontend-lobby .balance-section { padding: 0; margin: 24px 0 8px; }
body.frontend-theme.frontend-lobby .balance-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(230px, .9fr) minmax(0, 2fr);
    align-items: center;
    gap: 28px;
    overflow: hidden;
    margin: 0;
    padding: 24px 28px;
    border-radius: 20px;
    background: linear-gradient(115deg, #202d3f, #141d2a 66%, #1b2533) !important;
    box-shadow: 0 16px 40px #0003, inset 0 1px #ffffff0c;
}
body.frontend-theme.frontend-lobby .balance-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(180deg, #f0d9a0, #96733c);
}
body.frontend-theme.frontend-lobby .balance-summary { display: flex; align-items: center; gap: 17px; min-width: 0; }
body.frontend-theme.frontend-lobby .balance-wallet-icon {
    display: flex;
    flex: 0 0 54px;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border: 1px solid #d6b87548;
    border-radius: 17px;
    background: linear-gradient(145deg, #d6b87524, #d6b87508);
    color: #e5cb94;
    font-size: 21px;
}
body.frontend-theme.frontend-lobby .balance-details { min-width: 0; }
body.frontend-theme.frontend-lobby .balance-header { text-align: left; }
body.frontend-theme.frontend-lobby .balance-header .title { color: #aeb8c7 !important; font-size: 13px; font-weight: 600; letter-spacing: .02em; }
body.frontend-theme.frontend-lobby .balance-amount { margin: 4px 0 0; color: #f3dfb0; font-size: clamp(25px, 2.2vw, 32px); font-weight: 700; line-height: 1.15; text-align: left; letter-spacing: -.02em; }
body.frontend-theme.frontend-lobby .balance-currency { font-size: .65em; color: #cfb37a; vertical-align: .12em; }
body.frontend-theme.frontend-lobby .balance-card .actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0; }
body.frontend-theme.frontend-lobby .balance-card .action {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 10px;
    min-width: 0;
    min-height: 66px;
    padding: 10px;
    border: 1px solid #ffffff10;
    border-radius: 13px;
    background: #ffffff08;
    color: #e5eaf1;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
body.frontend-theme.frontend-lobby .balance-card .action .icon {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    margin: 0;
    border-radius: 11px;
    font-size: 16px;
}
body.frontend-theme.frontend-lobby .balance-card .action span:last-child { color: inherit !important; overflow-wrap: anywhere; line-height: 1.25; }
body.frontend-theme.frontend-lobby .balance-card .action-deposit { background: #d6b87518; border-color: #d6b8754d; color: #f0d9a4; }
body.frontend-theme.frontend-lobby .balance-card .action:hover { background: #d6b87520; border-color: #d6b87570; transform: translateY(-2px); }
body.frontend-theme.frontend-lobby:not(.dark) .balance-card { background: linear-gradient(115deg, #fffdf8, #f0e9dd) !important; }
body.frontend-theme.frontend-lobby:not(.dark) .balance-header .title { color: #697383 !important; }
body.frontend-theme.frontend-lobby:not(.dark) .balance-wallet-icon { color: #806126; border-color: #b2935555; }
body.frontend-theme.frontend-lobby:not(.dark) .balance-card .action { color: #344052; background: #ffffff9e; border-color: #b2935530; }
body.frontend-theme.frontend-lobby:not(.dark) .balance-card .action-deposit { color: #624b20; background: #e8d3a763; border-color: #b2935570; }
body.frontend-theme.frontend-lobby:not(.dark) .balance-card .action .icon { color: #806126 !important; }

/* Empty recent history lives in the same result area as the other categories. */
body.frontend-theme.frontend-lobby .recent-empty {
    margin: 12px 0 0;
    padding: 38px 20px;
    border: 1px dashed var(--premium-line);
    border-radius: 16px;
    background: #ffffff05;
    text-align: center;
}
body.frontend-theme.frontend-lobby .recent-empty-icon { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border: 1px solid #d6b87538; border-radius: 15px; color: #d6b875; background: #d6b87510; font-size: 19px; }
body.frontend-theme.frontend-lobby .recent-empty p { margin: 12px 0 0; color: var(--premium-muted); }

@media (max-width: 991px) {
    body.frontend-theme .game-type-menu-wrapper { width: 100%; max-width: 720px; }
    body.frontend-theme .game-type-menu { display: flex; width: 100%; gap: 2px; padding: 5px; }
    body.frontend-theme .game-type-menu-item { flex: 1 1 0; min-width: 0; flex-direction: column; gap: 4px; padding: 7px 2px; font-size: 11px; }
    body.frontend-theme .game-type-menu-item .game-type-menu-item-icon { flex: 0 0 22px; width: 22px; height: 22px; border: 0; background: transparent; }
}
@media (min-width: 992px) {
    body.frontend-theme .tf-panel .panel-sidebar { max-width: 560px; }
    body.frontend-theme .tf-panel .panel-sidebar .header.is-fixed { width: 100%; max-width: 560px; }
    body.frontend-theme .tf-panel .panel-sidebar .tf-container { max-width: 100%; }
}
@media (min-width: 421px) {
    body.frontend-theme .sweet-modal-overlay.open .sweet-modal-box { overflow: hidden; }
}
@media (max-width: 767px) {
    body.frontend-theme { font-size: 14px; }
    body.frontend-theme .main-menu { min-height: 66px; }
    body.frontend-theme .main-menu .brand-logo { padding-top: 10px; padding-bottom: 10px; }
    body.frontend-theme.frontend-lobby { --lobby-content-width: calc(100% - 24px); }
    body.frontend-theme.frontend-lobby #form1 > div > .swiper { margin-top: 12px; border-radius: 12px; }
    body.frontend-theme :is(.swiper-button-prev, .swiper-button-next) { width: 30px; height: 30px; --swiper-navigation-size: 13px; }
    body.frontend-theme #SectionGames { margin-top: 22px !important; }
    body.frontend-theme .game-type-menu-wrapper { width: 100%; max-width: 520px; margin-bottom: 16px; }
    body.frontend-theme .game-type-menu { display: flex; width: 100%; gap: 2px; padding: 5px; border-radius: 16px; }
    body.frontend-theme .game-type-menu-item { flex: 1 1 0; min-width: 0; min-height: 62px; flex-direction: column; gap: 4px; padding: 7px 2px; border-radius: 11px; font-size: 11px; }
    body.frontend-theme .game-type-menu-item .game-type-menu-item-icon { flex: 0 0 22px; width: 22px; height: 22px; border: 0; background: transparent; }
    body.frontend-theme .game-type-menu-item .game-type-menu-item-icon svg { width: 19px; height: 19px; }
    body.frontend-theme :is(#divGameListGamesHot, #divGameListGamesPlayed) .games-all .game-grid { gap: 10px; }
    body.frontend-theme :is(#divGameListGamesHot, #divGameListGamesPlayed) .games-all .game-card { border-radius: 12px; }
    body.frontend-theme :is(#divGameListGamesHot, #divGameListGamesPlayed) .games-all .game-frame { border-radius: 10px; }
    body.frontend-theme :is(#divGameListGamesHot, #divGameListGamesPlayed) .games-all .text-panel { min-height: 54px; padding: 14px 4px 8px; }
    body.frontend-theme :is(#divGameListGamesHot, #divGameListGamesPlayed) .games-all .subtitle { font-size: 9px; margin-top: 4px; }
    body.frontend-theme :is(.tf-panel .tf-container, .modal-body) { padding-left: 18px; padding-right: 18px; }
    body.frontend-theme.frontend-lobby .balance-section { margin: 16px 0 4px; }
    body.frontend-theme.frontend-lobby .balance-card { grid-template-columns: 1fr; gap: 20px; padding: 20px; }
    body.frontend-theme.frontend-lobby .balance-card .actions { gap: 7px; }
    body.frontend-theme.frontend-lobby .balance-card .action { flex-direction: column; gap: 6px; min-height: 80px; padding: 9px 3px; font-size: 11px; }
    body.frontend-theme.frontend-lobby .balance-card .action .icon { flex-basis: 32px; width: 32px; height: 32px; font-size: 15px; }
    body.frontend-theme .tf-form h1 { font-size: 26px; }
    body.frontend-theme .bottom-navigation-bar { padding-bottom: env(safe-area-inset-bottom, 0px); border-top: 1px solid var(--premium-line); }
    body.frontend-theme.frontend-status #form1 { margin: 8vh 16px; padding: 28px 20px; }

}
@media (max-width: 1199px) {
    body.frontend-theme.frontend-lobby .footer-style-1 { position: relative; z-index: 100; }
    body.frontend-theme.frontend-lobby .footer-style-1 .darken-layout { padding: 30px 0 26px; }
    body.frontend-theme.frontend-lobby .footer-style-1 .container { width: var(--lobby-content-width); max-width: var(--lobby-content-max-width); padding: 0; }
    body.frontend-theme.frontend-lobby .footer-style-1 .footer-theme { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin: 0; }
    body.frontend-theme.frontend-lobby .footer-theme > .footer-brand-column { grid-column: 1 / -1; width: auto; padding: 0 0 20px; margin: 0 0 8px; border-bottom: 1px solid var(--premium-line); }
    body.frontend-theme.frontend-lobby .footer-brand-column > div { display: flex; align-items: center; gap: 18px; }
    body.frontend-theme.frontend-lobby .footer-brand-column .footer-logo { flex: 0 0 72px; margin: 0; }
    body.frontend-theme.frontend-lobby .footer-brand-column .footer-logo img { width: 72px; height: auto; }
    body.frontend-theme.frontend-lobby .footer-brand-column .footer-language { flex: 1 1 auto; min-width: 0; margin: 0; }
    body.frontend-theme.frontend-lobby .footer-brand-column .footer-language-options { gap: 5px; }
    body.frontend-theme.frontend-lobby .footer-brand-column .footer-language-option { min-height: 34px; padding: 6px 8px; font-size: 11px; }
    body.frontend-theme.frontend-lobby .footer-links-heading { display: block; grid-column: 1 / -1; margin: 0; padding: 0 1px 4px; color: var(--premium-muted); font-size: 12px; font-weight: 700; letter-spacing: .04em; }
    body.frontend-theme.frontend-lobby .footer-theme > div:not(.footer-brand-column):not(.footer-links-heading),
    body.frontend-theme.frontend-lobby .footer-theme > div:not(.footer-brand-column) .sub-title,
    body.frontend-theme.frontend-lobby .footer-theme .footer-content,
    body.frontend-theme.frontend-lobby .footer-theme .footer-content ul { display: contents !important; }
    body.frontend-theme.frontend-lobby .footer-theme .footer-content li { min-width: 0; margin: 0; padding: 0; }
    body.frontend-theme.frontend-lobby .footer-theme .footer-content li a {
        display: flex;
        align-items: center;
        gap: 10px;
        min-height: 50px;
        padding: 8px 10px;
        border: 1px solid #d6b87520;
        border-radius: 12px;
        background: #ffffff08;
        font-size: 12px;
        font-weight: 600;
        line-height: 1.3;
        text-transform: none;
    }
    body.frontend-theme.frontend-lobby .footer-theme .footer-content li a span { color: var(--premium-text) !important; overflow-wrap: anywhere; }
    body.frontend-theme.frontend-lobby .footer-theme .footer-content li a .sub-arrow { display: none; }
    body.frontend-theme.frontend-lobby .footer-theme .footer-link-icon { display: inline-flex; flex: 0 0 30px; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 9px; background: #d6b87513; color: #dfc38a; font-size: 14px; }
    body.frontend-theme.frontend-lobby .footer-theme .footer-content li a:hover { background: #d6b87517; border-color: #d6b87555; }
    body.frontend-theme.frontend-lobby .footer-style-1 .sub-footer { padding: 18px 0 22px; }
    body.frontend-theme.frontend-lobby .footer-style-1 .sub-footer .row { margin: 0; }
    body.frontend-theme.frontend-lobby .footer-style-1 .footer-end p { margin: 0 !important; font-size: 12px; line-height: 1.6; }
    body.frontend-theme.frontend-lobby:not(.dark) .footer-theme .footer-content li a { background: #ffffff80; border-color: #b2935530; }
    body.frontend-theme.frontend-lobby:not(.dark) .footer-theme .footer-link-icon { background: #b293551c; color: #806126; }
}
@media (min-width: 768px) and (max-width: 1199px) {
    body.frontend-theme.frontend-lobby .footer-style-1 .darken-layout { padding: 38px 0 34px; }
    body.frontend-theme.frontend-lobby .footer-style-1 .footer-theme { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
    body.frontend-theme.frontend-lobby .footer-theme > .footer-brand-column { padding-bottom: 24px; margin-bottom: 12px; }
    body.frontend-theme.frontend-lobby .footer-brand-column .footer-logo { flex-basis: 88px; }
    body.frontend-theme.frontend-lobby .footer-brand-column .footer-logo img { width: 88px; }
    body.frontend-theme.frontend-lobby .footer-brand-column .footer-language-option { min-height: 40px; padding: 8px 12px; font-size: 12px; }
    body.frontend-theme.frontend-lobby .footer-theme .footer-content li a { min-height: 56px; padding: 10px 13px; font-size: 13px; }
    body.frontend-theme.frontend-lobby .footer-theme .footer-link-icon { flex-basis: 34px; width: 34px; height: 34px; font-size: 15px; }
}
@media (min-width: 768px) and (max-width: 991px) {
    body.frontend-theme.frontend-lobby .balance-card { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 639px) {
    body.frontend-theme #ModalDepositAlert .modal-dialog { width: calc(100% - 24px); margin: 12px auto; }
    body.frontend-theme #ModalDepositAlert .modal-content { max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); border-radius: 18px; }
    body.frontend-theme #ModalDepositAlertMessage { padding: 26px 24px 20px !important; font-size: 14px; }
    body.frontend-theme #ModalDepositAlertMessage :is(h1, h2, h3) { font-size: 19px; }
    body.frontend-theme #ModalDepositAlertMessage + div { padding: 14px 20px 18px !important; }
}
@media (max-width: 600px) {
    /* Keep content reachable behind the floating mobile shortcuts. */
    body.frontend-theme.frontend-lobby #form1 { padding-bottom: calc(98px + env(safe-area-inset-bottom, 0px)); }
    body.frontend-theme.frontend-lobby .bottom-nav {
        position: fixed;
        z-index: 900;
        left: 10px;
        right: 10px;
        bottom: calc(10px + env(safe-area-inset-bottom, 0px));
        width: auto;
        max-width: 540px;
        height: 72px;
        margin: 0 auto;
        padding: 5px 6px;
        align-items: center;
        justify-content: space-between;
        border: 1px solid #d6b87540;
        border-radius: 20px;
        background: linear-gradient(145deg, #1c2736f7, #111824f7) !important;
        box-shadow: 0 14px 38px #0008, inset 0 1px #ffffff12;
        backdrop-filter: blur(14px);
    }
    body.frontend-theme.frontend-lobby .bottom-nav .nav-item {
        flex: 1 1 0;
        align-items: center;
        justify-content: center;
        gap: 5px;
        min-width: 0;
        min-height: 58px;
        padding: 7px 2px;
        border: 0;
        border-radius: 12px;
        background: transparent;
        color: #b5bfcd;
        font: inherit;
        cursor: pointer;
    }
    body.frontend-theme.frontend-lobby .bottom-nav .nav-item .icon { display: block; margin: 0; color: #d7bf8c; font-size: 18px; line-height: 1; }
    body.frontend-theme.frontend-lobby .bottom-nav .nav-item .icon:hover { transform: none; }
    body.frontend-theme.frontend-lobby .bottom-nav .nav-item .label { max-width: 100%; font-size: clamp(9px, 2.6vw, 11px); font-weight: 600; line-height: 1.2; text-align: center; overflow-wrap: anywhere; }
    body.frontend-theme.frontend-lobby .bottom-nav .nav-item:hover,
    body.frontend-theme.frontend-lobby .bottom-nav .nav-item:focus-visible { background: #d6b87517; color: #fff; }
    body.frontend-theme.frontend-lobby .bottom-nav .nav-center { position: relative; top: -14px; display: flex; flex: 1 1 0; align-items: center; justify-content: center; min-width: 0; }
    body.frontend-theme.frontend-lobby .bottom-nav .home-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 56px;
        height: 56px;
        padding: 0;
        border: 4px solid #17202c;
        border-radius: 18px;
        background: linear-gradient(145deg, #f1dda9, #c49d57) !important;
        color: #20232a;
        font-size: 22px;
        box-shadow: 0 7px 18px #0006, 0 0 0 1px #e3c9897a;
        cursor: pointer;
    }
    body.frontend-theme.frontend-lobby .bottom-nav .home-btn:hover { filter: brightness(1.08); }
    body.frontend-theme.frontend-lobby:not(.dark) .bottom-nav { background: linear-gradient(145deg, #fffdf8f7, #eee9def7) !important; border-color: #b2935555; box-shadow: 0 12px 35px #594a2b35, inset 0 1px #fff; }
    body.frontend-theme.frontend-lobby:not(.dark) .bottom-nav .nav-item { color: #566171; }
    body.frontend-theme.frontend-lobby:not(.dark) .bottom-nav .nav-item .icon { color: #896a30; }
    body.frontend-theme.frontend-lobby:not(.dark) .bottom-nav .nav-item:hover,
    body.frontend-theme.frontend-lobby:not(.dark) .bottom-nav .nav-item:focus-visible { background: #b2935520; color: #242e3d; }
    body.frontend-theme.frontend-lobby:not(.dark) .bottom-nav .home-btn { border-color: #f5f0e6; }
}
@media (max-width: 420px) {
    body.frontend-theme .sweet-modal-overlay.open .sweet-modal-box { border-radius: 0; }
    body.frontend-theme .sweet-modal-title-wrap { padding-left: 22px; }
    body.frontend-theme .sweet-modal-content { max-height: calc(100vh - 200px); max-height: calc(100dvh - 200px); overflow-y: auto; padding-left: 22px; padding-right: 22px; }
}
@media (max-width: 359px) {
    body.frontend-theme .game-type-menu-item { font-size: 10px; }
    body.frontend-theme.frontend-lobby .balance-card .actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body.frontend-theme.frontend-lobby .balance-card .action { flex-direction: row; min-height: 54px; gap: 8px; font-size: 12px; }
    body.frontend-theme.frontend-lobby .footer-brand-column > div { gap: 12px; }
    body.frontend-theme.frontend-lobby .footer-brand-column .footer-logo { flex-basis: 56px; }
    body.frontend-theme.frontend-lobby .footer-brand-column .footer-logo img { width: 56px; }
    body.frontend-theme.frontend-lobby .footer-brand-column .footer-language-option { gap: 5px; padding: 6px; }
}
@media (prefers-reduced-motion: reduce) {
    body.frontend-theme *, body.frontend-theme *::before, body.frontend-theme *::after { scroll-behavior: auto !important; transition: none !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Account panels share the profile drawer's surfaces and controls. */
body.frontend-theme.frontend-lobby :is(#CreditModal, #ChangePwdModal, #BankModal, #ProfileDetailsModal) .account-panel { background: #101824 !important; border-left: 1px solid var(--premium-line); scrollbar-width: thin; scrollbar-color: #826f4b transparent; }
body.frontend-theme.frontend-lobby :is(#CreditModal, #ChangePwdModal, #BankModal, #ProfileDetailsModal, #QrModal) .account-panel-header { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 14px; min-height: 74px; padding: 16px 24px; border-bottom: 1px solid var(--premium-line); background: #101824; }
body.frontend-theme.frontend-lobby :is(#CreditModal, #ChangePwdModal, #BankModal, #ProfileDetailsModal, #QrModal) .account-panel-header h3 { flex: 1; min-width: 0; margin: 0; color: var(--premium-text) !important; font-size: 20px; font-weight: 700; text-transform: none; }
body.frontend-theme.frontend-lobby :is(#CreditModal, #ChangePwdModal, #BankModal, #ProfileDetailsModal, #QrModal) .account-panel-nav { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 38px; width: 38px; height: 38px; padding: 0; border: 1px solid #d6b87530; border-radius: 12px; background: #d6b8750c; color: #dec48e !important; font-size: 22px; line-height: 1; text-decoration: none; cursor: pointer; }
body.frontend-theme.frontend-lobby :is(#CreditModal, #ChangePwdModal, #BankModal, #ProfileDetailsModal, #QrModal) .account-panel-nav:hover { border-color: #d6b87580; background: #d6b87520; }
body.frontend-theme.frontend-lobby :is(#CreditModal, #ChangePwdModal, #BankModal, #ProfileDetailsModal) .account-panel-content { padding: 24px 24px calc(32px + env(safe-area-inset-bottom, 0px)); }
body.frontend-theme.frontend-lobby :is(#ChangePwdModal, #BankModal, #ProfileDetailsModal) .account-form-card, body.frontend-theme.frontend-lobby #BankModal #DivBankList > div { padding: 22px; border: 1px solid #d6b87530; border-radius: 18px; background: #192433; box-shadow: 0 12px 30px #0002; }
body.frontend-theme.frontend-lobby :is(#ChangePwdModal, #BankModal, #ProfileDetailsModal) .group-input { position: relative; margin: 0 0 20px; }
body.frontend-theme.frontend-lobby :is(#ChangePwdModal, #BankModal, #ProfileDetailsModal) .group-input > label { position: static !important; display: block; padding: 0; margin: 0 0 8px; background: transparent !important; color: #b7c3d3 !important; font-size: 13px; line-height: 1.4; }
body.frontend-theme.frontend-lobby :is(#ChangePwdModal, #BankModal, #ProfileDetailsModal) .group-input :is(input, select) { width: 100%; min-height: 50px; padding: 12px 14px; }
body.frontend-theme.frontend-lobby :is(#ChangePwdModal, #BankModal, #ProfileDetailsModal) input[readonly] { color: #e8edf4 !important; }
body.frontend-theme.frontend-lobby :is(#CreditModal, #ChangePwdModal, #BankModal) .account-form-submit { margin-top: 24px; }
body.frontend-theme.frontend-lobby :is(#CreditModal, #ChangePwdModal, #BankModal) .account-form-submit .tf-btn { width: 100%; min-height: 50px; display: flex; justify-content: center; align-items: center; text-align: center; }
body.frontend-theme.frontend-lobby #BankModal .account-bank-toolbar { display: flex; justify-content: flex-end; margin-bottom: 16px; }
body.frontend-theme.frontend-lobby #BankModal .account-bank-toolbar:has(a[style*="display: none"]) { margin-bottom: 0; }
body.frontend-theme.frontend-lobby #BankModal #add_bank_btn { padding: 10px 14px; border: 1px solid #d6b87555; border-radius: 10px; background: #d6b87515; color: #e9ce95 !important; }
body.frontend-theme.frontend-lobby #BankModal .account-bank-new { margin-bottom: 16px; }
body.frontend-theme.frontend-lobby #BankModal .account-bank-new h4 { margin: 0 0 20px; font-size: 16px; }
body.frontend-theme.frontend-lobby #BankModal #DivBankList > div { margin-bottom: 14px !important; }
body.frontend-theme.frontend-lobby #BankModal #DivBankList > div > label { position: static !important; display: block; margin: 0 0 16px; color: #e4c78e !important; font-weight: 700; }
body.frontend-theme.frontend-lobby #BankModal #DivBankList > div > div { padding: 0 !important; }
body.frontend-theme.frontend-lobby #CreditModal .tf-balance-box { padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; }
body.frontend-theme.frontend-lobby #CreditModal .account-credit-summary { display: flex; align-items: center; gap: 15px; padding: 20px; border: 1px solid #d6b87540; border-radius: 18px; background: linear-gradient(125deg, #263448, #172232); }
body.frontend-theme.frontend-lobby #CreditModal .account-credit-icon { display: grid; place-items: center; flex: 0 0 48px; height: 48px; border: 1px solid #d6b87540; border-radius: 14px; background: #d6b87512; color: #e3c68d; font-size: 19px; }
body.frontend-theme.frontend-lobby #CreditModal .account-credit-summary p { margin: 0 0 5px; color: #b7c3d3; font-size: 13px; }
body.frontend-theme.frontend-lobby #CreditModal :is(.account-credit-summary h2, .account-credit-total h2) { margin: 0; color: #f0d9a4 !important; font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
body.frontend-theme.frontend-lobby #CreditModal .account-credit-table { margin-top: 20px; border: 1px solid #d6b87530; border-radius: 14px; overflow: auto; }
body.frontend-theme.frontend-lobby #CreditModal #credit_div2 { width: 100%; border-collapse: collapse; }
body.frontend-theme.frontend-lobby #CreditModal #credit_div2 :is(th, td) { padding: 12px 14px; border: 0; border-bottom: 1px solid #ffffff12; background: #192433 !important; color: #e7edf5 !important; }
body.frontend-theme.frontend-lobby #CreditModal #credit_div2 th { background: #202d3d !important; color: #d8c18e !important; }
body.frontend-theme.frontend-lobby #CreditModal .account-credit-total { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; padding: 17px 20px; border: 1px solid #d6b87530; border-radius: 14px; background: #d6b8750d; color: #bdc7d4; }
body.frontend-theme.frontend-lobby #CreditModal .account-credit-total h2 { font-size: 20px; }
body.frontend-theme.frontend-lobby #ProfileDetailsModal .account-details-identity { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; padding: 20px; border: 1px solid #d6b87538; border-radius: 18px; background: linear-gradient(125deg, #263448, #172232); }
body.frontend-theme.frontend-lobby #ProfileDetailsModal .account-details-avatar { display: grid; place-items: center; flex: 0 0 56px; width: 56px; height: 56px; padding: 6px; border: 1px solid #d6b87552; border-radius: 17px; background: #0e1621; }
body.frontend-theme.frontend-lobby #ProfileDetailsModal .account-details-avatar img { max-width: 100%; max-height: 100%; object-fit: contain; }
body.frontend-theme.frontend-lobby #ProfileDetailsModal .account-details-identity span { color: #aeb9ca; font-size: 12px; font-weight: 600; }
body.frontend-theme.frontend-lobby #ProfileDetailsModal #KeyUsername2 { margin: 4px 0 0; font-size: 21px; overflow-wrap: anywhere; }
body.frontend-theme.frontend-lobby #ProfileDetailsModal .account-details-note { margin: 2px 0 0; color: #aeb9ca; font-size: 13px; line-height: 1.6; }
body.frontend-theme.frontend-lobby #QrModal .account-qr-panel { max-height: 90vh; overflow-y: auto; border: 1px solid #d6b87538; border-radius: 20px 20px 0 0; background: #101824 !important; }
body.frontend-theme.frontend-lobby #QrModal .account-qr-actions { display: flex; align-items: center; gap: 8px; }
body.frontend-theme.frontend-lobby #QrModal .account-qr-content { display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 24px 24px calc(28px + env(safe-area-inset-bottom, 0px)); background: #101824 !important; }
body.frontend-theme.frontend-lobby #QrModal .account-qr-image { display: grid; place-items: center; width: min(100%, 270px); aspect-ratio: 1; padding: 12px; border: 1px solid #d6b87550; border-radius: 18px; background: #fff; }
body.frontend-theme.frontend-lobby #QrModal #imgQR { display: block; width: 100%; height: 100%; object-fit: contain; }
body.frontend-theme.frontend-lobby #QrModal .qrinputdiv { width: min(100%, 440px); }
body.frontend-theme.frontend-lobby #QrModal #invitelink { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #354052; border-radius: 10px; background: #0e1520; color: #e7edf5; }
body.frontend-theme.frontend-lobby:not(.dark) :is(#CreditModal, #ChangePwdModal, #BankModal, #ProfileDetailsModal) .account-panel, body.frontend-theme.frontend-lobby:not(.dark) :is(#CreditModal, #ChangePwdModal, #BankModal, #ProfileDetailsModal, #QrModal) .account-panel-header, body.frontend-theme.frontend-lobby:not(.dark) #QrModal :is(.account-qr-panel, .account-qr-content) { background: #f7f5ef !important; }
body.frontend-theme.frontend-lobby:not(.dark) :is(#ChangePwdModal, #BankModal, #ProfileDetailsModal) .account-form-card, body.frontend-theme.frontend-lobby:not(.dark) #BankModal #DivBankList > div { background: #fff; border-color: #b2935530; }
body.frontend-theme.frontend-lobby:not(.dark) :is(#ChangePwdModal, #BankModal, #ProfileDetailsModal) .group-input > label { color: #465064 !important; }
body.frontend-theme.frontend-lobby:not(.dark) :is(#ChangePwdModal, #BankModal, #ProfileDetailsModal) input[readonly] { color: #263345 !important; }
body.frontend-theme.frontend-lobby:not(.dark) :is(#CreditModal, #ChangePwdModal, #BankModal, #ProfileDetailsModal, #QrModal) .account-panel-nav { color: #806126 !important; }
body.frontend-theme.frontend-lobby:not(.dark) :is(#CreditModal .account-credit-summary, #ProfileDetailsModal .account-details-identity) { background: linear-gradient(125deg, #fffdf8, #eee6d6); }
body.frontend-theme.frontend-lobby:not(.dark) #CreditModal :is(.account-credit-summary p, .account-credit-total), body.frontend-theme.frontend-lobby:not(.dark) #ProfileDetailsModal :is(.account-details-identity span, .account-details-note) { color: #667282; }
body.frontend-theme.frontend-lobby:not(.dark) #CreditModal :is(.account-credit-summary h2, .account-credit-total h2, .account-credit-icon) { color: #806126 !important; }
body.frontend-theme.frontend-lobby:not(.dark) #CreditModal #credit_div2 :is(th, td) { background: #fff !important; border-color: #e8e1d3; color: #263345 !important; }
body.frontend-theme.frontend-lobby:not(.dark) #CreditModal #credit_div2 th { background: #f1eadc !important; color: #806126 !important; }
body.frontend-theme.frontend-lobby:not(.dark) #BankModal #add_bank_btn, body.frontend-theme.frontend-lobby:not(.dark) #BankModal #DivBankList > div > label { color: #806126 !important; }
body.frontend-theme.frontend-lobby:not(.dark) #QrModal #invitelink { background: #fff; border-color: #ccc7bb; color: #263345; }
@media (max-width: 480px) {
    body.frontend-theme.frontend-lobby :is(#CreditModal, #ChangePwdModal, #BankModal, #ProfileDetailsModal, #QrModal) .account-panel-header { padding: 14px 18px; }
    body.frontend-theme.frontend-lobby :is(#CreditModal, #ChangePwdModal, #BankModal, #ProfileDetailsModal) .account-panel-content { padding-left: 18px; padding-right: 18px; }
    body.frontend-theme.frontend-lobby :is(#ChangePwdModal, #BankModal, #ProfileDetailsModal) .account-form-card, body.frontend-theme.frontend-lobby #BankModal #DivBankList > div { padding: 18px; }
}
body.frontend-theme.frontend-lobby #QrModal .invite-copy-status { display: block; min-height: 1.4em; margin-top: 8px; color: #d9c08a; font-size: 12px; line-height: 1.4; }
body.frontend-theme.frontend-lobby:not(.dark) #QrModal .invite-copy-status { color: #806126; }

/* Game wallet list: keep the server-rendered table readable at any drawer width. */
body.frontend-theme.frontend-lobby #CreditModal .account-credit-table { overflow: hidden; border-color: #d6b8752e; border-radius: 16px; background: #192433; }
body.frontend-theme.frontend-lobby #CreditModal #credit_div2 { table-layout: fixed; border-collapse: separate; border-spacing: 0; }
body.frontend-theme.frontend-lobby #CreditModal #credit_div2 thead th { height: 44px; padding: 12px 16px; border: 0; background: #202d3d !important; color: #c9b788 !important; font-size: 11px; font-weight: 700; letter-spacing: .07em; line-height: 1.2; text-transform: uppercase; }
body.frontend-theme.frontend-lobby #CreditModal #credit_div2 thead th:first-child { width: 65%; }
body.frontend-theme.frontend-lobby #CreditModal #credit_div2 thead th:last-child { width: 35%; text-align: right; }
body.frontend-theme.frontend-lobby #CreditModal #credit_div2 tbody td { height: 76px; padding: 12px 16px; border: 0; border-top: 1px solid #ffffff10 !important; vertical-align: middle; background: #192433 !important; }
body.frontend-theme.frontend-lobby #CreditModal #credit_div2 tbody tr:hover td { background: #202d3d !important; }
body.frontend-theme.frontend-lobby #CreditModal #credit_div2 .tdGameWallet td:first-child > div { display: flex; align-items: center; gap: 13px; min-width: 0; }
body.frontend-theme.frontend-lobby #CreditModal #credit_div2 .tdGameWallet td:first-child > div > div { flex: 0 0 48px; width: 48px; height: 48px; overflow: hidden; border: 1px solid #d6b87538; border-radius: 12px; background: #101824; }
body.frontend-theme.frontend-lobby #CreditModal #credit_div2 .tdGameWallet img { display: block; width: 100% !important; height: 100%; max-width: none !important; object-fit: cover; }
body.frontend-theme.frontend-lobby #CreditModal #credit_div2 .tdGameWallet td:first-child span { min-width: 0; color: #eef1f6 !important; font-size: 14px; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
body.frontend-theme.frontend-lobby #CreditModal #credit_div2 .tdGameWallet td:last-child { text-align: right; }
body.frontend-theme.frontend-lobby #CreditModal #credit_div2 .tdGameWallet td:last-child span { color: #f0d9a4 !important; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
body.frontend-theme.frontend-lobby:not(.dark) #CreditModal .account-credit-table { background: #fff; border-color: #b2935540; }
body.frontend-theme.frontend-lobby:not(.dark) #CreditModal #credit_div2 thead th { background: #f1eadc !important; color: #806126 !important; }
body.frontend-theme.frontend-lobby:not(.dark) #CreditModal #credit_div2 tbody td { background: #fff !important; border-top-color: #e8e1d3 !important; }
body.frontend-theme.frontend-lobby:not(.dark) #CreditModal #credit_div2 tbody tr:hover td { background: #f9f5ec !important; }
body.frontend-theme.frontend-lobby:not(.dark) #CreditModal #credit_div2 .tdGameWallet td:first-child span { color: #263345 !important; }
body.frontend-theme.frontend-lobby:not(.dark) #CreditModal #credit_div2 .tdGameWallet td:last-child span { color: #806126 !important; }
@media (max-width: 480px) {
    body.frontend-theme.frontend-lobby #CreditModal #credit_div2 :is(thead th, tbody td) { padding-left: 12px; padding-right: 12px; }
    body.frontend-theme.frontend-lobby #CreditModal #credit_div2 thead th:first-child { width: 60%; }
    body.frontend-theme.frontend-lobby #CreditModal #credit_div2 thead th:last-child { width: 40%; }
    body.frontend-theme.frontend-lobby #CreditModal #credit_div2 .tdGameWallet td:first-child > div { gap: 10px; }
    body.frontend-theme.frontend-lobby #CreditModal #credit_div2 .tdGameWallet td:first-child > div > div { flex-basis: 42px; width: 42px; height: 42px; }
}

/* Deposit and withdrawal panels. */
body.frontend-theme.frontend-lobby :is(#WithdrawModal, #BankTransferModal, #InstantModal) .payment-panel { background: #101824 !important; border-left: 1px solid var(--premium-line); scrollbar-width: thin; scrollbar-color: #826f4b transparent; }
body.frontend-theme.frontend-lobby #SelectDepositModal .payment-method-panel { background: #101824 !important; border: 1px solid #d6b87538; border-radius: 20px 20px 0 0; overflow-y: auto; max-height: 90vh; }
body.frontend-theme.frontend-lobby :is(#WithdrawModal, #SelectDepositModal, #BankTransferModal, #InstantModal) .payment-panel-header { position: sticky; z-index: 3; top: 0; display: flex; align-items: center; gap: 14px; min-height: 74px; padding: 16px 24px; border-bottom: 1px solid var(--premium-line); background: #101824; }
body.frontend-theme.frontend-lobby :is(#WithdrawModal, #SelectDepositModal, #BankTransferModal, #InstantModal) .payment-panel-header h3 { flex: 1; min-width: 0; margin: 0; color: var(--premium-text) !important; font-size: 20px; font-weight: 700; text-transform: none; }
body.frontend-theme.frontend-lobby :is(#WithdrawModal, #SelectDepositModal, #BankTransferModal, #InstantModal) .payment-panel-nav { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 38px; width: 38px; height: 38px; padding: 0; border: 1px solid #d6b87530; border-radius: 12px; background: #d6b8750c; color: #dec48e !important; font-size: 22px; line-height: 1; cursor: pointer; }
body.frontend-theme.frontend-lobby :is(#WithdrawModal, #SelectDepositModal, #BankTransferModal, #InstantModal) .payment-panel-nav:hover { border-color: #d6b87580; background: #d6b87520; }
body.frontend-theme.frontend-lobby #SelectDepositModal .wrap-transfer { margin: 0 !important; padding: 24px 0 calc(28px + env(safe-area-inset-bottom, 0px)); background: transparent !important; }
body.frontend-theme.frontend-lobby #SelectDepositModal .wrap-transfer .tf-container { display: grid; gap: 10px; }
body.frontend-theme.frontend-lobby #SelectDepositModal .action-sheet-transfer { display: flex; align-items: center; gap: 15px; min-height: 78px; padding: 14px; border: 1px solid #d6b87530; border-radius: 15px; background: #1a2534 !important; color: #edf1f6 !important; cursor: pointer; }
body.frontend-theme.frontend-lobby #SelectDepositModal .action-sheet-transfer:hover { border-color: #d6b87580; background: #223044 !important; }
body.frontend-theme.frontend-lobby #SelectDepositModal .action-sheet-transfer .icon { display: grid; place-items: center; flex: 0 0 46px; width: 46px; height: 46px; margin: 0; border: 1px solid #d6b87538; border-radius: 14px; background: #d6b87512; color: #dfc48f; font-size: 19px; }
body.frontend-theme.frontend-lobby #SelectDepositModal .action-sheet-transfer .content { flex: 1; min-width: 0; }
body.frontend-theme.frontend-lobby #SelectDepositModal .action-sheet-transfer h4 { margin: 0; color: #edf1f6 !important; font-size: 15px; }
body.frontend-theme.frontend-lobby #SelectDepositModal .payment-method-chevron { color: #b8a77f; font-size: 21px; }
body.frontend-theme.frontend-lobby :is(#WithdrawModal, #BankTransferModal, #InstantModal) :is(#withdrawform, #depositform, #paymentgateway_form) { padding: 24px 0 calc(32px + env(safe-area-inset-bottom, 0px)); }
body.frontend-theme.frontend-lobby :is(#WithdrawModal, #BankTransferModal, #InstantModal) .tf-container { padding-left: 24px; padding-right: 24px; }
body.frontend-theme.frontend-lobby :is(#WithdrawModal, #BankTransferModal, #InstantModal) .tf-balance-box { padding: 20px !important; border: 1px solid #d6b87538 !important; border-radius: 18px; background: linear-gradient(125deg, #263448, #172232) !important; box-shadow: 0 12px 30px #0002; }
body.frontend-theme.frontend-lobby #WithdrawModal .tf-balance-box > .px-3 { padding: 0 !important; }
body.frontend-theme.frontend-lobby :is(#WithdrawModal, #BankTransferModal, #InstantModal) .tf-balance-box p { margin: 0; color: #b7c3d3 !important; font-size: 13px; font-weight: 600; }
body.frontend-theme.frontend-lobby :is(#WithdrawModal, #BankTransferModal, #InstantModal) .tf-balance-box h3 { margin: 0; color: #f0d9a4 !important; font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
body.frontend-theme.frontend-lobby :is(#WithdrawModal, #BankTransferModal, #InstantModal) .tf-balance-box h3 i { margin-right: 3px; font-size: .8em; }
body.frontend-theme.frontend-lobby :is(#WithdrawModal, #BankTransferModal, #InstantModal) .group-input { position: relative; margin-bottom: 20px !important; }
body.frontend-theme.frontend-lobby :is(#WithdrawModal, #BankTransferModal, #InstantModal) .group-input > label { position: static !important; display: block; padding: 0; margin: 0 0 8px; background: transparent !important; color: #b7c3d3 !important; font-size: 13px; font-weight: 600; line-height: 1.4; }
body.frontend-theme.frontend-lobby :is(#WithdrawModal, #BankTransferModal, #InstantModal) .group-input :is(input:not([type=file]):not([type=hidden]), select) { width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 10px; }
body.frontend-theme.frontend-lobby :is(#WithdrawModal, #BankTransferModal, #InstantModal) .group-input input:disabled { opacity: 1; color: #aab5c5 !important; background: #111a26 !important; }
body.frontend-theme.frontend-lobby :is(#WithdrawModal, #BankTransferModal, #InstantModal) .list-money { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
body.frontend-theme.frontend-lobby :is(#WithdrawModal, #BankTransferModal, #InstantModal) .list-money li { min-width: 0; }
body.frontend-theme.frontend-lobby :is(#WithdrawModal, #BankTransferModal, #InstantModal) .list-money .tag-money { display: flex; justify-content: center; align-items: center; min-height: 42px; padding: 8px 4px; border: 1px solid #d6b87540; border-radius: 10px; background: #d6b8750e; color: #e9d2a2 !important; font-size: 13px; font-weight: 700; text-decoration: none; }
body.frontend-theme.frontend-lobby :is(#WithdrawModal, #BankTransferModal, #InstantModal) .list-money .tag-money:hover { border-color: #d6b875a0; background: #d6b87525; }
body.frontend-theme.frontend-lobby :is(#BankTransferModal, #InstantModal) .transfer-card { margin-top: 24px !important; }
body.frontend-theme.frontend-lobby :is(#BankTransferModal, #InstantModal) .transfer-card h3 { margin-bottom: 12px !important; color: #e7edf5 !important; font-size: 15px; font-weight: 700; }
body.frontend-theme.frontend-lobby :is(#BankTransferModal, #InstantModal) .tf-card-block { min-height: 70px; margin-bottom: 9px; padding: 14px 16px; border: 1px solid #ffffff18 !important; border-radius: 14px; background: #1a2534 !important; box-shadow: none; cursor: pointer; }
body.frontend-theme.frontend-lobby :is(#BankTransferModal, #InstantModal) .tf-card-block:is(.active, .select_bank) { border-color: #d6b875a0 !important; background: #d6b87516 !important; box-shadow: inset 3px 0 #d6b875; }
body.frontend-theme.frontend-lobby :is(#BankTransferModal, #InstantModal) .tf-card-block :is(h4, p, .bank_acc, .txtAccNumber) { color: #e7edf5 !important; }
body.frontend-theme.frontend-lobby #BankTransferModal .tf-card-block .txtAccNumber { min-height: 0; padding: 2px 0; font-size: 13px; }
body.frontend-theme.frontend-lobby #BankTransferModal .tf-card-block i { color: #d6b875; }
body.frontend-theme.frontend-lobby #BankTransferModal .upload-input-form .content-input { min-height: 110px; padding: 18px; border: 1px dashed #d6b87570 !important; border-radius: 14px; background: #1a2534 !important; color: #e1c994 !important; }
body.frontend-theme.frontend-lobby #BankTransferModal .upload-input-form #image-data:not([src]), body.frontend-theme.frontend-lobby #BankTransferModal .upload-input-form #image-data[src=""] { display: none; }
body.frontend-theme.frontend-lobby #InstantModal :is(.divOnlineTransferBank, .divLuxePayOnlineTransferBank, .div7ePayOnlineTransferBank, .divInPayOnlineTransferBank) { width: calc(33.333% - 8px) !important; max-width: 120px; margin: 4px; overflow: hidden; border: 1px solid #ffffff22; border-radius: 11px; background: #fff; cursor: pointer; vertical-align: middle; }
body.frontend-theme.frontend-lobby #InstantModal :is(.divOnlineTransferBank, .divLuxePayOnlineTransferBank, .div7ePayOnlineTransferBank, .divInPayOnlineTransferBank)[isselected="Y"] { border-color: #e4c583; box-shadow: 0 0 0 2px #e4c583; }
body.frontend-theme.frontend-lobby #InstantModal :is(.divOnlineTransferBank, .divLuxePayOnlineTransferBank, .div7ePayOnlineTransferBank, .divInPayOnlineTransferBank) > div { display: flex; align-items: center; justify-content: center; height: 62px; padding: 8px !important; }
body.frontend-theme.frontend-lobby #InstantModal :is(.divOnlineTransferBank, .divLuxePayOnlineTransferBank, .div7ePayOnlineTransferBank, .divInPayOnlineTransferBank) img { max-width: 100%; max-height: 100%; object-fit: contain; }
body.frontend-theme.frontend-lobby :is(#WithdrawModal, #BankTransferModal, #InstantModal) :is(#withdrawbtn, #manualbtn, #pay_btn) { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 50px; margin-top: 24px; text-align: center; }
body.frontend-theme.frontend-lobby:not(.dark) :is(#WithdrawModal, #BankTransferModal, #InstantModal) .payment-panel, body.frontend-theme.frontend-lobby:not(.dark) #SelectDepositModal .payment-method-panel, body.frontend-theme.frontend-lobby:not(.dark) :is(#WithdrawModal, #SelectDepositModal, #BankTransferModal, #InstantModal) .payment-panel-header { background: #f7f5ef !important; }
body.frontend-theme.frontend-lobby:not(.dark) :is(#WithdrawModal, #SelectDepositModal, #BankTransferModal, #InstantModal) .payment-panel-nav { color: #806126 !important; }
body.frontend-theme.frontend-lobby:not(.dark) #SelectDepositModal .action-sheet-transfer, body.frontend-theme.frontend-lobby:not(.dark) :is(#BankTransferModal, #InstantModal) .tf-card-block { background: #fff !important; border-color: #b2935540 !important; }
body.frontend-theme.frontend-lobby:not(.dark) #SelectDepositModal .action-sheet-transfer h4, body.frontend-theme.frontend-lobby:not(.dark) :is(#BankTransferModal, #InstantModal) .tf-card-block :is(h4, p, .bank_acc, .txtAccNumber), body.frontend-theme.frontend-lobby:not(.dark) :is(#BankTransferModal, #InstantModal) .transfer-card h3 { color: #263345 !important; }
body.frontend-theme.frontend-lobby:not(.dark) #SelectDepositModal .action-sheet-transfer .icon, body.frontend-theme.frontend-lobby:not(.dark) #SelectDepositModal .payment-method-chevron { color: #806126; }
body.frontend-theme.frontend-lobby:not(.dark) :is(#WithdrawModal, #BankTransferModal, #InstantModal) .tf-balance-box { background: linear-gradient(125deg, #fffdf8, #eee6d6) !important; }
body.frontend-theme.frontend-lobby:not(.dark) :is(#WithdrawModal, #BankTransferModal, #InstantModal) .tf-balance-box p, body.frontend-theme.frontend-lobby:not(.dark) :is(#WithdrawModal, #BankTransferModal, #InstantModal) .group-input > label { color: #465064 !important; }
body.frontend-theme.frontend-lobby:not(.dark) :is(#WithdrawModal, #BankTransferModal, #InstantModal) .tf-balance-box h3, body.frontend-theme.frontend-lobby:not(.dark) :is(#WithdrawModal, #BankTransferModal, #InstantModal) .list-money .tag-money { color: #806126 !important; }
body.frontend-theme.frontend-lobby:not(.dark) :is(#WithdrawModal, #BankTransferModal, #InstantModal) .group-input input:disabled { background: #f1eee7 !important; color: #596575 !important; }
body.frontend-theme.frontend-lobby:not(.dark) :is(#BankTransferModal, #InstantModal) .tf-card-block:is(.active, .select_bank) { border-color: #b29355 !important; background: #f7eedb !important; }
body.frontend-theme.frontend-lobby:not(.dark) #BankTransferModal .upload-input-form .content-input { background: #fff !important; color: #806126 !important; }
@media (max-width: 480px) {
    body.frontend-theme.frontend-lobby :is(#WithdrawModal, #SelectDepositModal, #BankTransferModal, #InstantModal) .payment-panel-header { padding: 14px 18px; }
    body.frontend-theme.frontend-lobby :is(#WithdrawModal, #SelectDepositModal, #BankTransferModal, #InstantModal) .tf-container { padding-left: 18px; padding-right: 18px; }
    body.frontend-theme.frontend-lobby :is(#WithdrawModal, #BankTransferModal, #InstantModal) .tf-balance-box { padding: 18px !important; }
}
body.frontend-theme.frontend-lobby :is(#WithdrawModal, #BankTransferModal, #InstantModal) .card-secton { margin-top: 0; }
body.frontend-theme.frontend-lobby :is(#BankTransferModal #depositform, #InstantModal #paymentgateway_form) { background: transparent !important; }
body.frontend-theme.frontend-lobby #SelectDepositModal .payment-method-panel { border-radius: 0 0 20px 20px; }
/* Make the entire bankslip upload area activate the native file input. */
body.frontend-theme.frontend-lobby #BankTransferModal .upload-input-form .content-input { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
body.frontend-theme.frontend-lobby #BankTransferModal .upload-input-form #receiptupload { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
body.frontend-theme.frontend-lobby #BankTransferModal .upload-input-form .content-input:focus-within { outline: 2px solid #d6b875; outline-offset: 3px; }
body.frontend-theme.frontend-lobby #BankTransferModal .upload-input-form #image-data { max-width: 100% !important; }

/* Notifications stay above open panels, without blocking the page around them. */
body.frontend-theme.frontend-lobby .premium-toast-stack { position: fixed; z-index: 11000; top: max(18px, env(safe-area-inset-top, 0px)); left: 50%; display: flex; flex-direction: column; gap: 10px; width: min(520px, calc(100% - 32px)); max-height: calc(100vh - 36px); overflow-y: auto; transform: translateX(-50%); pointer-events: none; }
body.frontend-theme.frontend-lobby .premium-toast-stack .premium-toast { --notice-accent: #ddc18a; --notice-tint: #ddc18a1a; position: relative; flex: 0 0 auto; width: 100%; max-width: none !important; margin: 0 !important; overflow: hidden; border: 1px solid #d6b87545; border-radius: 16px; background: #172231; box-shadow: 0 16px 42px #03070dc0, 0 2px 8px #0005; color: #f0f3f7; pointer-events: auto; }
body.frontend-theme.frontend-lobby .premium-toast-stack .premium-toast:not(.show):not(.showing) { display: none; }
body.frontend-theme.frontend-lobby .premium-toast-stack .premium-toast::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--notice-accent); }
body.frontend-theme.frontend-lobby .premium-toast-stack .premium-toast--success { --notice-accent: #79d5ac; --notice-tint: #79d5ac1c; }
body.frontend-theme.frontend-lobby .premium-toast-stack .premium-toast--info { --notice-accent: #8abcf3; --notice-tint: #8abcf31c; }
body.frontend-theme.frontend-lobby .premium-toast-stack .premium-toast--warning { --notice-accent: #e4c17b; --notice-tint: #e4c17b20; }
body.frontend-theme.frontend-lobby .premium-toast-stack .premium-toast--error { --notice-accent: #ed9694; --notice-tint: #ed96941c; }
body.frontend-theme.frontend-lobby .premium-toast-stack .premium-toast--logout { --notice-accent: #c5b7e8; --notice-tint: #c5b7e81c; }
body.frontend-theme.frontend-lobby .premium-toast-stack .toast-body { display: flex; align-items: flex-start; gap: 13px; padding: 15px 15px 15px 18px; border-radius: 16px; background: #172231; }
body.frontend-theme.frontend-lobby .premium-toast-stack .toast-body .icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 38px; width: 38px; height: 38px; border: 1px solid var(--notice-tint); border-radius: 12px; background: var(--notice-tint); color: var(--notice-accent); font-size: 20px; line-height: 1; }
body.frontend-theme.frontend-lobby .premium-toast-stack .toast-body .icon i { color: var(--notice-accent) !important; }
body.frontend-theme.frontend-lobby .premium-toast-stack .toast-body .content { display: flex; flex: 1 1 auto; align-items: center; min-width: 0; min-height: 38px; }
body.frontend-theme.frontend-lobby .premium-toast-stack .toast-body .display__text { width: 100%; padding: 0; color: #f0f3f7 !important; font-size: 14px; font-weight: 500; line-height: 1.5; overflow-wrap: anywhere; }
body.frontend-theme.frontend-lobby .premium-toast-stack .toast-body .display__text :is(p, div, ul, li) { color: inherit !important; font: inherit; line-height: inherit; }
body.frontend-theme.frontend-lobby .premium-toast-stack .toast-body .display__text :is(p, ul) { margin: 0 !important; padding: 0; list-style: none; }
body.frontend-theme.frontend-lobby .premium-toast-stack .toast-body .display__text li + li { margin-top: 5px; }
body.frontend-theme.frontend-lobby .premium-toast-stack .btn-close { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 30px; width: 30px; height: 30px; margin: 4px 0 0; padding: 0; border: 0; border-radius: 9px; background: transparent !important; color: #aeb9c9; opacity: 1; font-size: 19px; cursor: pointer; }
body.frontend-theme.frontend-lobby .premium-toast-stack .btn-close:hover { background: #ffffff12 !important; color: #fff; }
body.frontend-theme.frontend-lobby .premium-toast-stack .btn-close:focus-visible { outline: 2px solid var(--notice-accent); outline-offset: 2px; }
body.frontend-theme.frontend-lobby:not(.dark) .premium-toast-stack .premium-toast { border-color: #baa26a65; background: #fffdf9; box-shadow: 0 16px 42px #18233335, 0 2px 8px #18233318; }
body.frontend-theme.frontend-lobby:not(.dark) .premium-toast-stack .toast-body { background: #fffdf9; }
body.frontend-theme.frontend-lobby:not(.dark) .premium-toast-stack .toast-body .display__text { color: #263345 !important; }
body.frontend-theme.frontend-lobby:not(.dark) .premium-toast-stack .btn-close { color: #647082; }
body.frontend-theme.frontend-lobby:not(.dark) .premium-toast-stack .btn-close:hover { color: #263345; background: #2633450d !important; }
body.frontend-theme.frontend-lobby:not(.dark) .premium-toast-stack .premium-toast--success { --notice-accent: #267b58; --notice-tint: #267b581a; }
body.frontend-theme.frontend-lobby:not(.dark) .premium-toast-stack .premium-toast--info { --notice-accent: #376fa7; --notice-tint: #376fa71a; }
body.frontend-theme.frontend-lobby:not(.dark) .premium-toast-stack .premium-toast--warning { --notice-accent: #946c25; --notice-tint: #946c251a; }
body.frontend-theme.frontend-lobby:not(.dark) .premium-toast-stack .premium-toast--error { --notice-accent: #ad4b4b; --notice-tint: #ad4b4b1a; }
body.frontend-theme.frontend-lobby:not(.dark) .premium-toast-stack .premium-toast--logout { --notice-accent: #7157a1; --notice-tint: #7157a11a; }
@media (max-width: 480px) {
    body.frontend-theme.frontend-lobby .premium-toast-stack { top: max(12px, env(safe-area-inset-top, 0px)); width: calc(100% - 24px); }
    body.frontend-theme.frontend-lobby .premium-toast-stack .toast-body { gap: 10px; padding: 13px 12px 13px 15px; }
}
body.frontend-theme.frontend-lobby .premium-toast-stack .toast-body .display__text li { display: block; }
/* Deposit method labels and icons use the same warm accents as the account panels. */
body.frontend-theme.frontend-lobby #SelectDepositModal .action-sheet-transfer .icon { border-color: #d6b87555; background: linear-gradient(145deg, #d6b87526, #d6b87510); box-shadow: inset 0 1px #ffffff0b; }
body.frontend-theme.frontend-lobby #SelectDepositModal .action-sheet-transfer .icon i { color: #e8ca8c !important; }
body.frontend-theme.frontend-lobby #SelectDepositModal .action-sheet-transfer h4 { color: #f1e6d1 !important; font-weight: 700; }
body.frontend-theme.frontend-lobby #SelectDepositModal .payment-method-chevron { color: #d4b979 !important; }
body.frontend-theme.frontend-lobby #SelectDepositModal .action-sheet-transfer:hover .icon { border-color: #e6cb9290; background: #d6b87530; }
body.frontend-theme.frontend-lobby #SelectDepositModal .action-sheet-transfer:hover :is(.icon i, .payment-method-chevron) { color: #f4dda8 !important; }
body.frontend-theme.frontend-lobby:not(.dark) #SelectDepositModal .action-sheet-transfer .icon { border-color: #b2935550; background: #ead6a85c; }
body.frontend-theme.frontend-lobby:not(.dark) #SelectDepositModal .action-sheet-transfer .icon i, body.frontend-theme.frontend-lobby:not(.dark) #SelectDepositModal .payment-method-chevron { color: #826225 !important; }
body.frontend-theme.frontend-lobby:not(.dark) #SelectDepositModal .action-sheet-transfer h4 { color: #344054 !important; }
body.frontend-theme.frontend-lobby:not(.dark) #SelectDepositModal .action-sheet-transfer:hover :is(.icon i, .payment-method-chevron) { color: #674a15 !important; }
/* Center each gateway's bank choices and fit at least three across on phones. */
body.frontend-theme.frontend-lobby #InstantModal .payment-bank-grid { text-align: center; font-size: 0; }
body.frontend-theme.frontend-lobby #InstantModal .payment-bank-grid :is(.divOnlineTransferBank, .divLuxePayOnlineTransferBank, .div7ePayOnlineTransferBank, .divInPayOnlineTransferBank) { width: min(120px, calc((100% - 24px) / 3)) !important; margin: 4px; vertical-align: middle; }
body.frontend-theme.frontend-lobby #InstantModal .payment-bank-grid :is(.divOnlineTransferBank, .divLuxePayOnlineTransferBank, .div7ePayOnlineTransferBank, .divInPayOnlineTransferBank):hover { border-color: #e4c583; box-shadow: 0 0 0 2px #e4c58380; }
body.frontend-theme.frontend-lobby #InstantModal .payment-bank-grid :is(.divOnlineTransferBank, .divLuxePayOnlineTransferBank, .div7ePayOnlineTransferBank, .divInPayOnlineTransferBank)[isselected="Y"] { box-shadow: 0 0 0 2px #e4c583; }
/* Three full-width bank columns, aligned to the start of each row. */
body.frontend-theme.frontend-lobby #InstantModal .payment-bank-grid { text-align: left; }
body.frontend-theme.frontend-lobby #InstantModal .payment-bank-grid :is(.divOnlineTransferBank, .divLuxePayOnlineTransferBank, .div7ePayOnlineTransferBank, .divInPayOnlineTransferBank) { width: calc((100% - 16px) / 3) !important; max-width: none; margin: 0 8px 8px 0; }
body.frontend-theme.frontend-lobby #InstantModal .payment-bank-grid :is(.divOnlineTransferBank, .divLuxePayOnlineTransferBank, .div7ePayOnlineTransferBank, .divInPayOnlineTransferBank):nth-child(3n) { margin-right: 0; }
body.frontend-theme.frontend-lobby #InstantModal .payment-bank-grid :is(.divOnlineTransferBank, .divLuxePayOnlineTransferBank, .div7ePayOnlineTransferBank, .divInPayOnlineTransferBank) > div { padding: 4px !important; }
body.frontend-theme.frontend-lobby #InstantModal .payment-bank-grid :is(.divOnlineTransferBank, .divLuxePayOnlineTransferBank, .div7ePayOnlineTransferBank, .divInPayOnlineTransferBank) img { width: 100% !important; max-height: 100%; object-fit: contain; }

/* Transfer all confirmation, shown above account drawers. */
body.frontend-theme.frontend-lobby #TransferAllConfirmModal { z-index: 10050; padding: 16px !important; }
body.frontend-theme.frontend-lobby:has(#TransferAllConfirmModal.show) > .modal-backdrop { z-index: 10040; background: #050911; }
body.frontend-theme.frontend-lobby #TransferAllConfirmModal .modal-dialog { width: min(100%, 440px); max-width: 440px; margin: 0 auto; min-height: calc(100% - 0px); }
body.frontend-theme.frontend-lobby #TransferAllConfirmModal .transfer-confirm-card { align-items: center; padding: 32px; border: 1px solid #d6b87555; border-radius: 20px; background: linear-gradient(145deg, #1c293b, #121b28) !important; box-shadow: 0 26px 70px #0009; text-align: center; }
body.frontend-theme.frontend-lobby #TransferAllConfirmModal .transfer-confirm-icon { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 20px; border: 1px solid #d6b87555; border-radius: 18px; background: #d6b87518; color: #e9cc8c; font-size: 23px; }
body.frontend-theme.frontend-lobby #TransferAllConfirmModal h2 { margin: 0; color: #f6f3ec; font-size: 22px; font-weight: 700; line-height: 1.25; }
body.frontend-theme.frontend-lobby #TransferAllConfirmModal p { margin: 12px 0 0; color: #bec9d8; font-size: 15px; line-height: 1.6; }
body.frontend-theme.frontend-lobby #TransferAllConfirmModal .transfer-confirm-actions { display: flex; gap: 10px; width: 100%; margin-top: 26px; }
body.frontend-theme.frontend-lobby #TransferAllConfirmModal .transfer-confirm-actions button { flex: 1 1 0; min-width: 0; min-height: 48px; padding: 11px 14px; border-radius: 11px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
body.frontend-theme.frontend-lobby #TransferAllConfirmModal .transfer-confirm-cancel { border: 1px solid #77859a55; background: #ffffff0a; color: #dce3ec; }
body.frontend-theme.frontend-lobby #TransferAllConfirmModal .transfer-confirm-submit { border: 1px solid #dfc17e; background: linear-gradient(135deg, #eed7a0, #c8a25c); color: #191b22; }
body.frontend-theme.frontend-lobby #TransferAllConfirmModal .transfer-confirm-actions button:hover { filter: brightness(1.1); }
body.frontend-theme.frontend-lobby #TransferAllConfirmModal .transfer-confirm-actions button:focus-visible { outline: 2px solid #e4c583; outline-offset: 3px; }
body.frontend-theme.frontend-lobby:not(.dark) #TransferAllConfirmModal .transfer-confirm-card { border-color: #b2935560; background: linear-gradient(145deg, #fffdf8, #eee7d9) !important; }
body.frontend-theme.frontend-lobby:not(.dark) #TransferAllConfirmModal h2 { color: #263345; }
body.frontend-theme.frontend-lobby:not(.dark) #TransferAllConfirmModal p { color: #596575; }
body.frontend-theme.frontend-lobby:not(.dark) #TransferAllConfirmModal .transfer-confirm-icon { color: #806126; }
body.frontend-theme.frontend-lobby:not(.dark) #TransferAllConfirmModal .transfer-confirm-cancel { color: #344054; background: #fff; border-color: #b6bdc7; }
@media (max-width: 480px) { body.frontend-theme.frontend-lobby #TransferAllConfirmModal .transfer-confirm-card { padding: 26px 22px; } }

/* Registration verification drawer. */
body.frontend-theme.frontend-lobby #VerificationModal .verification-panel { background: #101824 !important; border-left: 1px solid var(--premium-line); scrollbar-width: thin; scrollbar-color: #826f4b transparent; }
body.frontend-theme.frontend-lobby #VerificationModal .verification-panel-header { position: sticky; z-index: 2; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 74px; padding: 16px 24px; border-bottom: 1px solid var(--premium-line); background: #101824; }
body.frontend-theme.frontend-lobby #VerificationModal .verification-panel-header h2 { margin: 0; color: var(--premium-text) !important; font-size: 20px; font-weight: 700; line-height: 1.3; text-transform: none; }
body.frontend-theme.frontend-lobby #VerificationModal .verification-panel-close { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 38px; width: 38px; height: 38px; padding: 0; border: 1px solid #d6b87530; border-radius: 12px; background: #d6b8750c; color: #dec48e; font-size: 22px; cursor: pointer; }
body.frontend-theme.frontend-lobby #VerificationModal .verification-panel-close:hover { border-color: #d6b87580; background: #d6b87520; }
body.frontend-theme.frontend-lobby #VerificationModal .verification-panel-content { padding: 28px 24px calc(32px + env(safe-area-inset-bottom, 0px)); }
body.frontend-theme.frontend-lobby #VerificationModal .verification-intro { margin-bottom: 26px; }
body.frontend-theme.frontend-lobby #VerificationModal .verification-icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 20px; border: 1px solid #d6b87555; border-radius: 17px; background: #d6b87516; color: #e6c98d; font-size: 25px; }
body.frontend-theme.frontend-lobby #VerificationModal .verification-intro h1 { margin: 0; color: var(--premium-text) !important; font-size: 27px; font-weight: 700; line-height: 1.25; text-transform: none; }
body.frontend-theme.frontend-lobby #VerificationModal .verification-intro p { max-width: 390px; margin: 10px 0 0; color: #b7c3d3; font-size: 14px; line-height: 1.6; }
body.frontend-theme.frontend-lobby #VerificationModal .verification-card { padding: 22px; border: 1px solid #d6b87530; border-radius: 18px; background: #192433; box-shadow: 0 12px 30px #0002; }
body.frontend-theme.frontend-lobby #VerificationModal .verification-card .group-input { margin: 0; }
body.frontend-theme.frontend-lobby #VerificationModal .verification-card .group-input > label { position: static !important; display: block; margin: 0 0 8px; padding: 0; background: transparent !important; color: #b7c3d3 !important; font-size: 13px; line-height: 1.4; }
body.frontend-theme.frontend-lobby #VerificationModal #txtverificationcode { width: 100%; min-height: 52px; padding: 12px 14px; }
body.frontend-theme.frontend-lobby #VerificationModal .verification-hint { margin: 9px 0 0; color: #98a6b9; font-size: 12px; line-height: 1.5; }
body.frontend-theme.frontend-lobby #VerificationModal #verificationformSubmit { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 50px; margin-top: 24px; text-align: center; }
body.frontend-theme.frontend-lobby:not(.dark) #VerificationModal :is(.verification-panel, .verification-panel-header) { background: #f7f5ef !important; }
body.frontend-theme.frontend-lobby:not(.dark) #VerificationModal .verification-panel-close, body.frontend-theme.frontend-lobby:not(.dark) #VerificationModal .verification-icon { color: #806126; }
body.frontend-theme.frontend-lobby:not(.dark) #VerificationModal .verification-card { background: #fff; border-color: #b2935530; }
body.frontend-theme.frontend-lobby:not(.dark) #VerificationModal .verification-intro p, body.frontend-theme.frontend-lobby:not(.dark) #VerificationModal .verification-hint { color: #667282; }
body.frontend-theme.frontend-lobby:not(.dark) #VerificationModal .verification-card .group-input > label { color: #465064 !important; }
@media (max-width: 480px) {
    body.frontend-theme.frontend-lobby #VerificationModal .verification-panel-header { padding: 14px 18px; }
    body.frontend-theme.frontend-lobby #VerificationModal .verification-panel-content { padding-left: 18px; padding-right: 18px; }
    body.frontend-theme.frontend-lobby #VerificationModal .verification-card { padding: 18px; }
}

/* Game wallet transfer modal. */
body.frontend-theme.frontend-lobby .sweet-modal-overlay.open .sweet-modal-box.game-transfer-modal { width: min(520px, calc(100% - 32px)) !important; max-width: 520px; height: auto !important; max-height: calc(100dvh - 32px); left: 0 !important; right: 0; margin: max(24px, 8vh) auto !important; overflow-y: auto; border: 1px solid #d6b87545 !important; border-radius: 20px !important; background: #111a27 !important; box-shadow: 0 28px 80px #000b; }
body.frontend-theme.frontend-lobby .game-transfer-modal .sweet-modal-title-wrap { min-height: 72px; padding: 22px 70px 19px 24px; border-bottom: 1px solid #d6b87530; background: #151f2d !important; }
body.frontend-theme.frontend-lobby .game-transfer-modal .sweet-modal-title h2 { margin: 0; color: #f4f1e9 !important; font-size: 20px; font-weight: 700; text-transform: none; }
body.frontend-theme.frontend-lobby .game-transfer-modal .sweet-modal-close { top: 18px; right: 20px; }
body.frontend-theme.frontend-lobby .game-transfer-modal .sweet-modal-close a.sweet-modal-close-link { width: 36px; height: 36px; border-radius: 11px; }
body.frontend-theme.frontend-lobby .game-transfer-modal .sweet-modal-content { max-height: none; padding: 24px; overflow: visible; }
body.frontend-theme.frontend-lobby .game-transfer-body { padding: 20px; border: 1px solid #d6b87530; border-radius: 16px; background: linear-gradient(145deg, #202d3e, #192433); text-align: left; }
body.frontend-theme.frontend-lobby .game-transfer-label { display: block; margin: 0 0 10px; color: #b9c5d4; font-size: 13px; font-weight: 700; line-height: 1.4; }
body.frontend-theme.frontend-lobby .game-transfer-amount { display: flex; align-items: stretch; gap: 10px; }
body.frontend-theme.frontend-lobby .game-transfer-amount .game-transfer-step { display: grid; place-items: center; flex: 0 0 50px; width: 50px; min-height: 52px; padding: 0; border: 1px solid #d6b87555; border-radius: 11px; background: #d6b87512; color: #ead09a; font: inherit; font-size: 23px; font-weight: 500; line-height: 1; cursor: pointer; }
body.frontend-theme.frontend-lobby .game-transfer-amount .game-transfer-step:hover { border-color: #e2c68d; background: #d6b87526; }
body.frontend-theme.frontend-lobby .game-transfer-amount #trans { flex: 1 1 auto; width: 100%; min-width: 0; min-height: 52px; margin: 0; padding: 10px 12px; border: 1px solid #42516a !important; border-radius: 11px; background: #0e1723 !important; color: #f6e6c2 !important; box-shadow: none; font-size: 20px; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
body.frontend-theme.frontend-lobby .game-transfer-amount #trans:focus { border-color: #d6b875 !important; outline: none; box-shadow: 0 0 0 2px #d6b87555 !important; }
body.frontend-theme.frontend-lobby .game-transfer-shortcuts { display: flex; gap: 10px; margin-top: 12px; }
body.frontend-theme.frontend-lobby .game-transfer-shortcuts .game-transfer-shortcut { flex: 1 1 0; min-width: 0; min-height: 42px; padding: 8px 12px; border: 1px solid #d6b87540; border-radius: 10px; background: #d6b87512; color: #e9cf99; font: inherit; font-size: 13px; font-weight: 700; line-height: 1.2; cursor: pointer; }
body.frontend-theme.frontend-lobby .game-transfer-shortcuts .game-transfer-shortcut:hover { border-color: #e2c68d; background: #d6b87525; }
body.frontend-theme.frontend-lobby .game-transfer-modal .sweet-modal-buttons { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; padding: 0 24px 24px; border: 0; background: transparent !important; }
body.frontend-theme.frontend-lobby .game-transfer-modal .sweet-modal-buttons a.button { display: inline-flex; align-items: center; justify-content: center; float: none !important; min-width: 0; min-height: 46px; margin: 0 !important; padding: 10px 15px; border-radius: 11px !important; font-size: 13px; font-weight: 700; text-align: center; }
body.frontend-theme.frontend-lobby .game-transfer-modal .sweet-modal-buttons a.money { margin-right: auto !important; border: 1px solid #d6b87555 !important; background: #d6b87512 !important; color: #ead09a !important; }
body.frontend-theme.frontend-lobby .game-transfer-modal .sweet-modal-buttons a.redB { border: 1px solid #d58a824d !important; background: #a54f4b18 !important; color: #edb8b0 !important; }
body.frontend-theme.frontend-lobby .game-transfer-modal .sweet-modal-buttons a.greenB { border: 1px solid #dfc17e !important; background: linear-gradient(135deg, #eed7a0, #c8a25c) !important; color: #191b22 !important; }
body.frontend-theme.frontend-lobby .game-transfer-modal :is(button, input[type=button], a.button):focus-visible { outline: 2px solid #e4c583; outline-offset: 3px; }
body.frontend-theme.frontend-lobby:not(.dark) .sweet-modal-overlay.open .sweet-modal-box.game-transfer-modal { background: #f7f5ef !important; border-color: #b2935555 !important; }
body.frontend-theme.frontend-lobby:not(.dark) .game-transfer-modal .sweet-modal-title-wrap { background: #fffdf8 !important; border-color: #b2935535; }
body.frontend-theme.frontend-lobby:not(.dark) .game-transfer-modal .sweet-modal-title h2 { color: #263345 !important; }
body.frontend-theme.frontend-lobby:not(.dark) .game-transfer-body { background: #fff; border-color: #b2935540; }
body.frontend-theme.frontend-lobby:not(.dark) .game-transfer-label { color: #596575; }
body.frontend-theme.frontend-lobby:not(.dark) .game-transfer-amount .game-transfer-step, body.frontend-theme.frontend-lobby:not(.dark) .game-transfer-shortcuts .game-transfer-shortcut { color: #806126; background: #ead6a83b; border-color: #b2935555; }
body.frontend-theme.frontend-lobby:not(.dark) .game-transfer-amount #trans { background: #f8f7f3 !important; border-color: #cfc8bb !important; color: #263345 !important; }
body.frontend-theme.frontend-lobby:not(.dark) .game-transfer-modal .sweet-modal-buttons a.money { background: #ead6a84d !important; color: #745920 !important; }
body.frontend-theme.frontend-lobby:not(.dark) .game-transfer-modal .sweet-modal-buttons a.redB { background: #f9e9e7 !important; color: #963b3b !important; }
@media (max-width: 480px) {
    body.frontend-theme.frontend-lobby .sweet-modal-overlay.open .sweet-modal-box.game-transfer-modal { width: calc(100% - 24px) !important; max-height: calc(100dvh - 24px); margin: 12px auto !important; }
    body.frontend-theme.frontend-lobby .game-transfer-modal .sweet-modal-title-wrap { padding-left: 18px; }
    body.frontend-theme.frontend-lobby .game-transfer-modal .sweet-modal-content { padding: 18px; }
    body.frontend-theme.frontend-lobby .game-transfer-body { padding: 16px; }
    body.frontend-theme.frontend-lobby .game-transfer-modal .sweet-modal-buttons { padding: 0 18px 18px; }
    body.frontend-theme.frontend-lobby .game-transfer-modal .sweet-modal-buttons a.button { flex: 1 1 0; padding-left: 8px; padding-right: 8px; }
    body.frontend-theme.frontend-lobby .game-transfer-modal .sweet-modal-buttons a.money { margin-right: 0 !important; }
}
body.frontend-theme.frontend-lobby .sweet-modal-overlay.open .sweet-modal-box.game-transfer-modal { top: 50% !important; margin: 0 auto !important; transform: translateY(-50%) !important; }

/* Game success dialogs, including transfer results and launch actions. */
body.frontend-theme.frontend-lobby .sweet-modal-overlay.open .sweet-modal-box:has(.sweet-modal-success) { width: min(500px, calc(100% - 32px)) !important; max-width: 500px; height: auto !important; max-height: calc(100dvh - 32px); top: 50% !important; left: 0 !important; right: 0; margin: 0 auto !important; overflow-y: auto; transform: translateY(-50%) !important; border: 1px solid #d6b87545 !important; border-radius: 20px !important; background: #111a27 !important; box-shadow: 0 28px 80px #000b; }
body.frontend-theme.frontend-lobby .sweet-modal-box:has(.sweet-modal-success) .sweet-modal-title-wrap { min-height: 72px; padding: 22px 70px 19px 24px; border-bottom: 1px solid #d6b87530; background: #151f2d !important; }
body.frontend-theme.frontend-lobby .sweet-modal-box:has(.sweet-modal-success) .sweet-modal-title h2 { margin: 0; color: #f4f1e9 !important; font-size: 20px; font-weight: 700; text-transform: none; }
body.frontend-theme.frontend-lobby .sweet-modal-box:has(.sweet-modal-success) .sweet-modal-close { top: 18px; right: 20px; }
body.frontend-theme.frontend-lobby .sweet-modal-box:has(.sweet-modal-success) .sweet-modal-close a.sweet-modal-close-link { width: 36px; height: 36px; border-radius: 11px; }
body.frontend-theme.frontend-lobby .sweet-modal-box:has(.sweet-modal-success) .sweet-modal-content { max-height: none; padding: 28px 24px 24px; overflow: visible; color: #d8e0e9 !important; text-align: center; }
body.frontend-theme.frontend-lobby .sweet-modal-box:has(.sweet-modal-success) .sweet-modal-success { margin: 0 auto 18px; border-color: #7ed3a9; background: #79d5ac12; box-shadow: 0 0 0 9px #79d5ac0c; }
body.frontend-theme.frontend-lobby .sweet-modal-box:has(.sweet-modal-success) .sweet-modal-success .sweet-modal-placeholder { border-color: #79d5ac38; }
body.frontend-theme.frontend-lobby .sweet-modal-box:has(.sweet-modal-success) .sweet-modal-success .sweet-modal-line { background-color: #7ed3a9; }
body.frontend-theme.frontend-lobby .sweet-modal-box:has(.sweet-modal-success) .sweet-modal-success + br { display: none; }
body.frontend-theme.frontend-lobby .sweet-modal-box:has(.sweet-modal-success) .sweet-modal-content p { margin: 0 auto; color: #e8edf4 !important; font-size: 15px; font-weight: 600; line-height: 1.6; }
body.frontend-theme.frontend-lobby .sweet-modal-box:has(.sweet-modal-success) .sweet-modal-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0; padding: 0 24px 24px; border: 0; background: transparent !important; }
body.frontend-theme.frontend-lobby .sweet-modal-box:has(.sweet-modal-success) .sweet-modal-buttons a.button { display: inline-flex; align-items: center; justify-content: center; float: none !important; min-width: 130px; min-height: 46px; margin: 0 !important; padding: 10px 20px; border-radius: 11px !important; font-size: 14px; font-weight: 700; }
body.frontend-theme.frontend-lobby .sweet-modal-box:has(.sweet-modal-success) .sweet-modal-buttons a.blueB { border: 1px solid #dfc17e !important; background: linear-gradient(135deg, #eed7a0, #c8a25c) !important; color: #191b22 !important; }
body.frontend-theme.frontend-lobby .sweet-modal-box:has(.sweet-modal-success) :is(a.button, a.sweet-modal-close-link):focus-visible { outline: 2px solid #e4c583; outline-offset: 3px; }
body.frontend-theme.frontend-lobby:not(.dark) .sweet-modal-overlay.open .sweet-modal-box:has(.sweet-modal-success) { background: #f7f5ef !important; border-color: #b2935555 !important; }
body.frontend-theme.frontend-lobby:not(.dark) .sweet-modal-box:has(.sweet-modal-success) .sweet-modal-title-wrap { background: #fffdf8 !important; border-color: #b2935535; }
body.frontend-theme.frontend-lobby:not(.dark) .sweet-modal-box:has(.sweet-modal-success) .sweet-modal-title h2 { color: #263345 !important; }
body.frontend-theme.frontend-lobby:not(.dark) .sweet-modal-box:has(.sweet-modal-success) .sweet-modal-content { color: #465064 !important; }
body.frontend-theme.frontend-lobby:not(.dark) .sweet-modal-box:has(.sweet-modal-success) .sweet-modal-content p { color: #263345 !important; }
body.frontend-theme.frontend-lobby:not(.dark) .sweet-modal-box:has(.sweet-modal-success) .sweet-modal-success { border-color: #3e9b72; background: #3e9b7212; box-shadow: 0 0 0 9px #3e9b720c; }
body.frontend-theme.frontend-lobby:not(.dark) .sweet-modal-box:has(.sweet-modal-success) .sweet-modal-success .sweet-modal-line { background-color: #3e9b72; }
@media (max-width: 480px) {
    body.frontend-theme.frontend-lobby .sweet-modal-overlay.open .sweet-modal-box:has(.sweet-modal-success) { width: calc(100% - 24px) !important; max-height: calc(100dvh - 24px); }
    body.frontend-theme.frontend-lobby .sweet-modal-box:has(.sweet-modal-success) .sweet-modal-title-wrap { padding-left: 18px; }
    body.frontend-theme.frontend-lobby .sweet-modal-box:has(.sweet-modal-success) .sweet-modal-content { padding: 24px 18px 20px; }
    body.frontend-theme.frontend-lobby .sweet-modal-box:has(.sweet-modal-success) .sweet-modal-buttons { padding: 0 18px 18px; }
    body.frontend-theme.frontend-lobby .sweet-modal-box:has(.sweet-modal-success) .sweet-modal-buttons a.button { flex: 1 1 auto; }
}

/* Download and app-launch dialogs, scoped to their download or copy controls. */
body.frontend-theme.frontend-lobby .sweet-modal-overlay.open .sweet-modal-box:is(:has(.download_btn), :has(.username_copy)) { width: min(620px, calc(100% - 32px)) !important; max-width: 620px; height: auto !important; max-height: calc(100dvh - 32px); top: 50% !important; left: 0 !important; right: 0; margin: 0 auto !important; overflow-y: auto; transform: translateY(-50%) !important; border: 1px solid #d6b87545 !important; border-radius: 20px !important; background: #111a27 !important; box-shadow: 0 28px 80px #000b; }
body.frontend-theme.frontend-lobby .sweet-modal-box:is(:has(.download_btn), :has(.username_copy)) .sweet-modal-title-wrap { min-height: 72px; padding: 22px 70px 19px 24px; border-bottom: 1px solid #d6b87530; background: #151f2d !important; }
body.frontend-theme.frontend-lobby .sweet-modal-box:is(:has(.download_btn), :has(.username_copy)) .sweet-modal-title h2 { margin: 0; color: #f4f1e9 !important; font-size: 20px; font-weight: 700; text-transform: none; }
body.frontend-theme.frontend-lobby .sweet-modal-box:is(:has(.download_btn), :has(.username_copy)) .sweet-modal-close { top: 18px; right: 20px; }
body.frontend-theme.frontend-lobby .sweet-modal-box:is(:has(.download_btn), :has(.username_copy)) .sweet-modal-close a.sweet-modal-close-link { width: 36px; height: 36px; border-radius: 11px; }
body.frontend-theme.frontend-lobby .sweet-modal-box:is(:has(.download_btn), :has(.username_copy)) .sweet-modal-content { max-height: none; margin: 0 !important; padding: 26px 24px 22px; overflow: visible; color: #c9d3df !important; font-size: 14px; line-height: 1.6; text-align: center; }
body.frontend-theme.frontend-lobby .sweet-modal-box:is(:has(.download_btn), :has(.username_copy)):not(:has(.sweet-modal-success)) .sweet-modal-content::before { content: '\2193'; display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 16px; border: 1px solid #d6b87550; border-radius: 16px; background: #d6b87516; color: #e8cc91; font-size: 25px; font-weight: 600; line-height: 1; }
body.frontend-theme.frontend-lobby .sweet-modal-box:is(:has(.download_btn), :has(.username_copy)) .sweet-modal-content p { color: #e8edf4 !important; }
body.frontend-theme.frontend-lobby .sweet-modal-box:is(:has(.download_btn), :has(.username_copy)) .download_btn { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; min-width: 140px; padding: 9px 18px; border: 1px solid #d6b87570; border-radius: 10px; background: #d6b87519; color: #f0d59e !important; font-size: 14px; font-weight: 700; text-decoration: none; }
body.frontend-theme.frontend-lobby .sweet-modal-box:is(:has(.download_btn), :has(.username_copy)) .download_btn:hover { border-color: #e8ce99; background: #d6b87530; }
body.frontend-theme.frontend-lobby .sweet-modal-box:is(:has(.download_btn), :has(.username_copy)) .sweet-modal-buttons { position: static !important; width: auto !important; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0 24px 24px; border: 0; background: transparent !important; }
body.frontend-theme.frontend-lobby .sweet-modal-box:is(:has(.download_btn), :has(.username_copy)) .sweet-modal-buttons a.button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; float: none !important; width: 100%; min-width: 0; min-height: 45px; margin: 0 !important; padding: 10px 9px; border: 1px solid #77859a55 !important; border-radius: 10px !important; background: #202d3c !important; color: #e6ecf5 !important; font-size: 13px; font-weight: 700; line-height: 1.35; text-align: center; white-space: normal; overflow-wrap: anywhere; }
body.frontend-theme.frontend-lobby .sweet-modal-box:is(:has(.download_btn), :has(.username_copy)) .sweet-modal-buttons a.button:hover { border-color: #d6b87595 !important; filter: brightness(1.1); }
body.frontend-theme.frontend-lobby .sweet-modal-box:is(:has(.download_btn), :has(.username_copy)) .sweet-modal-buttons a.yellowB { border-color: #d6b87555 !important; background: #d6b87512 !important; color: #efd7a2 !important; }
body.frontend-theme.frontend-lobby .sweet-modal-box:is(:has(.download_btn), :has(.username_copy)) .sweet-modal-buttons a.yellowB::after { content: '\29c9'; flex: 0 0 auto; color: #c9ad74; font-size: 14px; }
body.frontend-theme.frontend-lobby .sweet-modal-box:is(:has(.download_btn), :has(.username_copy)) .sweet-modal-buttons a.blueB:last-child { border-color: #dfc17e !important; background: linear-gradient(135deg, #eed7a0, #c8a25c) !important; color: #191b22 !important; }
body.frontend-theme.frontend-lobby .sweet-modal-box:is(:has(.download_btn), :has(.username_copy)) :is(a.button, a.download_btn, a.sweet-modal-close-link):focus-visible { outline: 2px solid #e4c583; outline-offset: 3px; }
body.frontend-theme.frontend-lobby:not(.dark) .sweet-modal-overlay.open .sweet-modal-box:is(:has(.download_btn), :has(.username_copy)) { background: #f7f5ef !important; border-color: #b2935555 !important; }
body.frontend-theme.frontend-lobby:not(.dark) .sweet-modal-box:is(:has(.download_btn), :has(.username_copy)) .sweet-modal-title-wrap { background: #fffdf8 !important; border-color: #b2935535; }
body.frontend-theme.frontend-lobby:not(.dark) .sweet-modal-box:is(:has(.download_btn), :has(.username_copy)) .sweet-modal-title h2 { color: #263345 !important; }
body.frontend-theme.frontend-lobby:not(.dark) .sweet-modal-box:is(:has(.download_btn), :has(.username_copy)) .sweet-modal-content { color: #536174 !important; }
body.frontend-theme.frontend-lobby:not(.dark) .sweet-modal-box:is(:has(.download_btn), :has(.username_copy)) .sweet-modal-content p { color: #263345 !important; }
body.frontend-theme.frontend-lobby:not(.dark) .sweet-modal-box:is(:has(.download_btn), :has(.username_copy)):not(:has(.sweet-modal-success)) .sweet-modal-content::before { color: #806126; background: #ead6a850; }
body.frontend-theme.frontend-lobby:not(.dark) .sweet-modal-box:is(:has(.download_btn), :has(.username_copy)) .download_btn { color: #745920 !important; background: #ead6a84d; border-color: #b2935570; }
body.frontend-theme.frontend-lobby:not(.dark) .sweet-modal-box:is(:has(.download_btn), :has(.username_copy)) .sweet-modal-buttons a.button { color: #344054 !important; background: #fff !important; border-color: #c8c3b9 !important; }
body.frontend-theme.frontend-lobby:not(.dark) .sweet-modal-box:is(:has(.download_btn), :has(.username_copy)) .sweet-modal-buttons a.yellowB { color: #745920 !important; background: #ead6a84d !important; border-color: #b2935555 !important; }
body.frontend-theme.frontend-lobby:not(.dark) .sweet-modal-box:is(:has(.download_btn), :has(.username_copy)) .sweet-modal-buttons a.blueB:last-child { color: #191b22 !important; background: linear-gradient(135deg, #eed7a0, #c8a25c) !important; border-color: #dfc17e !important; }
@media (max-width: 480px) {
    body.frontend-theme.frontend-lobby .sweet-modal-overlay.open .sweet-modal-box:is(:has(.download_btn), :has(.username_copy)) { width: calc(100% - 24px) !important; max-height: calc(100dvh - 24px); }
    body.frontend-theme.frontend-lobby .sweet-modal-box:is(:has(.download_btn), :has(.username_copy)) .sweet-modal-title-wrap { padding-left: 18px; }
    body.frontend-theme.frontend-lobby .sweet-modal-box:is(:has(.download_btn), :has(.username_copy)) .sweet-modal-content { padding: 22px 18px 18px; }
    body.frontend-theme.frontend-lobby .sweet-modal-box:is(:has(.download_btn), :has(.username_copy)) .sweet-modal-buttons { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 0 18px 18px; }
}


/* Simple game lobby confirmation. */
body.frontend-theme.frontend-lobby .sweet-modal-overlay.open .sweet-modal-box:has(.game-lobby-confirm) { width: min(500px, calc(100% - 32px)) !important; max-width: 500px; height: auto !important; max-height: calc(100dvh - 32px); top: 50% !important; left: 0 !important; right: 0; margin: 0 auto !important; overflow-y: auto; transform: translateY(-50%) !important; border: 1px solid #d6b87545 !important; border-radius: 20px !important; background: #111a27 !important; box-shadow: 0 28px 80px #000b; }
body.frontend-theme.frontend-lobby .sweet-modal-box:has(.game-lobby-confirm) .sweet-modal-title-wrap { min-height: 70px; padding: 22px 70px 18px 24px; border-bottom: 1px solid #d6b87530; background: #151f2d !important; }
body.frontend-theme.frontend-lobby .sweet-modal-box:has(.game-lobby-confirm) .sweet-modal-title h2 { margin: 0; color: #f4f1e9 !important; font-size: 20px; font-weight: 700; text-transform: none; }
body.frontend-theme.frontend-lobby .sweet-modal-box:has(.game-lobby-confirm) .sweet-modal-close { top: 17px; right: 20px; }
body.frontend-theme.frontend-lobby .sweet-modal-box:has(.game-lobby-confirm) .sweet-modal-close a.sweet-modal-close-link { width: 36px; height: 36px; border-radius: 11px; }
body.frontend-theme.frontend-lobby .sweet-modal-box:has(.game-lobby-confirm) .sweet-modal-content { max-height: none; margin: 0 !important; padding: 30px 28px 24px; overflow: visible; color: #c9d3df !important; font-size: 15px; line-height: 1.6; text-align: center; }
body.frontend-theme.frontend-lobby .sweet-modal-box:has(.game-lobby-confirm) .game-lobby-confirm::before { content: '\25b6'; display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 20px; padding-left: 3px; border: 1px solid #d6b87550; border-radius: 18px; background: #d6b87516; color: #e8cc91; font-size: 20px; line-height: 1; }
body.frontend-theme.frontend-lobby .sweet-modal-box:has(.game-lobby-confirm) .sweet-modal-buttons { position: static !important; display: flex; justify-content: center; width: auto !important; margin: 0; padding: 0 28px 28px; border: 0; background: transparent !important; }
body.frontend-theme.frontend-lobby .sweet-modal-box:has(.game-lobby-confirm) .sweet-modal-buttons a.button { display: inline-flex; align-items: center; justify-content: center; float: none !important; width: 100%; min-height: 48px; margin: 0 !important; padding: 10px 20px; border: 1px solid #dfc17e !important; border-radius: 10px !important; background: linear-gradient(135deg, #eed7a0, #c8a25c) !important; color: #191b22 !important; font-size: 14px; font-weight: 700; text-align: center; }
body.frontend-theme.frontend-lobby .sweet-modal-box:has(.game-lobby-confirm) .sweet-modal-buttons a.button:hover { filter: brightness(1.08); }
body.frontend-theme.frontend-lobby .sweet-modal-box:has(.game-lobby-confirm) :is(a.button, a.sweet-modal-close-link):focus-visible { outline: 2px solid #e4c583; outline-offset: 3px; }
body.frontend-theme.frontend-lobby:not(.dark) .sweet-modal-overlay.open .sweet-modal-box:has(.game-lobby-confirm) { background: #f7f5ef !important; border-color: #b2935555 !important; }
body.frontend-theme.frontend-lobby:not(.dark) .sweet-modal-box:has(.game-lobby-confirm) .sweet-modal-title-wrap { background: #fffdf8 !important; border-color: #b2935535; }
body.frontend-theme.frontend-lobby:not(.dark) .sweet-modal-box:has(.game-lobby-confirm) .sweet-modal-title h2 { color: #263345 !important; }
body.frontend-theme.frontend-lobby:not(.dark) .sweet-modal-box:has(.game-lobby-confirm) .sweet-modal-content { color: #536174 !important; }
body.frontend-theme.frontend-lobby:not(.dark) .sweet-modal-box:has(.game-lobby-confirm) .game-lobby-confirm::before { color: #806126; background: #ead6a850; }
@media (max-width: 480px) {
    body.frontend-theme.frontend-lobby .sweet-modal-overlay.open .sweet-modal-box:has(.game-lobby-confirm) { width: calc(100% - 24px) !important; max-height: calc(100dvh - 24px); }
    body.frontend-theme.frontend-lobby .sweet-modal-box:has(.game-lobby-confirm) .sweet-modal-content { padding: 26px 20px 22px; }
    body.frontend-theme.frontend-lobby .sweet-modal-box:has(.game-lobby-confirm) .sweet-modal-buttons { padding: 0 20px 22px; }
}
