:root {
    --bg: #1e1304;
    --bg-deep: #120902;
    --panel: #2a1807;
    --panel-strong: #3a220b;
    --panel-soft: #271606;
    --line: rgba(255, 171, 73, 0.22);
    --gold: #ffab49;
    --gold-light: #ffe15a;
    --gold-deep: #f38a19;
    --text-main: #fff4e0;
    --text-soft: rgba(255, 244, 224, 0.82);
    --text-dim: rgba(255, 210, 145, 0.66);
    --green: #21d07a;
    --danger: #ff4f5f;
    --shadow: 0 18px 46px rgba(8, 3, 0, 0.42);
    --button-gradient: linear-gradient(180deg, #fff16b 0%, #ffc234 46%, #f28a16 100%);
    --button-text: #5a2500;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    margin: 0;
    padding: 0;
    background: #292017;
    color: var(--text-main);
    font-family: Arial, "Segoe UI", sans-serif;
    overflow-x: hidden;
    scrollbar-width: none;
}

body::-webkit-scrollbar,
.left-sidebar::-webkit-scrollbar,
.category-strip::-webkit-scrollbar,
.game-lane::-webkit-scrollbar,
.big-game-grid::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

body {
    position: relative;
    min-width: 320px;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -2;
    content: "";
    background: #292017;
}

body.rtl-layout {
    direction: rtl;
}

button,
input,
select {
    font: inherit;
}

button {
    border: 0;
    cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 3px solid rgba(255, 171, 73, 0.46);
    outline-offset: 2px;
}

img {
    max-width: 100%;
}

.screen-loading,
.loading-overlay,
.modal-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.screen-loading {
    display: flex;
    flex-direction: column;
    gap: 18px;
    background: var(--bg-deep);
}

.loading-overlay,
.modal-overlay {
    padding: 20px;
    background: rgba(12, 5, 1, 0.78);
    backdrop-filter: blur(10px);
}

.loader-ring,
.loading-ring {
    border-radius: 999px;
    animation: spin 0.9s linear infinite;
}

.loader-ring {
    width: 58px;
    height: 58px;
    border: 3px solid rgba(255, 171, 73, 0.22);
    border-top-color: var(--gold);
}

.loading-card {
    width: min(100%, 320px);
    padding: 28px 20px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel);
    text-align: center;
    box-shadow: var(--shadow);
}

.loading-ring {
    width: 46px;
    height: 46px;
    margin: 0 auto 14px;
    border: 3px solid rgba(255, 171, 73, 0.22);
    border-top-color: var(--gold);
}

.loading-text {
    color: var(--text-soft);
    font-size: 15px;
    letter-spacing: 0;
    text-transform: uppercase;
}

.custom-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    z-index: 1100;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 260px;
    max-width: calc(100vw - 28px);
    padding: 14px 18px;
    border-radius: 999px;
    background: rgba(255, 79, 95, 0.96);
    color: #fff;
    box-shadow: var(--shadow);
    transform: translateX(-50%) translateY(-120px);
    transition: transform 0.32s ease;
}

.custom-toast.show {
    transform: translateX(-50%) translateY(0);
}

#star-canvas {
    display: none;
}

.page-shell {
    min-height: 100vh;
    padding-top: 79px;
}

.site-header,
.header-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 80;
    height: 79px;
    color: #fff;
    background: transparent;
}

.header-content {
    position: fixed;
    top: 0;
    z-index: 3;
    width: 100%;
    height: 79px;
}

.header-top {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 79px;
    padding: 0 40px 0 80px;
}

.header-top-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    height: 100%;
}

.header-top-left {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 100%;
}

.brand-home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 154px;
    height: 59px;
    padding: 0;
    background: transparent;
}

.brand-logo {
    display: block;
    width: 154px;
    height: auto;
    object-fit: contain;
}

.header-auth {
    display: flex;
    align-items: center;
    gap: 10px;
}

.login-btn,
.register-btn {
    height: 40px;
    min-width: 100px;
    padding: 0 14px;
    color: var(--button-text);
    font-size: 16px;
    font-weight: 900;
    white-space: nowrap;
}

.login-btn {
    border: 1px solid rgba(255, 171, 73, 0.64);
    border-radius: 8px;
    background: linear-gradient(180deg, #33220d 0%, #1d1307 100%);
    color: var(--gold);
    box-shadow: 0 2px 0 #3b1805;
}

.register-btn {
    min-width: 115px;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffe600 0%, #ffb800 100%);
    box-shadow: inset 0 1px 0 rgba(255, 242, 166, 0.5), 0 3px 0 #8d4504;
}

.left-sidebar,
.left-bar {
    position: fixed;
    top: 79px;
    bottom: 0;
    left: 0;
    z-index: 60;
    width: 240px;
    height: calc(100vh - 79px);
    overflow: hidden auto;
    color: #fff4e0;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    background: transparent;
    border-right: 0;
}

.left-bar::before {
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    width: 240px;
    height: 160vh;
    content: "";
    background: #292017;
}

.left-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 240px;
    padding: 18px;
}

.sidebar-nav,
.side-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.side-item,
.side-action,
.side-language-card {
    width: 97px;
    height: 85px;
    padding: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 900;
    text-align: center;
    box-shadow: none;
}

.nav-item-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 100%;
    height: 100%;
    padding: 9px;
    border-radius: 10px;
    background: #1d0c03;
    box-shadow: 0 1px 0 #644100, inset 0 1px 0 #ffab49;
}

.nav-icon,
.side-language-card i {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: transparent;
    color: var(--gold);
    font-size: 16px;
}

.nav-name {
    display: -webkit-box;
    max-width: 79px;
    min-height: 13px;
    line-height: 1.1;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.side-item.is-active,
.side-action:hover,
.side-item:hover,
.side-language-card:hover {
    color: #fff;
}

.side-action:hover .nav-item-content,
.side-item:hover .nav-item-content {
    background: #2a1605;
}

.side-item.is-active {
    border: 0;
}

.side-language-card {
    cursor: pointer;
}

.side-language-card .language-select {
    width: 79px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    text-align: center;
    outline: none;
}

.home-container,
.page-center,
.main-content {
    width: 930px;
    margin-left: calc(240px + (100vw - 240px - 930px) / 2);
    margin-right: auto;
    padding: 24px 0 44px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.notice-bar,
.notice-marquee-container {
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    height: 36px;
    padding: 0 14px;
    border: 1px solid rgba(255, 171, 73, 0.5);
    border-radius: 60px;
    background: linear-gradient(180deg, #3b1a08, #2d1609 50%, #3c1a09);
    color: #ffab49;
    box-shadow: 0 6px 20px 0 rgba(0, 0, 0, 0.8), 0 2px 0 0 #3a2600;
    overflow: visible;
}

.notice-main {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    height: 36px;
}

.notice-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.speaker {
    display: block;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.notice-track {
    flex: 1;
    width: 100%;
    min-width: 0;
    height: 36px;
}

.marquee-bar {
    height: 36px;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-content {
    display: inline-block;
    padding-left: 100%;
    line-height: 38px;
    animation: marquee 22s linear infinite;
}

.hero-panel {
    margin-top: 0;
}

.page-banner {
    position: relative;
}

.hero-swiper,
.common-swiper,
.index-swiper {
    width: 100%;
    height: 317px;
    overflow: visible;
    border-radius: 8px;
    background: transparent;
    box-shadow: none;
}

.hero-slide,
.page-banner.card .swiper-slide {
    display: block;
    width: 750px;
    padding: 0;
    overflow: hidden;
    background: transparent;
    border-radius: 8px;
    aspect-ratio: 750 / 316.6;
    transition: transform 0.4s ease, opacity 0.4s ease;
    box-shadow: var(--shadow);
}

.hero-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.swiper-pagination-bullet {
    background: rgba(255, 244, 224, 0.66);
    opacity: 1;
}

.swiper-pagination-bullet-active {
    width: 18px;
    border-radius: 99px;
    background: var(--gold);
}

.hero-swiper .swiper-pagination {
    bottom: -20px;
}

.category-strip {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 70px;
    margin-top: 24px;
    padding: 0;
    border-radius: 0;
    background: transparent;
}

.category-tile {
    display: flex;
    flex: 0 0 92px;
    width: 92px;
    height: 70px;
    min-width: 92px;
    min-height: 70px;
    padding: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 900;
}

.category-tile .nav-item-content {
    width: 92px;
    height: 70px;
    padding: 7px;
    border: 1px solid rgba(44, 27, 0, 0.4);
}

.category-tile.is-active,
.category-tile:hover {
    color: #fff;
    border: 0;
}

.category-tile:hover .nav-item-content {
    background: #2a1605;
}

.game-section,
.wide-section,
.vendor-section {
    scroll-margin-top: 96px;
    margin-top: 0;
}

.section-head,
.home-title {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    min-height: 53px;
    margin-bottom: 0;
    padding-bottom: 20px;
    color: #ffc757;
    font-size: 22px;
    font-weight: 700;
    text-transform: uppercase;
}

.home-title::before {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 10px;
    background: #1d0c03;
    color: var(--gold);
    font-family: "Font Awesome 6 Free";
    font-size: 17px;
    font-weight: 900;
    content: "\f005";
    box-shadow: 0 1px 0 #644100, inset 0 1px 0 #ffab49;
}

#popular .home-title::before {
    content: "\f06d";
}

#slots .home-title::before {
    content: "\f522";
}

#fishing .home-title::before {
    content: "\f578";
}

#live .home-title::before {
    content: "\f03d";
}

#sports .home-title::before {
    content: "\f1e3";
}

#esports .home-title::before {
    content: "\f11b";
}

#poker .home-title::before {
    content: "\f2dc";
}

.jackpot-section,
.jp-bg {
    position: relative;
    display: flex;
    align-items: center;
    width: 930px;
    height: 193px;
    margin: 12px 0 0;
    padding-left: 68px;
    overflow: hidden;
    border-radius: 8px;
    background:
        radial-gradient(circle at 84% 45%, rgba(255, 213, 98, 0.22), transparent 34%),
        linear-gradient(100deg, #401304 0%, #1c0903 48%, #391506 100%);
    box-shadow: inset 0 1px 0 rgba(255, 171, 73, 0.32), 0 8px 18px rgba(0, 0, 0, 0.35);
    cursor: pointer;
}

.jackpot-section::after {
    position: absolute;
    right: 38px;
    top: 18px;
    width: 280px;
    height: 158px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 184, 0, 0.38), rgba(255, 184, 0, 0) 68%);
    content: "";
}

.jp-container {
    position: relative;
    z-index: 1;
    width: 410px;
    height: 167px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.jp-title {
    color: #ffd15d;
    font-size: 28px;
    font-weight: 900;
    line-height: 34px;
    text-transform: none;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.75);
}

.roll-num {
    margin-top: 22px;
}

.jackpot-num__list {
    display: flex;
    align-items: center;
    gap: 7px;
    height: 44px;
}

.jackpot-num__item {
    display: grid;
    place-items: center;
    width: 28px;
    height: 44px;
    overflow: hidden;
    border-radius: 5px;
    background: linear-gradient(180deg, #fff7a8 0%, #ffbe29 52%, #c75a08 100%);
    color: #3b1600;
    font-size: 31px;
    font-weight: 900;
    line-height: 44px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 2px 0 #5c2102;
}

.jackpot-num__dot {
    align-self: end;
    height: 35px;
    color: #ffd15d;
    font-size: 28px;
    font-weight: 900;
    line-height: 35px;
}

.section-head h1,
.home-title-text {
    margin: 0;
    color: #ffc757;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 700;
}

.section-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.lane-arrow,
.view-all,
.home-title-more,
.title-arrow {
    display: grid;
    place-items: center;
    cursor: pointer;
    user-select: none;
    transition: 0.2s;
    height: 33px;
    color: #fff4e0;
    font-weight: 700;
    text-align: center;
    text-shadow: 0 2px 0 rgba(17, 0, 0, 0.3);
    background: #6c481e;
    border: 1px solid rgba(72, 48, 17, 0.4);
    border-radius: 10px;
    box-shadow: 0 2px 0 0 #3b1805;
    backdrop-filter: blur(2px);
}

.lane-arrow {
    width: 34px;
    height: 32px;
    padding: 10px;
    font-size: 14px;
}

.view-all {
    height: 33px;
    padding: 0 13px;
    font-size: 14px;
    text-transform: capitalize;
}

.home-title-more:hover,
.title-arrow:hover {
    color: #ffb800;
    background: #330c0c;
    border-color: #7a2a2d;
    box-shadow: 0 2px 0 0 #330c0c;
}

.game-lane {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(2, auto);
    grid-auto-columns: 160px;
    gap: 12px 20px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 0 12px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.game-card,
.game-list-item {
    position: relative;
    display: block;
    width: 160px;
    height: 219.5px;
    padding: 0;
    background: transparent;
    color: var(--text-main);
    text-align: left;
    scroll-snap-align: start;
    overflow: hidden;
    border-radius: 8px;
}

.game-img {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    border-radius: 8px;
}

.game-list-item .game-img > img {
    display: block;
    width: 160px;
    height: 220px;
    border-radius: 8px;
    background: #120902;
    object-fit: cover;
    box-shadow: none;
    transition: transform 0.5s;
}

.game-list-item:hover .game-img > img {
    transform: scale(1.1);
}

.action-wrap {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 18px;
    border-radius: 8px;
    background: rgba(4, 16, 16, 0.4);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.game-list-item:hover .action-wrap {
    opacity: 1;
}

.start-btn {
    position: absolute;
    top: 64px;
    left: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 120px;
    height: 40px;
    padding: 0 14px;
    border-radius: 8px;
    background: linear-gradient(180deg, #ffe600 0%, #ffb800 100%);
    color: #b64100;
    font-size: 13px;
    font-weight: 900;
    box-shadow: inset 0 1px 0 rgba(255, 242, 166, 0.5), 0 2px 0 #8d4504;
    transform: translateX(-50%) scale(0.5);
    transform-origin: top center;
}

.start-btn__icon {
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
}

.start-btn__text {
    white-space: nowrap;
}

.game-info {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 42px;
    z-index: 4;
    height: 42px;
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-name-container,
.game-name {
    max-width: 140px;
    overflow: hidden;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    line-height: 16px;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}

.game-logo-wrap {
    position: absolute;
    left: 50%;
    bottom: 12px;
    z-index: 4;
    width: 60px;
    height: 30px;
    transform: translateX(-50%);
}

.game-logo-wrap > img,
.game-list-item .game-logo {
    display: block;
    width: 60px;
    height: 30px;
    object-fit: contain;
    pointer-events: none;
    filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.55));
}

.love {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 5;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.2s ease, background 0.2s ease;
}

.game-list-item:hover .love {
    opacity: 1;
}

.love:hover {
    background: rgba(255, 171, 73, 0.86);
}

.big-game-grid,
.sports-grid {
    display: grid;
    gap: 14px;
}

.big-game-grid {
    grid-auto-flow: column;
    grid-template-rows: repeat(2, 216px);
    grid-auto-columns: 160px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 2px;
    scrollbar-width: none;
}

.sports-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.big-game-card,
.sport-card {
    position: relative;
    display: block;
    height: 220px;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    border-radius: 8px;
    background: var(--panel);
    color: #fff;
    box-shadow: var(--shadow);
}

.big-game-grid .big-game-card {
    height: 216px;
}

.big-game-card::before,
.sport-card::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.44) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='50' height='50' viewBox='0 0 50 50'%3E%3Cpath d='M21 15l16 10-16 10z' fill='%23ffd95d'/%3E%3C/svg%3E") center / 50px 50px no-repeat;
    box-shadow: inset 0 0 0 2px rgba(255, 217, 115, 0.88), 0 4px 12px rgba(0, 0, 0, 0.45);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.18s ease;
    pointer-events: none;
}

.big-game-card:hover::before,
.big-game-card:focus-visible::before,
.sport-card:hover::before,
.sport-card:focus-visible::before {
    opacity: 0.96;
}

.big-game-card img,
.sport-card img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
}

.big-game-card::after,
.sport-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 34%, rgba(12, 5, 1, 0.78));
}

.big-game-card span,
.sport-card span {
    position: absolute;
    left: 14px;
    bottom: 12px;
    z-index: 1;
    font-size: 18px;
    font-weight: 900;
}

.vendor-row {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 8px;
    padding: 8px;
    border-radius: 8px;
    background: #2a1807;
}

.vendor-chip {
    display: grid;
    place-items: center;
    min-height: 54px;
    padding: 9px;
    border-radius: 6px;
    background: #392109;
}

.vendor-chip img {
    max-width: 90px;
    max-height: 28px;
}

.site-footer {
    display: grid;
    place-items: center;
    gap: 12px;
    min-height: 140px;
    margin-top: 24px;
    padding: 20px;
    border-radius: 8px;
    background: #160b02;
    color: var(--text-dim);
    text-align: center;
}

.site-footer img {
    width: 130px;
}

.site-footer p {
    margin: 0;
    font-size: 12px;
}

.right-tools,
.right-bar {
    position: fixed;
    top: 50%;
    right: 20px;
    z-index: 62;
    width: 60px;
    overflow: visible;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transform: translateY(-50%);
}

.right-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tool-btn,
.right-item {
    position: relative;
    display: block;
    width: 60px;
    min-height: 60px;
    padding: 0;
    border-bottom: 0;
    background: transparent;
    color: #fff;
}

.right-item-content {
    position: relative;
    z-index: 1;
    display: flex;
    place-items: center;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    width: 100%;
    text-align: center;
    cursor: pointer;
    transition: 0.2s;
}

.right-item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border: 1px solid #ffbb41;
    border-radius: 50px;
    background: #6c481e;
    color: #fff;
    font-size: 24px;
    transition: 0.2s;
}

.right-item:hover .right-item-icon {
    filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.6));
    scale: 1.05;
}

.login-modal-overlay {
    z-index: 980;
}

.main-container {
    width: min(100%, 460px);
    padding: 24px 18px 20px;
    border: 1px solid rgba(255, 171, 73, 0.3);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(45, 21, 5, 0.98), rgba(18, 8, 2, 0.99));
    box-shadow: var(--shadow);
}

.login-panel {
    position: relative;
}

.text-info {
    text-align: center;
    padding: 0 8px;
}

.text-info h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(23px, 5.5vw, 31px);
    line-height: 1.18;
    font-weight: 900;
}

.text-info p {
    max-width: 520px;
    margin: 10px auto 0;
    color: var(--text-soft);
    font-size: clamp(13px, 3.5vw, 15px);
    line-height: 1.56;
    overflow-wrap: anywhere;
}

.login-box {
    margin-top: 20px;
    padding: 18px 14px 14px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 18px 38px rgba(10, 3, 0, 0.3);
}

.login-box.error-shake {
    border-color: rgba(255, 96, 96, 0.9);
    animation: shake 0.38s ease-in-out;
}

.input-label {
    display: block;
    margin-bottom: 14px;
    text-align: center;
    font-size: clamp(18px, 4.4vw, 23px);
    font-weight: 900;
    color: #3b1c00;
}

.iti {
    width: 100%;
}

.iti__flag-container {
    padding: 2px;
    border-right: 1px solid rgba(100, 65, 0, 0.24);
    background: #fff4e0;
    border-radius: 7px 0 0 7px;
}

.iti__selected-flag {
    background: transparent !important;
}

.iti__selected-dial-code {
    color: #3b1c00;
}

.phone-input {
    width: 100%;
    height: 56px;
    padding-right: 16px;
    border: 1px solid rgba(100, 65, 0, 0.24);
    border-radius: 8px;
    background: #fffaf0;
    color: #3b1c00;
    direction: ltr;
    text-align: left;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.phone-input:focus {
    border-color: rgba(255, 184, 0, 0.86);
    box-shadow: 0 0 0 4px rgba(255, 184, 0, 0.16);
}

.continue-btn,
.copy-btn,
.retry-btn {
    width: 100%;
    min-height: 56px;
    margin-top: 18px;
    border-radius: 9px;
    background: var(--button-gradient);
    color: var(--button-text);
    font-size: 17px;
    font-weight: 900;
    box-shadow: inset 0 2px 0 1px rgba(255, 242, 166, 0.72), 0 2px 0 #8d4504, 0 14px 28px rgba(255, 184, 0, 0.22);
}

#content11 {
    display: none;
}

.modal-card {
    position: relative;
    width: min(100%, 380px);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 28px 24px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(29, 12, 3, 0.97);
    box-shadow: var(--shadow);
    text-align: center;
}

.modal-card h2 {
    margin: 0;
    color: #ffffff;
    font-size: clamp(23px, 6vw, 31px);
    line-height: 1.2;
}

.modal-subtext,
.modal-paragraph {
    margin-top: 14px;
    color: var(--text-soft);
    line-height: 1.5;
}

.code-display-container {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 22px 0;
    direction: ltr;
}

.code-char {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 44px;
    border: 1px solid rgba(255, 171, 73, 0.5);
    border-radius: 8px;
    background: rgba(255, 244, 224, 0.08);
    color: #fff;
    font-size: 22px;
    font-weight: 900;
}

.tip-img {
    width: auto;
    max-width: 100%;
    max-height: clamp(320px, 52vh, 480px);
    margin-top: 14px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-highlight {
    margin-top: 14px;
    color: var(--gold-light);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.5;
}

.verification-box {
    margin-top: 14px;
    padding: 12px;
    border: 1px dashed rgba(255, 184, 0, 0.5);
    border-radius: 8px;
    background: rgba(255, 244, 224, 0.04);
    color: var(--text-soft);
}

.final-code-display {
    display: inline-block;
    margin-left: 8px;
    color: #fff;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 0;
    direction: ltr;
}

.modal-close-btn,
.login-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 22px;
    line-height: 1;
}

.ok-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    margin: 18px auto 0;
    border-radius: 999px;
    background: rgba(31, 211, 129, 0.16);
    border: 2px solid rgba(31, 211, 129, 0.55);
    color: var(--green);
    font-size: 44px;
    font-weight: 900;
}

.iti__country-list {
    width: min(92vw, 420px) !important;
    max-height: min(62vh, 430px) !important;
    background: #1d0c03 !important;
    border: 1px solid rgba(255, 171, 73, 0.34) !important;
    border-radius: 10px !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.36) !important;
}

.iti__country {
    display: flex !important;
    align-items: center !important;
    padding: 10px 12px !important;
}

.iti__country-name {
    color: #fff !important;
}

.iti__dial-code {
    color: rgba(255, 255, 255, 0.68) !important;
}

.iti__country-list .x-country-search-wrap {
    position: sticky;
    top: 0;
    z-index: 5;
    padding: 10px;
    background: #1d0c03;
    border-bottom: 1px solid rgba(255, 171, 73, 0.22);
}

.iti__country-list .x-country-search-input {
    width: 100%;
    height: 38px;
    padding: 0 12px;
    border: 1px solid rgba(255, 171, 73, 0.34);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    direction: ltr;
    text-align: left;
    outline: none;
}

.iti__country-list .x-country-search-input:focus {
    border-color: rgba(255, 216, 77, 0.72);
}

body.rtl-layout .modal-close-btn,
body.rtl-layout .login-close-btn {
    right: auto;
    left: 12px;
}

body.rtl-layout .iti__flag-container {
    border-right: none;
    border-left: 1px solid rgba(100, 65, 0, 0.24);
    border-radius: 0 7px 7px 0;
}

body.rtl-layout .verification-box {
    direction: rtl;
}

body.rtl-layout .final-code-display {
    margin-left: 0;
    margin-right: 8px;
}

body.rtl-layout .iti__country-list {
    direction: rtl;
}

body.rtl-layout .iti__country {
    text-align: right;
}

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

@keyframes marquee {
    to {
        transform: translateX(-100%);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-8px);
    }
    50% {
        transform: translateX(8px);
    }
    75% {
        transform: translateX(-4px);
    }
}

@media (min-width: 1500px) {
    .right-tools {
        right: 20px;
    }
}

@media (max-width: 1240px) {
    .home-container {
        width: calc(100vw - 292px);
        margin-left: 264px;
        margin-right: 28px;
    }

    .hero-slide {
        width: min(750px, calc(100vw - 292px));
    }

    .right-tools {
        display: none;
    }
}

@media (max-width: 900px) {
    .page-shell {
        padding-top: 66px;
    }

    .site-header,
    .header-container,
    .header-content,
    .header-top {
        height: 66px;
    }

    .header-top {
        padding: 0 12px;
    }

    .brand-home {
        width: 122px;
        height: 46px;
    }

    .brand-logo {
        width: 112px;
    }

    .header-auth {
        gap: 7px;
    }

    .language-select {
        width: 58px;
        height: 34px;
        font-size: 12px;
    }

    .login-btn,
    .register-btn {
        min-width: 68px;
        height: 34px;
        padding: 0 10px;
        font-size: 12px;
    }

    .left-sidebar {
        position: sticky;
        top: 66px;
        bottom: auto;
        display: block;
        width: 100%;
        padding: 8px 10px;
        overflow-x: auto;
        overflow-y: hidden;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 171, 73, 0.14);
    }

    .left-bar::before {
        display: none;
    }

    .left-wrapper {
        display: block;
        width: max-content;
        padding: 0;
    }

    .sidebar-nav {
        display: flex;
        gap: 7px;
    }

    .side-actions {
        display: none;
    }

    .side-item {
        min-width: max-content;
        min-height: 42px;
        padding: 6px 10px;
        font-size: 11px;
    }

    .side-item .nav-item-content {
        grid-template-columns: 24px max-content;
        grid-template-rows: 1fr;
        gap: 6px;
        width: auto;
        min-width: max-content;
        height: 42px;
        padding: 6px 10px;
    }

    .side-item .nav-icon {
        width: 22px;
        height: 22px;
        font-size: 12px;
    }

    .side-item .nav-name {
        max-width: none;
        min-height: 0;
        white-space: nowrap;
        -webkit-line-clamp: 1;
    }

    .home-container {
        width: 100%;
        margin: 0;
        padding: 12px 10px 32px;
    }

    .notice-bar {
        height: 34px;
        padding-inline: 11px;
        font-size: 12px;
    }

    .hero-panel {
        margin-top: 12px;
    }

    .hero-swiper {
        overflow: hidden;
    }

    .hero-slide {
        width: 100%;
    }

    .category-strip {
        display: flex;
        gap: 7px;
        min-height: 64px;
        margin-top: 12px;
        overflow-x: auto;
    }

    .category-tile {
        min-width: 72px;
        min-height: 52px;
        padding: 6px;
    }

    .category-tile .nav-item-content {
        width: 72px;
        height: 52px;
        padding: 6px;
        grid-template-rows: 22px minmax(0, 1fr);
    }

    .category-tile .nav-icon {
        width: 22px;
        height: 22px;
        font-size: 12px;
    }

    .category-tile .nav-name {
        max-width: 60px;
        font-size: 10px;
    }

    .game-section,
    .wide-section,
    .vendor-section {
        margin-top: 20px;
        scroll-margin-top: 120px;
    }

    .section-head h1 {
        font-size: 18px;
    }

    .game-lane {
        grid-auto-columns: 124px;
        gap: 16px 10px;
    }

    .game-card,
    .game-list-item {
        width: 124px;
        height: 170px;
    }

    .game-list-item .game-img > img {
        width: 124px;
        height: 170px;
    }

    .game-logo-wrap,
    .game-logo-wrap > img,
    .game-list-item .game-logo {
        width: 50px;
        height: 24px;
    }

    .game-info {
        bottom: 34px;
        height: 34px;
    }

    .game-name {
        font-size: 12px;
    }

    .big-game-grid,
    .sports-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .big-game-card,
    .sport-card,
    .big-game-card img,
    .sport-card img {
        min-height: 128px;
    }

    .vendor-row {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        padding: 8px;
    }
}

.b4-nav-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.nav-icon svg {
    display: block;
    width: 30px;
    height: 30px;
    fill: currentColor;
    filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.35));
}

.side-item,
.side-action {
    color: #fff4e0;
}

.side-item.is-active .nav-item-content,
.category-tile.is-active .nav-item-content {
    color: #b64100;
    background:
        linear-gradient(135deg, #ffe600 0%, #ffe600 30%, #fee86f 31%, #fee86f 41%, #ffdd03 42%, #ffdd03 50%, #fee76e 51%, #fee76e 71%, #ffce04 72%, #ffce04 100%);
    border: 1px solid rgba(255, 242, 166, 0.5);
    box-shadow: inset 0 2px 0 1px rgba(255, 242, 166, 0.65), 0 2px 0 #b64100;
}

.side-item:hover .nav-item-content,
.side-action:hover .nav-item-content,
.category-tile:hover .nav-item-content {
    color: #b64100;
    background:
        linear-gradient(135deg, #ffe600 0%, #ffe600 30%, #fee86f 31%, #fee86f 41%, #ffdd03 42%, #ffdd03 50%, #fee76e 51%, #fee76e 71%, #ffce04 72%, #ffce04 100%);
    border: 1px solid rgba(255, 242, 166, 0.5);
    box-shadow: inset 0 2px 0 1px rgba(255, 242, 166, 0.65), 0 2px 0 #b64100;
}

.jackpot-num__item {
    position: relative;
    display: block;
}

.jackpot-num__item span {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
}

.jackpot-num__item.is-rolling span {
    animation: b4-jackpot-digit-roll 0.54s cubic-bezier(0.17, 0.84, 0.44, 1);
}

.jackpot-num__item.is-rolling span::after {
    position: absolute;
    inset: 100% 0 auto;
    display: grid;
    place-items: center;
    height: 100%;
    content: attr(data-next-digit);
}

@keyframes b4-jackpot-digit-roll {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-100%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .jackpot-num__item.is-rolling span {
        animation: none;
    }
}

@media (max-width: 900px) {
    .page-shell {
        width: 100%;
        min-width: 0;
    }

    .site-header,
    .header-container,
    .header-content,
    .header-top,
    .header-top-container {
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .header-top {
        padding-inline: 10px;
    }

    .header-top-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }

    .header-top-left {
        min-width: 0;
    }

    .brand-home {
        width: 112px;
        min-width: 0;
    }

    .brand-logo {
        width: 104px;
        max-width: 100%;
    }

    .header-auth {
        flex: 0 0 auto;
        max-width: calc(100vw - 136px);
    }

    .login-btn,
    .register-btn {
        min-width: 62px;
        max-width: 94px;
        height: 34px;
        padding-inline: 10px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .left-bar {
        display: none;
    }

    .home-container,
    .page-center,
    .main-content {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        padding-inline: 10px;
        overflow: visible;
    }

    .home-banner,
    .page-banner,
    .hero-swiper,
    .index-swiper,
    .category-strip,
    .game-lane,
    .jp-bg,
    .jackpot-section {
        width: 100%;
        max-width: 100%;
    }

    .category-strip {
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
    }

    .side-item .nav-icon svg,
    .category-tile .nav-icon svg {
        width: 24px;
        height: 24px;
    }

    .jp-bg,
    .jackpot-section {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        align-items: start;
        min-height: clamp(210px, 58vw, 280px);
        height: auto;
        padding: 18px clamp(14px, 4vw, 22px);
        background:
            radial-gradient(circle at 50% 12%, rgba(255, 209, 93, 0.22), transparent 42%),
            #2e1900 url("/static/b4/assets/lobby/jp-bg.png") 0 0 / auto 100% no-repeat;
    }

    .jp-container {
        width: 100%;
        height: auto;
        padding: 0;
    }

    .jp-title {
        font-size: clamp(20px, 6vw, 28px);
        line-height: 1.2;
    }

    .roll-num {
        margin-top: clamp(12px, 4vw, 20px);
    }

    .jackpot-num__list {
        gap: clamp(3px, 1.2vw, 7px);
        height: clamp(34px, 10vw, 44px);
    }

    .jackpot-num__item {
        width: clamp(21px, 7vw, 28px);
        height: clamp(34px, 10vw, 44px);
        font-size: clamp(23px, 7.8vw, 31px);
        line-height: clamp(34px, 10vw, 44px);
    }

    .jackpot-num__dot {
        height: clamp(28px, 8vw, 35px);
        font-size: clamp(20px, 6.5vw, 28px);
        line-height: clamp(28px, 8vw, 35px);
    }

    .winner-wrapper {
        position: relative;
        right: auto;
        top: auto;
        width: 100%;
        height: 128px;
        margin-top: 16px;
    }

    .winner-container {
        padding: 0;
    }

    .winner-column {
        width: 190px;
        gap: 8px;
    }

    .win-item {
        width: 190px;
        height: 58px;
    }
}

@media (max-width: 430px) {
    .jp-bg,
    .jackpot-section {
        min-height: 232px;
    }

    .winner-wrapper {
        height: 122px;
    }
}

@media (max-width: 430px) {
    .site-header {
        padding: 0 8px;
    }

    .brand-home {
        width: 96px;
    }

    .brand-logo {
        width: 92px;
    }

    .language-select {
        width: 50px;
        padding-left: 2px;
        padding-right: 2px;
    }

    .login-btn,
    .register-btn {
        min-width: 58px;
        padding: 0 8px;
        font-size: 11px;
    }

    .game-lane {
        grid-auto-columns: 108px;
    }

    .game-card,
    .game-list-item {
        width: 108px;
        height: 148px;
    }

    .game-list-item .game-img > img {
        width: 108px;
        height: 148px;
    }

    .game-logo-wrap,
    .game-logo-wrap > img,
    .game-list-item .game-logo {
        width: 44px;
        height: 22px;
    }

    .vendor-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* B4 主页一比一对齐目标大厅的补充样式。 */
html,
body {
    width: 100%;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}

.page-shell {
    width: 100%;
    min-height: 100vh;
    overflow: visible;
}

.home-container,
.page-center,
.main-content {
    height: auto;
    max-height: none;
    min-height: calc(100vh - 79px);
    overflow: visible;
    gap: 16px;
}

.home-container::-webkit-scrollbar,
.main-content::-webkit-scrollbar,
.left-sidebar::-webkit-scrollbar,
.left-bar::-webkit-scrollbar,
.game-lane::-webkit-scrollbar,
.category-strip::-webkit-scrollbar,
.big-game-grid::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.left-wrapper {
    height: calc(100vh - 95px);
}

.sidebar-nav,
.side-actions {
    gap: 10px;
}

.side-item,
.side-action,
.side-language-card {
    flex: 0 0 85px;
    border: 0;
}

.nav-item-content {
    gap: 8px;
    color: #fff4e0;
    background: #1d0c03;
    box-shadow: 0 1px 0 #644100, inset 0 1px 0 #ffab49;
}

.category-tile .nav-item-content {
    gap: 5px;
    box-shadow: inset 0 2px 0 #ffab49, 0 1px 0 #644100;
}

.nav-icon,
.category-tile .nav-icon {
    width: 30px;
    height: 30px;
    color: #ffc757;
    font-size: 17px;
}

.left-wrapper .side-language-card {
    display: flex;
    flex: 0 0 85px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 97px;
    height: 85px;
    padding: 9px;
    color: #fff;
    background: #1d0c03;
    border: 0;
    border-radius: 10px;
    box-shadow: 0 1px 0 #644100, inset 0 1px 0 #ffab49;
}

.left-wrapper .side-language-card:hover {
    background: #2a1605;
}

.left-wrapper .side-language-card i {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    color: #ffab49;
    font-size: 17px;
}

.left-wrapper .side-language-card .language-select {
    width: 79px;
    max-width: 100%;
    height: 18px;
    padding: 0;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    line-height: 18px;
    text-align: center;
    text-align-last: center;
    text-transform: uppercase;
    cursor: pointer;
    background: transparent;
    border: 0;
    outline: 0;
    appearance: none;
}

.left-wrapper .side-language-card .language-select option {
    color: #fff;
    background: #1d0c03;
}

.home-banner,
.page-banner,
.hero-swiper,
.index-swiper {
    width: 930px;
    height: 317px;
    overflow: hidden;
}

.hero-swiper .swiper-wrapper {
    height: 317px;
}

.hero-slide,
.page-banner.card .swiper-slide {
    width: 750px;
    height: 316.6px;
    border-radius: 8px;
    box-shadow: none;
}

.hero-slide img {
    border-radius: 8px;
}

.category-strip {
    flex-wrap: nowrap;
    width: 930px;
    height: 70px;
    min-height: 70px;
    margin-top: 24px;
    overflow: hidden;
}

.category-tile {
    width: 92px;
    min-width: 92px;
    height: 70px;
}

.game-section {
    height: 486px;
    min-height: 486px;
    overflow: hidden;
}

.section-head,
.home-title {
    height: 53px;
    min-height: 53px;
    padding: 0 0 20px;
    margin: 0;
}

.game-lane {
    width: 930px;
    height: 433px;
    grid-template-rows: repeat(2, 219.5px);
    grid-auto-columns: 160px;
    gap: 12px 20px;
    padding: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: none;
}

.game-card,
.game-list-item {
    display: flex;
    width: 160px;
    height: 219.5px;
    overflow: visible;
    border-radius: 0;
}

.game-img {
    width: 160px;
    height: 219.5px;
    overflow: hidden;
    border-radius: 8px;
}

.game-list-item .game-img > img {
    width: 160px;
    height: 219.5px;
    border-radius: 8px;
}

.action-wrap {
    width: 160px;
    height: 219.5px;
    padding-top: 18px;
    gap: 8px;
    overflow: hidden;
    border-radius: 8px;
}

.start-btn,
.free-btn {
    position: static;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 146px;
    min-width: 146px;
    height: 48px;
    min-height: 48px;
    padding: 0 16px;
    border-radius: 10px;
    color: #b64100;
    font-size: 17px;
    font-weight: 700;
    white-space: nowrap;
    transform: none;
    transform-origin: center;
    background: linear-gradient(#ffe600, #ffb800);
    box-shadow: inset 0 2px 0 1px #fff2a6, 0 2px 0 #b64100;
}

.start-btn {
    margin-top: 48px;
}

.free-btn {
    margin-top: 0;
}

.game-info {
    bottom: 42px;
    height: 42px;
}

.game-logo-wrap {
    bottom: 12px;
}

.love {
    top: 10px;
    right: 10px;
    opacity: 1;
}

.jp-bg,
.jackpot-section {
    width: 930px;
    height: 193px;
    margin: 24px 0 0;
    padding: 10px 0;
    overflow: hidden;
    border-radius: 10px;
    background: #2e1900 url("/static/b4/assets/lobby/jp-bg.png") 0 0 / auto 100% no-repeat;
    box-shadow: none;
}

.winner-wrapper {
    position: absolute;
    top: 0;
    right: 0;
    width: 498px;
    height: 193px;
    overflow: hidden;
}

.winner-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    padding: 21px 0 18px;
}

.winner-track {
    display: flex;
    width: max-content;
    height: 100%;
    gap: 18px;
    animation: b4-winner-scroll 26s linear infinite;
}

.winner-group {
    display: flex;
    gap: 18px;
}

.winner-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 220px;
}

.win-item {
    width: 220px;
    height: 64px;
    padding: 6px;
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(58, 32, 6, 0.94), rgba(20, 10, 2, 0.88));
    box-shadow: inset 0 1px 0 rgba(255, 199, 87, 0.24), 0 3px 8px rgba(0, 0, 0, 0.35);
}

.win-content {
    display: grid;
    grid-template-columns: 42px 1fr;
    grid-template-rows: 30px 18px;
    column-gap: 8px;
    align-items: center;
}

.win-content .game-icon {
    grid-row: 1 / 3;
    width: 42px;
    height: 52px;
    border-radius: 6px;
    object-fit: cover;
}

.win-info {
    min-width: 0;
}

.win-info .game-name {
    max-width: 120px;
    color: #fff4e0;
    font-size: 11px;
    font-weight: 800;
    line-height: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.customer-name {
    margin-top: 2px;
    color: rgba(255, 244, 224, 0.72);
    font-size: 11px;
    line-height: 14px;
}

.game-amount {
    grid-column: 2;
    color: #ffe15a;
    font-size: 12px;
    font-weight: 900;
    line-height: 16px;
    white-space: nowrap;
}

@keyframes b4-winner-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-1172px);
    }
}

.jp-bg::after,
.jackpot-section::after {
    right: 70px;
    top: 16px;
    width: 250px;
    height: 160px;
}

.jp-container {
    width: 410px;
    height: 167px;
    padding: 41px 0 0;
    justify-content: flex-start;
}

.jp-title {
    font-size: 28px;
    line-height: 34px;
}

.right-bar {
    top: 50%;
    right: 20px;
    height: 340px;
    transform: translateY(-50%);
}

@media (max-width: 900px) {
    html,
    body,
    .page-shell {
        height: auto;
        min-height: 100%;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .home-container,
    .page-center,
    .main-content {
        height: auto;
        max-height: none;
        overflow: visible;
    }
}

/* B4 最新修正放在文件末尾，确保覆盖前面的定宽大厅样式。 */
.left-bar {
    width: 240px;
    overflow: hidden auto;
    background: none;
}

.left-wrapper {
    display: flex;
    gap: 10px;
    width: 240px;
    padding: 18px;
}

.left-wrapper .nav-items {
    display: flex;
    flex: 0 0 97px;
    flex-direction: column;
    gap: 10px;
    width: 97px;
}

.left-wrapper .nav-item {
    display: block;
    width: 97px;
    height: 85px;
    padding: 0;
    margin: 0;
    color: #fff4e0;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.left-wrapper .nav-item-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    width: 97px;
    height: 85px;
    padding: 9px;
    color: #fff4e0;
    background: #1d0c03;
    border: 0;
    border-radius: 10px;
    box-shadow: 0 1px 0 #644100, inset 0 1px 0 #ffab49;
}

.home-nav-items {
    display: flex;
    width: 930px;
    height: 70px;
    padding: 0;
    margin: 0;
    overflow: visible;
    background: none;
}

.home-nav-swiper,
.home-nav-items .swiper-container,
.home-nav-items .swiper-wrapper {
    width: 930px;
    height: 70px;
}

.home-nav-items .swiper-wrapper {
    display: flex;
    transform: translate3d(0, 0, 0);
}

.home-nav-items .swiper-slide {
    display: flex;
    flex: 0 0 92px;
    flex-direction: column;
    gap: 10px;
    width: 92px;
    height: 70px;
    margin-right: 10px;
}

.home-nav-items .nav-item {
    display: flex;
    flex: 0 0 70px;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    width: 92px;
    height: 70px;
    min-height: 70px;
    padding: 7px;
    color: #fff4e0;
    background: #1d0c03;
    border: 1px solid rgba(44, 27, 0, 0.4);
    border-radius: 10px;
    box-shadow: inset 0 2px 0 #ffab49, 0 1px 0 #644100;
}

.nav-icon,
.home-nav-items .nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    color: #fff4e0;
}

.home-nav-items .nav-icon {
    width: 28px;
    height: 28px;
}

.nav-icon svg,
.svg-icon {
    display: block;
    width: 100%;
    height: 100%;
}

.sidebar-nav .nav-icon svg {
    fill: url("#gradient");
}

.home-nav-items .nav-icon svg {
    fill: url("#icon_default");
}

.sidebar-nav .nav-item:hover .nav-icon svg,
.sidebar-nav .nav-item.is-active .nav-icon svg,
.home-nav-items .nav-item:hover .nav-icon svg,
.home-nav-items .nav-item.is-active .nav-icon svg {
    fill: url("#icon_active");
}

.sidebar-nav .nav-icon svg path,
.home-nav-items .nav-icon svg path {
    fill: inherit !important;
}

.left-wrapper .nav-name,
.home-nav-items .nav-name {
    width: 100%;
    overflow: hidden;
    color: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.1;
    text-align: center;
    text-overflow: ellipsis;
    text-transform: uppercase;
}

.left-wrapper .nav-item:hover .nav-item-content,
.left-wrapper .nav-item.is-active .nav-item-content,
.home-nav-items .nav-item:hover,
.home-nav-items .nav-item.is-active {
    color: #fff4e0;
    background: #1d0c03;
    border-color: rgba(44, 27, 0, 0.4);
    box-shadow: inset 0 2px 0 #ffab49, 0 1px 0 #644100;
    filter: brightness(1.08);
}

.left-wrapper .nav-item:hover .nav-item-content,
.left-wrapper .nav-item.is-active .nav-item-content {
    border: 0;
    box-shadow: 0 1px 0 #644100, inset 0 1px 0 #ffab49;
}

@media (max-width: 900px) {
    .home-banner,
    .page-banner,
    .hero-swiper,
    .index-swiper,
    .category-strip,
    .game-lane,
    .jp-bg,
    .jackpot-section {
        width: 100% !important;
        max-width: 100%;
    }

    .hero-panel,
    .home-banner,
    .page-banner,
    .hero-swiper,
    .common-swiper,
    .index-swiper {
        height: auto;
        height: clamp(180px, 50vw, 210px);
        min-height: 0;
        aspect-ratio: auto;
        overflow: hidden;
    }

    .hero-swiper .swiper-wrapper {
        height: 100%;
    }

    .hero-slide,
    .page-banner.card .swiper-slide {
        width: 100%;
        max-width: 100%;
        height: 100%;
        aspect-ratio: auto;
    }

    .hero-slide img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center center;
    }

    .hero-swiper .swiper-pagination {
        bottom: 6px;
    }

    .home-nav-items {
        width: 100% !important;
        height: 66px;
        min-height: 66px;
        margin-top: 12px;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .home-nav-swiper,
    .home-nav-items .swiper-container,
    .home-nav-items .swiper-wrapper {
        width: max-content;
        min-width: 100%;
        height: 66px;
    }

    .home-nav-items .swiper-slide {
        flex: 0 0 82px;
        width: 82px;
        height: 66px;
        margin-right: 8px;
    }

    .home-nav-items .nav-item {
        width: 82px;
        height: 62px;
        min-height: 62px;
        padding: 6px;
    }

    .home-nav-items .nav-icon {
        width: 24px;
        height: 24px;
    }

    .home-nav-items .nav-name {
        font-size: 10px;
        line-height: 1.05;
    }

    .game-section {
        height: auto;
        min-height: 0;
        overflow: visible;
    }

    .game-lane {
        width: 100% !important;
        max-width: 100%;
        grid-auto-columns: minmax(126px, 40vw);
        grid-template-rows: repeat(2, minmax(172px, 52vw));
        gap: 10px 12px;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .game-card,
    .game-list-item,
    .game-img,
    .game-list-item .game-img > img,
    .action-wrap {
        width: 100%;
        height: 100%;
    }

    .big-game-grid,
    .sport-grid {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
    }

    .jp-bg,
    .jackpot-section {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        align-items: start;
        min-height: clamp(210px, 58vw, 280px) !important;
        height: auto !important;
        padding: 18px clamp(14px, 4vw, 22px);
    }

    .jp-container {
        width: 100%;
        height: auto;
        padding: 0;
    }

    .winner-wrapper {
        position: relative;
        top: auto;
        right: auto;
        width: 100%;
        height: 128px;
        margin-top: 16px;
    }

    .winner-container {
        padding: 0;
    }
}

.open-whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}
