* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --gold: #d4af37;
    --gold-light: #f2d279;
    --gold-deep: #b8860b;
    --gold-btn: linear-gradient(180deg, #e6cb81 0%, #cfae4a 50%, #b38e2a 100%);
    --gold-text: linear-gradient(180deg, #fff0bf 0%, #d4af37 50%, #8a6410 100%);
    --bg: #0a0806;
    --text: #e2d3a8;
    --text-dim: #9a8c66;
    --card: rgba(38, 28, 18, 0.55);
    --card-border: rgba(212, 175, 55, 0.2);
}

html, body {
    width: 100%;
    min-height: 100vh;
    font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
    font-size: 14px;
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.login-body {
    position: relative;
    min-height: 100vh;
    background:
        url("../../ABG/imgi_4_bg.jpg") center/cover no-repeat fixed,
        radial-gradient(ellipse at 50% 0%, rgba(120, 80, 30, 0.3) 0%, transparent 55%),
        radial-gradient(ellipse at 50% 100%, rgba(0, 0, 0, 0.5) 0%, transparent 55%),
        linear-gradient(180deg, #0a0806 0%, #15100a 40%, #1e1610 55%, #0c0a08 100%);
    overflow-x: hidden;
}

.bg-layer {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-vignette {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.55) 100%);
}

.bg-sparkles {
    position: absolute;
    inset: 0;
}

.sparkle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--gold-light);
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(255, 215, 100, 0.7);
    animation: sparkleAnim 3.2s ease-in-out infinite;
    opacity: 0;
}

@keyframes sparkleAnim {
    0%, 100% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 0.8; transform: scale(1); }
}

.lang-switch {
    position: fixed;
    top: 18px;
    right: 22px;
    z-index: 10;
    width: 184px;
}

.lang-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: drop-shadow(0 0 3px rgba(212, 175, 55, 0.2));
}

.language-toggle {
    width: 100%;
    min-height: 34px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 4px 9px;
    border: 1px solid rgba(212, 175, 55, 0.08);
    border-radius: 18px;
    background: rgba(14, 12, 10, 0.52);
    color: var(--text);
    font: inherit;
    cursor: pointer;
}

.language-toggle > span:nth-child(2) {
    flex: 1;
    text-align: center;
    font-size: 12px;
}

.language-arrow {
    color: var(--gold-light);
    font-size: 15px;
    line-height: 1;
    transition: transform 0.18s ease;
}

.lang-switch.is-open .language-arrow {
    transform: rotate(180deg);
}

.language-menu {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    width: 100%;
    max-height: min(580px, calc(100vh - 64px));
    overflow-y: auto;
    padding: 0 8px;
    border-radius: 10px;
    background: rgba(8, 8, 7, 0.94);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.language-menu[hidden] {
    display: none;
}

.language-option {
    width: 100%;
    min-height: 49px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 12px;
    border: 0;
    border-bottom: 1px solid rgba(190, 164, 122, 0.62);
    background: transparent;
    color: #eee9df;
    text-align: left;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}

.language-option:last-child {
    border-bottom: 0;
}

.language-option:hover,
.language-option.is-selected {
    color: #fff4d7;
}

.language-radio {
    width: 13px;
    height: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 13px;
    border: 1px solid rgba(218, 192, 145, 0.8);
    border-radius: 50%;
    color: #f4d69c;
    font-size: 9px;
    line-height: 1;
}

.language-option.is-selected .language-radio {
    border-color: transparent;
}

.abg-logo {
    width: 200px;
    height: auto;
    max-width: 80vw;
    object-fit: contain;
    filter: drop-shadow(0 0 22px rgba(212, 175, 55, 0.55));
    animation: logoFloat 4s ease-in-out infinite alternate;
}

@keyframes logoFloat {
    0% { transform: translateY(0) scale(1); filter: drop-shadow(0 0 18px rgba(212, 175, 55, 0.45)); }
    100% { transform: translateY(-4px) scale(1.01); filter: drop-shadow(0 0 28px rgba(212, 175, 55, 0.65)); }
}

.login-wrap {
    position: relative;
    z-index: 5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 110px 24px 110px;
    gap: 30px;
}

.logo-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 4px;
    min-height: 180px;
}

.logo-circle {
    position: relative;
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-brush {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.brush-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 14px rgba(212, 175, 55, 0.45));
}

.logo-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding-top: 8px;
}

.logo-dragon-char {
    font-family: "STKaiti", "KaiTi", serif;
    font-size: 26px;
    font-weight: 500;
    background: var(--gold-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: translateY(6px);
    filter: drop-shadow(0 1px 0 rgba(0,0,0,0.4));
    letter-spacing: 2px;
}

.logo-main-char {
    font-family: "STKaiti", "KaiTi", "Microsoft YaHei", serif;
    font-size: 64px;
    font-weight: 700;
    background: var(--gold-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: -4px;
    filter: drop-shadow(0 2px 1px rgba(0,0,0,0.45));
    letter-spacing: 2px;
}

.logo-shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 35%, rgba(255, 240, 180, 0.16) 50%, transparent 65%);
    transform: skewX(-20deg);
    animation: shine 5.2s ease-in-out infinite;
    pointer-events: none;
    z-index: 3;
}

@keyframes shine {
    0% { transform: translateX(-60%) skewX(-20deg); }
    55%, 100% { transform: translateX(120%) skewX(-20deg); }
}

.login-card {
    width: 100%;
    max-width: 380px;
    background: var(--card);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 32px 30px 22px;
    position: relative;
    box-shadow:
        0 18px 50px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 230, 160, 0.04);
}

.login-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 18px;
    padding: 1px;
    background: linear-gradient(155deg, rgba(247, 216, 126, 0.55) 0%, rgba(212, 175, 55, 0.15) 25%, transparent 45%, transparent 60%, rgba(184, 134, 11, 0.15) 80%, rgba(212, 175, 55, 0.4) 100%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    position: relative;
    padding: 14px 2px 12px;
}

.input-icon {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    object-fit: contain;
    opacity: 0.92;
    z-index: 2;
    flex-shrink: 0;
}

.input-group input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    font-size: 16px;
    padding: 10px 42px 10px 38px;
    font-family: inherit;
    letter-spacing: 0.5px;
}

.input-group input::placeholder {
    color: var(--text-dim);
    font-size: 16px;
    letter-spacing: 1px;
    opacity: 0.9;
}

.input-toggle {
    position: absolute;
    right: -2px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    opacity: 0.9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pwd-eye {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.input-line {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(212, 175, 55, 0.45) 12%, rgba(212, 175, 55, 0.6) 50%, rgba(212, 175, 55, 0.45) 88%, transparent 100%);
}

.input-group::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gold-light), var(--gold), var(--gold-deep));
    transition: all 0.35s ease;
    transform: translateX(-50%);
    z-index: 2;
    box-shadow: 0 0 6px rgba(212, 175, 55, 0.35);
}

.input-group:focus-within::after { width: 100%; }

.btn-login-gold {
    position: relative;
    width: 100%;
    margin-top: 10px;
    padding: 16px 20px;
    border: 1px solid rgba(255, 235, 170, 0.4);
    border-radius: 8px;
    cursor: pointer;
    overflow: hidden;
    background: linear-gradient(180deg, #ead08a 0%, #d8b655 45%, #c49b36 100%);
    box-shadow:
        0 3px 0 #8a6a1c,
        0 8px 24px rgba(212, 175, 55, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.55),
        inset 0 -2px 4px rgba(140, 100, 20, 0.25);
    transition: transform 0.15s;
}

.btn-login-gold:active {
    transform: translateY(2px);
    box-shadow:
        0 1px 0 #8a6a1c,
        0 4px 14px rgba(212, 175, 55, 0.28);
}

.btn-login-gold .btn-text {
    position: relative;
    z-index: 2;
    color: #2e2006;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: 10px;
    padding-left: 10px;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 55%;
    height: 100%;
    background: linear-gradient(100deg, transparent 25%, rgba(255, 255, 220, 0.7) 50%, transparent 75%);
    transform: skewX(-18deg);
    animation: btnShine 3.2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes btnShine {
    0% { left: -100%; }
    50%, 100% { left: 120%; }
}

.btn-download {
    width: 100%;
    max-width: 380px;
    padding: 15px 20px;
    background: rgba(212, 175, 55, 0.02);
    border: 1px solid rgba(212, 175, 55, 0.5);
    border-radius: 10px;
    color: var(--gold-light);
    font-size: 17px;
    font-weight: 500;
    letter-spacing: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.2s;
    font-family: inherit;
    box-shadow: inset 0 0 20px rgba(212, 175, 55, 0.03);
}

.btn-download:active {
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.7);
}

.dl-icon {
    width: 30px;
    height: 18px;
    flex-shrink: 0;
    object-fit: contain;
    filter: drop-shadow(0 0 4px rgba(242, 210, 121, 0.3));
}
.dl-text { padding-left: 5px; }

.service-row {
    width: 100%;
    max-width: 520px;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--text);
}

.service-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.cs-btn-img-wrap {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.35));
    transition: all 0.2s;
}

.cs-btn-img-wrap:active {
    transform: scale(0.96);
    filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.55));
}

.cs-btn-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.srv-phone-wrap {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.3));
}

.srv-text-group {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.srv-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--gold-light);
    letter-spacing: 3px;
}

.srv-sub {
    font-size: 10px;
    color: var(--text-dim);
    letter-spacing: 2.5px;
}

.srv-divider {
    width: 1px;
    height: 42px;
    background: linear-gradient(180deg, transparent, rgba(212, 175, 55, 0.35), transparent);
    flex-shrink: 0;
}

.service-right {
    flex: 1;
    min-width: 0;
    font-size: 12px;
    color: var(--text-dim);
    line-height: 1.65;
}

.srv-email {
    color: var(--gold);
    font-size: 14px;
    margin-top: 2px;
    letter-spacing: 0.3px;
}

.footer-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 8;
    padding: 12px 20px 16px;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.6) 30%, rgba(0,0,0,0.85) 100%);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    max-width: 720px;
    margin: 0 auto;
}

.cert-row {
    display: flex;
    align-items: center;
    gap: 22px;
}

.cert-img {
    height: 30px;
    width: auto;
    object-fit: contain;
    display: block;
}

.cert-glc {
    max-width: 120px;
}

.cert-ceza {
    max-width: 90px;
    filter: drop-shadow(0 0 2px rgba(255,255,255,0.08));
}

.footer-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    color: var(--text-dim);
    opacity: 0.9;
}

.foot-sep::before { content: '· '; margin-right: 6px; opacity: 0.6; }

.modal-mask {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.modal {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    display: none;
    flex-direction: column;
    background: #0a0806;
    border-radius: 0;
    overflow: hidden;
}

#registerModal {
    width: 92%;
    max-width: 380px;
    height: auto;
    max-height: 88vh;
    border-radius: 14px;
    background: linear-gradient(180deg, #1e1611 0%, #120d09 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    animation: modalFadeIn 0.28s ease-out;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(14px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

#gameFrameModal {
    width: 100%;
    height: 100%;
    animation: none;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.18);
    background: rgba(30, 22, 14, 0.6);
}

.modal-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--gold-light);
    letter-spacing: 2px;
}

.modal-header-game {
    display: flex;
    min-height: 58px;
    gap: 10px;
    padding: 8px 12px;
    background: linear-gradient(180deg, #21180e, #100c08);
    border-bottom: 1px solid rgba(212, 175, 55, 0.25);
}

.modal-header-game .game-exit {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    flex-shrink: 0;
}

.game-shell-brand {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--gold-light);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.game-shell-brand img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.game-directory-button {
    flex-shrink: 0;
    padding: 7px 12px;
    border: 1px solid rgba(212, 175, 55, 0.6);
    border-radius: 18px;
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold-light);
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.game-directory-short {
    display: none;
}

.game-shell-account {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    margin-left: auto;
    color: var(--text-dim);
    font-size: 11px;
}

.game-shell-username {
    max-width: 76px;
    overflow: hidden;
    color: var(--text);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.game-shell-balance {
    white-space: nowrap;
}

.game-shell-balance b {
    color: var(--gold-light);
    font-size: 12px;
}

#gameBalanceRefresh,
.game-shell-service {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.22);
    color: var(--gold-light);
}

.game-shell-service {
    flex-shrink: 0;
    font-size: 11px;
}

.game-announcement-bar {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 34px;
    padding: 0 12px;
    background: rgba(24, 18, 11, 0.98);
    border-bottom: 1px solid rgba(212, 175, 55, 0.22);
    color: var(--gold-light);
    flex-shrink: 0;
}

.announcement-label {
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

.announcement-ticker {
    min-width: 0;
    flex: 1;
    overflow: hidden;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text);
    font-size: 11px;
    text-align: left;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.announcement-arrow {
    color: var(--gold);
    font-size: 18px;
    line-height: 1;
}

.announcement-modal {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(0, 0, 0, 0.72);
}

.announcement-panel {
    display: flex;
    flex-direction: column;
    width: min(100%, 520px);
    max-height: min(78vh, 680px);
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.36);
    border-radius: 12px;
    background: linear-gradient(180deg, #21180e, #100c08);
    box-shadow: 0 14px 50px rgba(0, 0, 0, 0.55);
}

.announcement-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.announcement-panel-head h3 {
    margin: 0;
    color: var(--gold-light);
    font-size: 15px;
}

.announcement-panel-head button {
    border: 0;
    background: transparent;
    color: var(--text-dim);
    font-size: 25px;
}

.announcement-list,
.announcement-detail {
    overflow: auto;
    padding: 8px 16px 16px;
}

.announcement-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 13px 0;
    border: 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.12);
    background: transparent;
    color: var(--text);
    font-size: 13px;
    line-height: 1.55;
    text-align: left;
}

.announcement-item-title {
    overflow-wrap: anywhere;
}

.announcement-item-arrow {
    color: var(--gold);
    font-size: 18px;
}

.announcement-empty {
    padding: 28px 8px;
    color: var(--text-dim);
    font-size: 13px;
    text-align: center;
}

.announcement-back {
    margin: 4px 0 12px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--gold-light);
    font-size: 12px;
}

.announcement-detail h4 {
    margin: 4px 0 12px;
    color: var(--text);
    font-size: 15px;
    line-height: 1.5;
}

.announcement-detail-content {
    color: var(--text-dim);
    font-size: 13px;
    line-height: 1.8;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.game-exit {
    width: 28px;
    height: 28px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    border-radius: 6px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.modal-dots {
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    padding: 4px 8px;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    padding: 2px 8px;
}

.modal-body {
    padding: 18px;
    flex: 1;
    overflow-y: auto;
}

.game-frame-body {
    position: relative;
    padding: 0;
    height: auto;
    flex: 1;
    background: #000;
    overflow: hidden;
}

.game-loading {
    position: absolute;
    inset: 0;
    z-index: 10;
    background: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    padding: 0;
}

.gl-top-logo {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 3;
    opacity: 0.95;
}

.gl-banner {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 70px 20px 0;
    position: relative;
    z-index: 1;
}

.gl-banner-img {
    width: 100%;
    max-width: 420px;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.15);
}

.gl-progress {
    width: 100%;
    height: 2px;
    background: rgba(212, 175, 55, 0.12);
    border-radius: 0;
    overflow: hidden;
    margin-top: 10px;
    flex-shrink: 0;
}

.gl-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--gold-light), var(--gold));
    border-radius: 0;
    transition: width 0.12s linear;
    box-shadow: 0 0 6px rgba(242, 210, 121, 0.5);
}

.gl-text {
    font-size: 14px;
    color: #f2d279;
    letter-spacing: 2px;
    font-weight: 500;
    padding: 8px 0 14px;
    flex-shrink: 0;
}

.gl-footer {
    width: 100%;
    background: #000;
    padding: 6px 16px 10px;
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--text-dim);
    font-size: 11px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
}

.glf-cert {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
}

.glf-img {
    height: 24px;
    width: auto;
    max-width: 80px;
    object-fit: contain;
}

.glf-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.glf-logo-img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.35));
}

.glf-meta {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-family: monospace;
    font-size: 10.5px;
    line-height: 1.35;
}

.glf-ver {
    color: var(--text-mid);
    font-weight: 500;
}

.glf-right {
    display: flex;
    flex-direction: column;
    gap: 2px;
    color: var(--text-dim);
}

.glf-ip { color: var(--gold); font-weight: 600; }

.game-frame-body iframe {
    width: 100%;
    height: 100%;
    min-height: 100%;
    border: none;
    background: #000;
    display: block;
}

.game-error {
    position: absolute;
    inset: 0;
    z-index: 12;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    padding: 24px;
    background: #0a0806;
    color: var(--text-dim);
    text-align: center;
}

.game-error-title {
    color: var(--gold-light);
    font-size: 18px;
    font-weight: 700;
}

.game-error-message {
    max-width: 520px;
    color: #fff;
    font-size: 14px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.game-error-hint {
    max-width: 420px;
    font-size: 12px;
    line-height: 1.6;
}

.game-foot-bar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 6px 16px 10px;
    background: #000;
    color: var(--text-dim);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 11px;
}

.gf-cert {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
}

.gf-img {
    height: 24px;
    width: auto;
    max-width: 80px;
    object-fit: contain;
}

.gf-logo-wrap {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gf-logo-img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.35));
}

.gf-meta {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    opacity: 0.9;
}

.gf-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-item { margin-bottom: 14px; }

.form-item input {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    background: rgba(10, 8, 6, 0.65);
    border: 1px solid rgba(212, 175, 55, 0.22);
    border-radius: 8px;
    color: var(--text);
    font-size: 14px;
    outline: none;
    font-family: inherit;
    transition: all 0.2s;
}

.form-item input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-item input::placeholder { color: var(--text-dim); }

.btn-primary {
    height: 46px;
    background: var(--gold-btn);
    color: #3a2a08;
    border: 1px solid rgba(255, 235, 170, 0.3);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s;
    box-shadow: 0 2px 0 #7e5e14, 0 6px 16px rgba(212, 175, 55, 0.28);
    font-family: inherit;
}

.btn-primary:active {
    transform: translateY(2px);
    box-shadow: 0 0 0 #7e5e14, 0 3px 8px rgba(212, 175, 55, 0.25);
}

.btn-block {
    width: 100%;
    margin-top: 6px;
    letter-spacing: 4px;
}

.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(15, 10, 6, 0.96);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: var(--text);
    padding: 12px 22px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 3000;
    max-width: 80%;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(15, 10, 6, 0.96);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 22px 30px;
    border-radius: 12px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.loading.loading-screen {
    inset: 0;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: none;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #000;
    gap: 0;
    z-index: 4000;
}

.loading-topbar {
    width: 100%;
    height: 72px;
    flex: 0 0 72px;
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    padding: 5px 7px;
    background: #f2f2f2;
    color: #171717;
}

.loading-close,
.loading-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-family: Arial, sans-serif;
    font-size: 25px;
    font-weight: 300;
}

.loading-menu {
    font-size: 18px;
    letter-spacing: 1px;
}

.loading-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    line-height: 1.1;
}

.loading-brand strong {
    font-size: 16px;
    font-weight: 500;
}

.loading-brand span {
    color: #777;
    font-size: 12px;
}

.loading-content {
    position: relative;
    width: 100%;
    min-height: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #000;
}

.loading-logo {
    width: clamp(92px, 11vw, 118px);
    height: auto;
    margin-top: clamp(50px, 9vh, 100px);
    object-fit: contain;
    filter: none;
    animation: none;
}

.loading-progress {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: clamp(65px, 12vh, 130px);
}

.loading-dots {
    display: flex;
    align-items: center;
    gap: 16px;
}

.loading-dots span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #716d62;
    opacity: 0.32;
    animation: loadingDot 1.4s ease-in-out infinite;
}

.loading-dots span:nth-child(2) { animation-delay: 0.16s; }
.loading-dots span:nth-child(3) { animation-delay: 0.32s; }
.loading-dots span:nth-child(4) { animation-delay: 0.48s; }

@keyframes loadingDot {
    0%, 100% { opacity: 0.32; transform: scale(0.86); }
    50% { opacity: 0.95; transform: scale(1); }
}

.loading-percent {
    margin-top: 10px;
    color: #d4cdbd;
    font-size: 17px;
    line-height: 1.3;
}

.loading-text {
    margin-top: 7px;
    color: #8c8679;
    font-size: 10px;
    letter-spacing: 0.2px;
}

.loading-footer {
    position: absolute;
    bottom: clamp(40px, 8vh, 84px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 11px;
    color: #b5aa8b;
    font-size: 12px;
}

.loading-phone {
    width: 16px;
    height: 29px;
    color: #b89d5c;
}

#modalMask:has(#gameFrameModal[style*="display: flex"]) {
    padding: 0;
}

@media (max-width: 520px) {
    .modal-header-game { gap: 6px; padding: 7px 8px; }
    .game-announcement-bar { min-height: 32px; padding: 0 9px; }
    .game-shell-brand { gap: 4px; font-size: 11px; }
    .game-shell-brand img { width: 28px; height: 28px; }
    .game-directory-button { padding: 6px 8px; font-size: 10px; }
    .game-directory-label { display: none; }
    .game-directory-short { display: inline; }
    .game-shell-account { gap: 5px; font-size: 10px; }
    .game-shell-username { max-width: 55px; }
    .game-shell-balance b { font-size: 11px; }
    #gameBalanceRefresh, .game-shell-service { min-width: 29px; height: 29px; padding: 0 6px; }
    .game-shell-service { font-size: 10px; }
    .login-wrap { padding: 96px 20px 120px; gap: 28px; }
    .logo-circle { width: 170px; height: 170px; }
    .logo-main-char { font-size: 60px; }
    .logo-dragon-char { font-size: 24px; }
    .login-card { padding: 30px 24px 22px; }
    .btn-login-gold .btn-text { font-size: 18px; letter-spacing: 8px; padding-left: 8px; }
    .service-row { flex-wrap: wrap; gap: 12px; }
    .srv-divider { display: none; }
    .service-right { width: 100%; }
    .lang-switch { top: 12px; right: 14px; }
    .footer-bar { padding: 10px 14px 14px; }
    .gf-meta { flex-direction: column; align-items: flex-start; }
    .srv-phone-wrap { width: 44px; height: 44px; }
    .srv-title { font-size: 15px; letter-spacing: 2.5px; }
}

@media (max-height: 680px) {
    .login-wrap { padding-top: 74px; gap: 24px; }
    .logo-circle { width: 150px; height: 150px; }
    .logo-main-char { font-size: 54px; }
    .logo-dragon-char { font-size: 22px; }
    .login-card { padding: 26px 22px 20px; }
    .login-form { gap: 14px; }
}

.hall-modal {
    position: fixed;
    inset: 0;
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    max-height: none !important;
    border-radius: 0 !important;
    overflow: hidden;
    flex-direction: column;
    background:
        radial-gradient(ellipse at 50% -10%, rgba(120, 80, 30, 0.2) 0%, transparent 50%),
        linear-gradient(180deg, #1a120a 0%, #0e0a06 35%, #080605 100%);
}

.hall-top-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px 6px;
    background: #f6f6f6;
    color: #1a1a1a;
    flex-shrink: 0;
    flex-direction: column;
    gap: 2px;
}

.hth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.hth-back, .hth-menu {
    background: none;
    border: none;
    color: #1a1a1a;
    font-size: 26px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    line-height: 1;
}

.hth-title {
    flex: 1;
    text-align: center;
    font-size: 30px;
    font-weight: 600;
    letter-spacing: 8px;
    font-family: Arial, sans-serif;
    color: #1a1a1a;
    padding-left: 8px;
}

.hth-subtitle {
    text-align: center;
    font-size: 20px;
    font-weight: 500;
    color: #777;
    letter-spacing: 1px;
    font-family: Arial, sans-serif;
    padding-bottom: 4px;
}

.hall-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background:
        linear-gradient(180deg, rgba(50, 36, 18, 0.92) 0%, rgba(30, 20, 10, 0.75) 100%);
    flex-shrink: 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.22);
}

.hh-btn {
    width: 44px;
    height: 44px;
    background: rgba(40, 28, 12, 0.85);
    border: 1px solid rgba(212, 175, 55, 0.28);
    border-radius: 14px;
    color: var(--gold-light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.hh-btn:active { background: rgba(255, 255, 255, 0.09); }

.hh-user {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
    padding: 6px 12px 6px 6px;
    background: rgba(40, 28, 12, 0.85);
    border: 1px solid rgba(212, 175, 55, 0.28);
    border-radius: 30px;
    height: 44px;
}

.hh-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #d8c38b, #a4833e 70%, #6b511e);
    object-fit: cover;
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.35);
    flex-shrink: 0;
}

.hh-username {
    font-size: 15px;
    font-weight: 600;
    color: #f4e4b3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.5px;
    font-family: "Courier New", monospace;
}

.hh-right {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.hh-balance-box {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 4px 10px 4px 4px;
    background: rgba(40, 28, 12, 0.85);
    border: 1px solid rgba(212, 175, 55, 0.28);
    border-radius: 14px;
}

.hh-bal-row1 {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 6px 0 8px;
}

.hh-coin { width: 16px; height: 16px; object-fit: contain; }

.hh-balance {
    color: #f8efcf;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.5px;
    min-width: 0;
    font-family: Arial, sans-serif;
}

.hh-refresh {
    background: transparent;
    border: none;
    color: var(--gold);
    cursor: pointer;
    font-size: 16px;
    padding: 0 2px;
}

.hh-bal-row2 {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--gold-light);
    font-size: 12px;
    padding: 2px 6px 2px 8px;
    opacity: 0.95;
    border-top: 1px solid rgba(212, 175, 55, 0.08);
}

.hh-burger {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.22);
    border-radius: 14px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    flex-shrink: 0;
}

.hh-burger span {
    width: 20px;
    height: 2px;
    background: linear-gradient(90deg, var(--gold-light), var(--gold));
    border-radius: 2px;
}

.hall-plat-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px 6px;
    flex-shrink: 0;
}

.pg-games-grid {
    grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
    padding-top: 12px;
}

.pg-games-grid.pg-games-state {
    display: flex;
    min-height: 140px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--text-dim);
    text-align: center;
}

.pg-game-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    padding: 0 0 12px;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    background: var(--card);
    color: var(--text);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.2s;
}

.pg-game-card:hover,
.pg-game-card:focus-visible {
    transform: translateY(-2px);
    border-color: var(--gold);
    outline: none;
}

.pg-game-artwork {
    display: flex;
    width: 100%;
    aspect-ratio: 16 / 10;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: radial-gradient(ellipse at 50% 100%, rgba(212, 175, 55, 0.22), transparent 65%), #17100a;
}

.pg-game-artwork img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pg-game-artwork-fallback {
    color: var(--gold-light);
    font-size: 30px;
    font-weight: 800;
    letter-spacing: 3px;
}

.pg-game-title {
    overflow: hidden;
    padding: 10px 12px 2px;
    color: var(--text);
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pg-game-provider {
    padding: 0 12px;
    color: var(--text-dim);
    font-size: 12px;
}

.pg-retry-button {
    padding: 8px 18px;
    border: 1px solid var(--card-border);
    border-radius: 20px;
    background: transparent;
    color: var(--gold-light);
    font: inherit;
    cursor: pointer;
}

.hpt-btn {
    padding: 7px 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(212, 175, 55, 0.22);
    color: var(--text-dim);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    letter-spacing: 1.5px;
    transition: all 0.2s;
}

.hpt-btn.hpt-active {
    background: linear-gradient(180deg, rgba(230, 203, 129, 0.25), rgba(212, 175, 55, 0.08));
    border-color: rgba(212, 175, 55, 0.6);
    color: var(--gold-light);
}

.hpt-btn.hpt-service {
    margin-left: auto;
    border-style: dashed;
    color: var(--gold-light);
    opacity: 0.85;
}

.hall-scroll {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
    -webkit-overflow-scrolling: touch;
}

.cat-scroll {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding: 10px 12px 4px;
    gap: 8px 6px;
}

.cat-scroll::-webkit-scrollbar,
.cat-pager { display: none; }

.cat-page {
    display: contents;
}

.cat-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 10px 4px;
    background: rgba(20, 14, 6, 0.88);
    border: 1px solid rgba(212, 175, 55, 0.22);
    border-radius: 12px;
    cursor: pointer;
    color: var(--text);
    transition: all 0.2s;
    font-family: inherit;
}

.cat-btn:active { transform: scale(0.97); }

.cat-btn.cat-btn-active {
    background:
        linear-gradient(180deg, rgba(238, 214, 150, 0.98) 0%, rgba(220, 192, 124, 0.98) 40%, rgba(200, 168, 100, 0.98) 100%);
    border-color: rgba(255, 235, 160, 0.55);
    color: #3a2a08;
    box-shadow:
        0 3px 0 #8a6a1c,
        0 6px 16px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.cat-btn.cat-btn-active .cat-ico {
    filter: drop-shadow(0 0 4px rgba(255, 240, 200, 0.6));
}

.cat-btn.cat-btn-active .cat-txt {
    color: #3a2a08;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

.cat-ico {
    font-size: 24px;
    line-height: 1;
    width: 28px;
    height: 26px;
    display: block;
    object-fit: contain;
}

.cat-btn.cat-btn-active .cat-ico { filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.4)); }

.cat-txt {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cat-pager {
    display: none;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 6px 0 10px;
}

.cp-dot {
    width: 16px;
    height: 3px;
    background: rgba(212, 175, 55, 0.2);
    border-radius: 3px;
    transition: all 0.25s;
}

.cp-dot.cp-dot-active {
    background: linear-gradient(90deg, var(--gold-light), var(--gold));
    width: 30px;
}

.recent-block {
    margin: 6px 12px 10px;
    padding: 10px 10px 12px;
    background: rgba(32, 24, 16, 0.7);
    border: 1px solid rgba(212, 175, 55, 0.16);
    border-radius: 12px;
}

.rb-title {
    color: var(--gold-light);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 8px;
    padding-left: 2px;
}

.rb-row {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 2px;
    -webkit-overflow-scrolling: touch;
}

.rb-row::-webkit-scrollbar { display: none; }

.rb-empty {
    color: var(--text-dim);
    font-size: 12px;
    padding: 10px 4px;
    opacity: 0.7;
}

.rb-item {
    flex: 0 0 auto;
    min-width: 84px;
    padding: 10px 10px 8px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.15s;
}

.rb-item:active { background: rgba(212, 175, 55, 0.08); }

.rb-item-ico {
    font-size: 26px;
    line-height: 1;
    width: 32px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

.rb-item-name {
    font-size: 11px;
    color: var(--text);
    white-space: nowrap;
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rb-item-code {
    font-size: 10px;
    color: var(--gold);
    font-family: monospace;
    letter-spacing: 1px;
}

.filter-bar {
    margin: 0 12px 10px;
    padding: 8px 10px 8px 12px;
    background: rgba(32, 24, 16, 0.55);
    border: 1px solid rgba(212, 175, 55, 0.16);
    border-radius: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.fb-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    flex: 1;
}

.fb-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 16px;
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: var(--text-dim);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s;
}

.ft-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    background: rgba(212, 175, 55, 0.18);
    color: transparent;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
    transition: all 0.15s;
}

.fb-tag.fb-tag-on {
    background: linear-gradient(180deg, rgba(230, 203, 129, 0.2), rgba(212, 175, 55, 0.05));
    border-color: rgba(212, 175, 55, 0.55);
    color: var(--gold-light);
}

.fb-tag.fb-tag-on .ft-check {
    background: linear-gradient(180deg, var(--gold-light), var(--gold));
    color: #3a2a08;
}

.fb-filter-ico {
    width: 32px;
    height: 32px;
    background: transparent;
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 50%;
    color: var(--gold-light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.rooms-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0 12px;
}

.room-card {
    position: relative;
    background: linear-gradient(180deg, rgba(50, 36, 20, 0.88) 0%, rgba(22, 14, 6, 0.94) 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.room-card:active { transform: scale(0.985); border-color: rgba(212, 175, 55, 0.65); box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.3), 0 4px 16px rgba(0, 0, 0, 0.4); }

.room-card.r-sexy {
    background: linear-gradient(180deg, rgba(78, 30, 60, 0.75) 0%, rgba(26, 10, 18, 0.94) 100%);
    border-color: rgba(230, 150, 180, 0.28);
}

.room-card.r-vip {
    background: linear-gradient(180deg, rgba(70, 50, 22, 0.92) 0%, rgba(32, 20, 8, 0.96) 100%);
    border-color: rgba(212, 175, 55, 0.55);
}

.room-head {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 8px;
    z-index: 3;
    background: linear-gradient(180deg, rgba(0,0,0,0.65) 0%, transparent 100%);
}

.r-name {
    color: #f4e4b3;
    font-size: 11px;
    font-weight: 700;
    background: rgba(0,0,0,0.55);
    padding: 3px 8px;
    border-radius: 4px;
    line-height: 1.2;
    letter-spacing: 0.3px;
}

.r-code {
    font-family: "Courier New", monospace;
    font-size: 10.5px;
    font-weight: 700;
    color: #fff;
    background: rgba(0,0,0,0.55);
    padding: 3px 7px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.r-dealer {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    background: linear-gradient(180deg, #2a1e12 0%, #1a120a 100%);
    overflow: hidden;
}

.r-dealer-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.r-dealer-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.95) saturate(1.12);
}

.r-dealer-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(ellipse at 50% 25%, rgba(150, 100, 40, 0.42) 0%, transparent 60%),
        linear-gradient(180deg, rgba(40, 28, 16, 0.55) 0%, rgba(20, 14, 8, 0.92) 72%);
    color: rgba(240, 220, 170, 0.75);
    font-size: 36px;
    padding-bottom: 0;
    opacity: 0.85;
}

.r-dealer-fallback.sexy-dealer { color: rgba(240, 170, 200, 0.75); }

.r-tag {
    position: absolute;
    right: 8px;
    top: 44%;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 50%, #922b21 100%);
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    padding: 4px 9px;
    border-radius: 3px;
    letter-spacing: 0.6px;
    z-index: 3;
    box-shadow:
        0 2px 5px rgba(0,0,0,0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
    text-shadow: 0 1px 1px rgba(0,0,0,0.35);
}

.r-tag.r-lz {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 50%, #991b1b 100%);
}

.r-tag.r-pp {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 50%, #7f1d1d 100%);
}

.r-tag.r-countdown {
    background: linear-gradient(135deg, #10b981 0%, #059669 50%, #065f46 100%);
}

.r-tag.r-hall {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 50%, #155e75 100%);
}

.r-tag.r-vip-1 {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #92400e 100%);
    color: #3a1d06;
}

.r-rd {
    position: absolute;
    right: 10px;
    bottom: 34%;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 25%, #14b8a6, #0f766e);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    box-shadow:
        0 0 0 2px rgba(20, 184, 166, 0.4),
        0 3px 8px rgba(0,0,0,0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    font-family: Arial, sans-serif;
}

.r-rd.r-hot {
    background: radial-gradient(circle at 30% 25%, #fde047, #eab308);
    color: #422006;
    box-shadow:
        0 0 0 2px rgba(234, 179, 8, 0.5),
        0 3px 8px rgba(0,0,0,0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.r-road {
    padding: 6px 8px 9px;
    background: #fdfdfd;
    border-top: 1px solid #e5e5e5;
}

.r-road-grid {
    display: grid;
    grid-template-columns: repeat(13, 1fr);
    grid-template-rows: repeat(6, 1fr);
    gap: 1px;
    background: #e5e1d8;
    padding: 1px;
    border-radius: 2px;
    min-height: 72px;
}

.r-cell {
    background: #fff;
    position: relative;
}

.r-cell.r-red::after,
.r-cell.r-blue::after {
    content: '';
    position: absolute;
    inset: 20%;
    border-radius: 50%;
    background: #e11d48;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.5);
}

.r-cell.r-blue::after {
    background: #3b82f6;
}

.r-cell.r-r-tie::before,
.r-cell.r-b-tie::before {
    content: '';
    position: absolute;
    inset: 10%;
    border: 1.5px solid #059669;
    border-radius: 2px;
}

.r-cell.r-bank {
    border: 1px solid rgba(120, 90, 40, 0.2);
    border-radius: 1px;
}

.r-req {
    margin-top: 6px;
    font-size: 10px;
    color: #6b5226;
    line-height: 1.5;
}

.r-req b {
    font-weight: 700;
    color: #422006;
}

.rc-vip-badge {
    margin-top: 6px;
    padding: 4px 6px;
    background: linear-gradient(90deg, rgba(230, 203, 129, 0.18), rgba(212, 175, 55, 0.04));
    border: 1px dashed rgba(212, 175, 55, 0.5);
    border-radius: 5px;
    font-size: 10px;
    color: var(--gold-light);
    line-height: 1.6;
}

.hall-bottom-pad { height: 12px; }

.hall-footer {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 6px 16px 10px;
    background: #000;
    color: var(--text-dim);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 11px;
}

.hf-cert {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
}

.hf-img {
    height: 24px;
    width: auto;
    max-width: 80px;
    object-fit: contain;
}

.hf-logo-wrap {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hf-logo-img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.35));
}

.hf-meta {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-family: monospace;
    font-size: 10.5px;
    line-height: 1.35;
    align-items: flex-end;
    text-align: right;
}

.hf-right {
    display: flex;
    flex-direction: column;
    gap: 2px;
    color: var(--text-dim);
}

.hf-ip { color: var(--gold); font-weight: 600; }

.pg-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
}

.pg-card {
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    background: linear-gradient(135deg, #1e3a8a, #3730a3 45%, #581c87);
    border: 1px solid rgba(168, 85, 247, 0.3);
    display: flex;
    flex-direction: column;
    transition: transform 0.15s;
}

.pg-card:active { transform: scale(0.985); }

.pg-card-hot {
    background: linear-gradient(135deg, #7c2d12, #c2410c 45%, #a16207);
    border-color: rgba(251, 191, 36, 0.4);
}

.pg-ico {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}

.pg-meta {
    padding: 6px 8px 8px;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
}

.pg-name {
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pg-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 9px;
    margin-top: 2px;
    letter-spacing: 0.5px;
}

.pg-hot-tag {
    position: absolute;
    top: 6px;
    right: 6px;
    background: linear-gradient(135deg, #fde047, #f97316);
    color: #7c2d12;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 8px;
    letter-spacing: 0.5px;
}

@media (max-width: 520px) {
    .hall-header { gap: 6px; padding: 8px 10px; }
    .hh-btn, .hh-burger { width: 40px; height: 40px; border-radius: 12px; }
    .hh-user { height: 40px; }
    .hh-avatar { width: 30px; height: 30px; font-size: 16px; }
    .hh-username { font-size: 14px; }
    .hh-balance { font-size: 16px; }
    .hall-plat-tabs { padding: 8px 10px 4px; gap: 6px; }
    .hpt-btn { padding: 6px 12px; font-size: 12px; letter-spacing: 1px; }
    .cat-scroll { gap: 6px 5px; padding: 8px 10px 4px; }
    .cat-btn { padding: 8px 2px; border-radius: 8px; gap: 4px; }
    .cat-ico { font-size: 21px; }
    .cat-txt { font-size: 10px; }
    .recent-block { margin: 4px 10px 8px; padding: 8px 8px 10px; }
    .rooms-grid { padding: 0 10px; gap: 8px; }
    .r-road { padding: 5px 6px 7px; }
    .r-road-grid { min-height: 62px; }
    .hall-footer { padding: 8px 12px 10px; font-size: 10px; gap: 10px; }
    .pg-grid { grid-template-columns: repeat(3, 1fr) !important; }
    .pg-ico { font-size: 34px; }
}

.login-body {
    height: 100vh;
    min-height: 0;
    overflow: hidden;
}

.login-body .lang-switch {
    top: clamp(10px, 2.2vh, 18px);
    right: clamp(12px, 2.2vw, 24px);
    width: min(170px, calc(100vw - 28px));
}

.login-body .login-wrap {
    position: fixed;
    top: 50%;
    left: 50%;
    width: min(360px, calc(100vw - 28px));
    min-height: 0;
    padding: 0;
    gap: 0;
    transform: translate(-50%, -51%);
}

.login-body .logo-wrap {
    width: 100%;
    height: clamp(120px, 21vh, 150px);
    min-height: 0;
    margin: 0 0 clamp(8px, 1.5vh, 15px);
}

.login-body .abg-logo {
    width: clamp(180px, 19vw, 200px);
    max-width: 100%;
    max-height: none;
}

.login-body .login-card {
    width: min(322px, 100%);
    max-width: 322px;
    padding: clamp(14px, 2.8vh, 21px) clamp(24px, 3.1vw, 33px) 21px;
    border: 0;
    border-radius: 11px;
    background: rgba(49, 45, 42, 0.72);
    box-shadow: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.login-body .login-card::before {
    display: none;
}

.login-body .login-form {
    gap: clamp(2px, 0.7vh, 6px);
}

.login-body .input-group {
    padding: clamp(8px, 1.5vh, 12px) 1px clamp(5px, 1.1vh, 8px);
}

.login-body .input-icon {
    width: 16px;
    height: 16px;
    opacity: 0.78;
}

.login-body .input-group input {
    padding: 4px 30px 4px 24px;
    color: #e0d8cc;
    font-size: clamp(11px, 1.15vw, 12px);
    letter-spacing: 0.2px;
}

.login-body .input-group input::placeholder {
    color: #aaa194;
    font-size: 11px;
    letter-spacing: 0.3px;
}

.login-body .input-toggle {
    right: 0;
    padding: 2px;
    opacity: 0.72;
}

.login-body .pwd-eye {
    width: 15px;
    height: 15px;
}

.login-body .input-line {
    background: linear-gradient(90deg, transparent, rgba(196, 179, 155, 0.58) 15%, rgba(196, 179, 155, 0.58) 85%, transparent);
}

.login-body .input-group::after {
    height: 1px;
    background: rgba(221, 200, 166, 0.85);
    box-shadow: none;
}

.login-body .btn-login-gold {
    margin-top: 2px;
    padding: clamp(6px, 1.2vh, 9px) 12px;
    border: 1px solid rgba(240, 218, 182, 0.3);
    border-radius: 6px;
    background: #d7bb8d;
    box-shadow: none;
}

.login-body .btn-login-gold:active {
    transform: translateY(1px);
    box-shadow: none;
}

.login-body .btn-login-gold .btn-text {
    color: #30291f;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    padding-left: 1px;
    text-shadow: none;
}

.login-body .btn-shine {
    display: none;
}

.login-body .btn-register-link {
    position: absolute;
    right: 10px;
    bottom: 5px;
    width: auto !important;
    margin: 0 !important;
    padding: 2px !important;
    border: 0 !important;
    background: transparent !important;
    color: rgba(226, 211, 168, 0.62) !important;
    font-size: 9px !important;
    letter-spacing: 0.5px !important;
}

.login-body .btn-download {
    display: none;
}

.login-body .service-row {
    width: min(322px, 100%);
    max-width: none;
    margin-top: clamp(9px, 1.5vh, 14px);
    gap: clamp(6px, 1vw, 10px);
}

.login-body .service-left {
    gap: 5px;
}

.login-body .cs-btn-img-wrap {
    width: 32px;
    height: 32px;
    filter: none;
}

.login-body .srv-title {
    font-size: 10px;
    letter-spacing: 1.5px;
}

.login-body .srv-sub {
    font-size: 7px;
    letter-spacing: 1.4px;
}

.login-body .srv-divider {
    height: 29px;
}

.login-body .service-right {
    font-size: 9px;
    line-height: 1.45;
}

.login-body .srv-email {
    margin-top: 0;
    font-size: 10px;
}

.login-body .footer-bar {
    padding: 4px 10px 7px;
}

.login-body .footer-inner {
    gap: 3px;
}

.login-body .cert-row {
    gap: 14px;
}

.login-body .cert-img {
    height: 19px;
}

.login-body .footer-meta {
    gap: 6px;
    font-size: 8px;
}

@media (max-height: 600px) {
    .login-body .login-wrap {
        transform: translate(-50%, -51%);
    }

    .login-body .logo-wrap {
        height: clamp(82px, 17vh, 104px);
        margin-bottom: 5px;
    }

    .login-body .login-card {
        padding-top: 10px;
        padding-bottom: 19px;
    }

    .login-body .service-row {
        margin-top: 7px;
    }
}

#hallModal {
    background:
        linear-gradient(180deg, rgba(14, 10, 5, 0.78), rgba(8, 6, 4, 0.9)),
        url("../../ABG/imgi_11_hallBG.png") center / cover no-repeat;
}

#hallModal .hall-top-head {
    padding: 2px 5px 3px;
    gap: 0;
}

#hallModal .hth-row {
    height: 26px;
}

#hallModal .hth-back,
#hallModal .hth-menu {
    width: 30px;
    height: 26px;
    font-size: 19px;
}

#hallModal .hth-title {
    font-size: 16px;
    letter-spacing: 2px;
    padding-left: 2px;
}

#hallModal .hth-subtitle {
    padding: 0;
    font-size: 11px;
    line-height: 14px;
}

#hallModal .hall-header {
    gap: 5px;
    padding: 4px 6px;
    background: rgba(17, 13, 8, 0.48);
    -webkit-backdrop-filter: blur(12px) saturate(125%);
    backdrop-filter: blur(12px) saturate(125%);
}

#hallModal .hh-btn,
#hallModal .hh-burger {
    width: 31px;
    height: 34px;
    border-radius: 8px;
    background: rgba(37, 29, 18, 0.58);
    border-color: rgba(239, 224, 190, 0.2);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

#hallModal .hh-btn svg {
    width: 18px;
    height: 18px;
}

#hallModal .hh-user {
    width: 122px;
    max-width: 122px;
    flex: 0 1 122px;
    min-width: 0;
    height: 34px;
    gap: 7px;
    padding: 2px 8px 2px 4px;
    border-radius: 18px;
    background: rgba(206, 190, 153, 0.2);
    border-color: rgba(239, 224, 190, 0.22);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

#hallModal .hh-avatar {
    width: 30px;
    height: 30px;
    box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.35);
}

#hallModal .hh-username {
    font-size: 12px;
    letter-spacing: 0;
}

#hallModal .hh-right {
    gap: 4px;
}

#hallModal .hh-balance-box {
    width: 88px;
    flex: 0 0 88px;
    padding: 3px 4px 2px;
    gap: 2px;
    border-radius: 8px;
    background: rgba(37, 29, 18, 0.66);
    border-color: rgba(239, 224, 190, 0.2);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

#hallModal .hh-bal-row1 {
    display: grid;
    grid-template-columns: 13px minmax(0, 1fr) 11px;
    align-items: center;
    gap: 2px;
    width: 100%;
    padding: 0;
}

#hallModal .hh-coin {
    width: 13px;
    height: 13px;
}

#hallModal .hh-balance {
    font-size: 11px;
}

#hallModal .hh-refresh {
    font-size: 12px;
}

#hallModal .hh-bal-row2 {
    display: grid;
    grid-template-columns: 13px minmax(0, 1fr) 7px;
    align-items: center;
    gap: 2px;
    width: 100%;
    margin-top: 1px;
    padding: 3px 0 0;
    font-size: 9px;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

#hallModal .hh-bal-row2 svg {
    width: 11px;
    height: 11px;
}

#hallModal .hh-range {
    letter-spacing: 0;
    text-align: right;
}

#hallModal .hh-caret {
    text-align: right;
}

#hallModal .hh-burger {
    gap: 3px;
}

#hallModal .hh-burger span {
    width: 16px;
    height: 1.5px;
}

#hallModal .hth-menu {
    font-size: 24px;
}

#hallModal .hall-plat-tabs,
#hallModal .game-announcement-bar {
    display: none;
}

#hallModal .hall-scroll {
    background: rgba(10, 8, 5, 0.28);
}

#hallModal .cat-scroll {
    display: block;
    padding: 5px 7px 4px;
    overflow: visible;
    background: rgba(13, 10, 6, 0.78);
}

#hallModal .cat-page[data-page="0"] {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
}

#hallModal .cat-subdirectory {
    display: none;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    padding-top: 4px;
}

#hallModal .cat-subdirectory[hidden] {
    display: none;
}

#hallModal .cat-scroll.is-all-open .cat-subdirectory {
    display: grid;
}

#hallModal .cat-btn {
    width: 100%;
    min-width: 0;
    flex: none;
    height: 67px;
    gap: 3px;
    padding: 5px 2px 4px;
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(47, 37, 22, 0.96), rgba(25, 20, 13, 0.96));
    border-color: rgba(180, 146, 79, 0.28);
    box-shadow: inset 0 1px 0 rgba(255, 242, 203, 0.04);
}

#hallModal .cat-btn.cat-btn-active {
    background: linear-gradient(180deg, #f0dbad, #d8bd86);
    border-color: #f0dcac;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

#hallModal .cat-btn.cat-btn-active .cat-ico {
    filter: brightness(0.35) sepia(0.35);
}

#hallModal .cat-ico {
    width: 30px;
    height: 29px;
}

#hallModal .cat-txt {
    color: #d8c79f;
    font-size: 9px;
    letter-spacing: 0;
    line-height: 1.15;
}

#hallModal .cat-btn.cat-btn-active .cat-txt {
    color: #362a17;
}

#hallModal .cat-pager {
    display: none;
}

#hallModal .cp-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(224, 203, 158, 0.3);
}

#hallModal .cp-dot.cp-dot-active {
    width: 5px;
    background: #dfc184;
}

#hallModal .recent-block {
    margin: 2px 7px 4px;
    padding: 4px 5px 5px;
    border: 1px solid rgba(194, 160, 92, 0.18);
    border-radius: 7px;
    background: rgba(29, 24, 17, 0.72);
}

#hallModal .rb-title {
    margin-bottom: 2px;
    padding-left: 1px;
    font-size: 10px;
    letter-spacing: 1px;
}

#hallModal .rb-row {
    gap: 5px;
    padding-bottom: 0;
}

#hallModal .rb-empty {
    padding: 5px 2px;
    font-size: 9px;
}

#hallModal .rb-item {
    flex: 0 0 calc((100vw - 46px) / 4);
    min-width: 0;
    height: 48px;
    gap: 1px;
    padding: 2px 3px;
    border-radius: 5px;
    background: rgba(11, 10, 8, 0.54);
}

#hallModal .rb-item-ico {
    width: 23px;
    height: 24px;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}

#hallModal .rb-item-name {
    max-width: 100%;
    font-size: 8px;
    line-height: 1.05;
}

#hallModal .rb-item-code {
    font-size: 7px;
    line-height: 1;
    letter-spacing: 0;
}

#hallModal .filter-bar {
    gap: 4px;
    margin: 1px 7px 5px;
    padding: 0;
    border: 0;
    background: transparent;
}

#hallModal .fb-tags {
    gap: 4px;
}

#hallModal .fb-tag {
    gap: 3px;
    padding: 2px 5px;
    border-radius: 5px;
    background: rgba(13, 12, 9, 0.88);
    font-size: 9px;
    line-height: 1.2;
}

#hallModal .ft-check {
    width: 11px;
    height: 11px;
    font-size: 8px;
}

#hallModal .fb-filter-ico {
    width: 23px;
    height: 23px;
    border: 0;
    border-radius: 5px;
    background: rgba(24, 21, 15, 0.8);
}

#hallModal .fb-filter-ico svg {
    width: 16px;
    height: 16px;
}

#hallModal .rooms-grid {
    gap: 5px;
    padding: 0 7px;
}

#hallModal .room-card {
    border-radius: 6px;
    border-color: rgba(205, 177, 121, 0.38);
    background: rgba(12, 10, 7, 0.9);
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.45);
}

#hallModal .room-head {
    left: 39px;
    padding: 5px 4px 3px;
    gap: 3px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.12));
}

#hallModal .r-name {
    max-width: calc(100% - 38px);
    padding: 2px 4px;
    font-size: 8px;
}

#hallModal .r-code {
    padding: 2px 3px;
    font-size: 7px;
    letter-spacing: 0;
}

#hallModal .r-dealer {
    height: 45px;
    aspect-ratio: auto;
    background:
        linear-gradient(90deg, rgba(8, 7, 5, 0.04), rgba(7, 6, 4, 0.68)),
        url("../../ABG/imgi_11_hallBG.png") center 45% / cover no-repeat,
        linear-gradient(135deg, #3c2e1b, #15110b);
}

#hallModal .r-dealer-image {
    top: 2px;
    bottom: 2px;
    left: 3px;
    width: 40px;
    height: calc(100% - 4px);
    border: 1px solid rgba(228, 206, 163, 0.62);
    border-radius: 4px;
    object-fit: cover;
    object-position: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

#hallModal .r-tag {
    top: auto;
    right: 3px;
    bottom: 2px;
    padding: 1px 4px;
    font-size: 7px;
}

#hallModal .room-head {
    left: 46px;
}

#hallModal .r-rd {
    right: 4px;
    bottom: 3px;
    width: 17px;
    height: 17px;
    font-size: 9px;
}

#hallModal .r-road {
    padding: 2px 3px 3px;
}

#hallModal .r-road-grid {
    height: 38px;
    min-height: 38px;
    grid-template-rows: repeat(6, minmax(0, 1fr));
    gap: 1px;
}

#hallModal .r-cell.r-red::after,
#hallModal .r-cell.r-blue::after {
    inset: 18%;
    box-shadow: none;
}

#hallModal .r-req {
    display: none;
}

#hallModal .rc-vip-badge {
    margin-top: 2px;
    padding: 2px 3px;
    font-size: 7px;
    line-height: 1.3;
}

#hallModal .hall-bottom-pad {
    height: 8px;
}

#hallModal .hall-footer {
    display: none;
}

:is(#hallModal, #gameFrameModal) .hall-settings {
    position: absolute;
    z-index: 15;
    inset: 45px 0 0;
    overflow-y: auto;
    padding: 0 12px max(8px, env(safe-area-inset-bottom));
    color: #f1e5c5;
    background:
        linear-gradient(180deg, rgba(9, 8, 7, 0.42), rgba(7, 7, 6, 0.72)),
        url("../../ABG/imgi_11_hallBG.png") center / cover no-repeat;
    -webkit-overflow-scrolling: touch;
}

:is(#hallModal, #gameFrameModal) .settings-home {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

:is(#hallModal, #gameFrameModal) .settings-banner {
    position: relative;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
}

:is(#hallModal, #gameFrameModal) .settings-logo {
    width: 76px;
    height: 54px;
    object-fit: contain;
    filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.7));
}

:is(#hallModal, #gameFrameModal) .settings-close {
    position: absolute;
    top: 8px;
    right: 0;
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    color: #dfc891;
    font-size: 28px;
    line-height: 1;
}

:is(#hallModal, #gameFrameModal) .settings-account {
    min-height: 88px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid rgba(219, 194, 142, 0.22);
    border-radius: 12px;
    background: rgba(14, 12, 9, 0.5);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    -webkit-backdrop-filter: blur(8px) saturate(125%);
    backdrop-filter: blur(8px) saturate(125%);
}

:is(#hallModal, #gameFrameModal) .settings-avatar {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    border: 1px solid #dfc891;
    border-radius: 50%;
    object-fit: cover;
}

:is(#hallModal, #gameFrameModal) .settings-account-info {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    color: #eee3cb;
    font-size: 12px;
}

:is(#hallModal, #gameFrameModal) .settings-account-info b {
    font-weight: 500;
}

:is(#hallModal, #gameFrameModal) .settings-shortcut {
    min-width: 54px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 1px 3px;
    border: 0;
    background: transparent;
    color: #eee3cb;
    font: inherit;
    font-size: 11px;
    white-space: nowrap;
}

:is(#hallModal, #gameFrameModal) .settings-shortcut svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: #ddc58f;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

:is(#hallModal, #gameFrameModal) .settings-glyph {
    display: block;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    background-image: url("../../ABG/settings-icons.png");
    background-repeat: no-repeat;
    background-size: 139px 127px;
}

:is(#hallModal, #gameFrameModal) .settings-shortcut .settings-glyph {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
}

:is(#hallModal, #gameFrameModal) .settings-glyph--announcement {
    background-position: -94px -54px;
}

:is(#hallModal, #gameFrameModal) .settings-glyph--sound {
    background-position: -94px -14px;
}

:is(#hallModal, #gameFrameModal) .settings-glyph--music {
    background-position: -57px -88px;
}

:is(#hallModal, #gameFrameModal) .settings-glyph--record {
    background-position: 0 0;
}

:is(#hallModal, #gameFrameModal) .settings-glyph--game-record {
    background-position: -27px 0;
}

:is(#hallModal, #gameFrameModal) .settings-glyph--password {
    background-position: -82px -99px;
}

:is(#hallModal, #gameFrameModal) .settings-glyph--rules {
    background-position: -13px -68px;
}

:is(#hallModal, #gameFrameModal) .settings-glyph--logout {
    background-position: -55px -22px;
}

:is(#hallModal, #gameFrameModal) .settings-glyph--download {
    background-position: -57px -53px;
}

:is(#hallModal, #gameFrameModal) .settings-glyph--enter-app {
    background-position: -110px -99px;
}

:is(#hallModal, #gameFrameModal) .settings-language-wrap {
    position: relative;
}

:is(#hallModal, #gameFrameModal) .settings-language-menu {
    position: absolute;
    z-index: 2;
    top: calc(100% + 5px);
    right: 0;
    width: 142px;
    max-height: 45vh;
    overflow-y: auto;
    border: 1px solid rgba(215, 190, 140, 0.32);
    border-radius: 6px;
    background: rgba(13, 12, 9, 0.97);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

:is(#hallModal, #gameFrameModal) .settings-language-menu[hidden] {
    display: none;
}

:is(#hallModal, #gameFrameModal) .settings-language-option {
    width: 100%;
    min-height: 32px;
    padding: 5px 8px;
    border: 0;
    border-bottom: 1px solid rgba(215, 190, 140, 0.12);
    background: transparent;
    color: #eee3cb;
    text-align: left;
    font: inherit;
    font-size: 10px;
}

:is(#hallModal, #gameFrameModal) .settings-language-option.is-selected {
    color: #f4d79e;
    background: rgba(202, 166, 98, 0.16);
}

:is(#hallModal, #gameFrameModal) .settings-sound-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 8px;
}

:is(#hallModal, #gameFrameModal) .settings-sound,
:is(#hallModal, #gameFrameModal) .settings-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 0;
    border: 1px solid rgba(209, 181, 125, 0.2);
    border-radius: 11px;
    background: rgba(18, 15, 11, 0.66);
    color: #ead9b6;
    font: inherit;
    font-size: 14px;
    text-shadow: 0 1px 2px #000;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

:is(#hallModal, #gameFrameModal) .settings-sound {
    height: 72px;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: 1fr auto;
    justify-items: center;
    align-items: center;
    padding: 7px 16px 8px;
}

:is(#hallModal, #gameFrameModal) .settings-sound svg {
    width: 23px;
    height: 23px;
    flex: 0 0 23px;
    fill: none;
    stroke: #e4cea3;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

:is(#hallModal, #gameFrameModal) .settings-sound > span:nth-child(2) {
    grid-column: 1 / 3;
    grid-row: 2;
    white-space: nowrap;
}

:is(#hallModal, #gameFrameModal) .settings-sound > .settings-glyph {
    grid-column: 1;
    grid-row: 1;
    justify-self: center;
    width: 26px;
    height: 26px;
    flex-basis: 26px;
}

:is(#hallModal, #gameFrameModal) .settings-switch {
    position: relative;
    width: 31px;
    height: 16px;
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    border-radius: 10px;
    background: rgba(115, 108, 89, 0.7);
}

:is(#hallModal, #gameFrameModal) .settings-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd2b8;
    transition: transform 0.16s ease;
}

:is(#hallModal, #gameFrameModal) .settings-sound.is-on .settings-switch {
    background: #19ac69;
}

:is(#hallModal, #gameFrameModal) .settings-sound.is-on .settings-switch::after {
    transform: translateX(15px);
}

:is(#hallModal, #gameFrameModal) .settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 8px;
}

:is(#hallModal, #gameFrameModal) .settings-item {
    height: clamp(76px, 18vw, 84px);
    flex-direction: column;
    gap: 4px;
    padding: 6px 4px;
    font-size: 14px;
}

:is(#hallModal, #gameFrameModal) .settings-item .settings-glyph,
:is(#hallModal, #gameFrameModal) .settings-item .settings-balance-icon {
    width: 31px;
    height: 31px;
    flex: 0 0 31px;
}

:is(#hallModal, #gameFrameModal) .settings-item .settings-balance-icon {
    object-fit: contain;
}

:is(#hallModal, #gameFrameModal) .settings-item .settings-glyph--record {
    width: 26px;
    flex-basis: 26px;
}

:is(#hallModal, #gameFrameModal) .settings-item .settings-glyph--game-record {
    width: 26px;
    height: 22px;
    flex-basis: 26px;
}

:is(#hallModal, #gameFrameModal) .settings-item .settings-glyph--password {
    width: 28px;
    flex-basis: 28px;
}

:is(#hallModal, #gameFrameModal) .settings-item .settings-glyph--rules,
:is(#hallModal, #gameFrameModal) .settings-item .settings-glyph--logout,
:is(#hallModal, #gameFrameModal) .settings-item .settings-glyph--enter-app {
    width: 27px;
    flex-basis: 27px;
}

:is(#hallModal, #gameFrameModal) .settings-item .settings-glyph--download {
    width: 24px;
    flex-basis: 24px;
}

:is(#hallModal, #gameFrameModal) .settings-footer {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 5px;
    min-height: 32px;
    margin-top: auto;
    padding: 8px 2px 2px;
    border-top: 1px solid rgba(219, 194, 142, 0.18);
    color: rgba(238, 227, 203, 0.72);
    font-size: 9px;
    text-shadow: 0 1px 2px #000;
}

:is(#hallModal, #gameFrameModal) .settings-browser {
    overflow: hidden;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

:is(#hallModal, #gameFrameModal) .settings-ip {
    text-align: right;
    white-space: nowrap;
}

#hallModal .desktop-tools,
#hallModal .r-road-panels,
#hallModal .r-road-grid-desktop {
    display: none;
}

:is(#hallModal, #gameFrameModal) .settings-sound:active,
:is(#hallModal, #gameFrameModal) .settings-item:active {
    background: rgba(210, 176, 110, 0.2);
}

:is(#hallModal, #gameFrameModal) .settings-password-form {
    display: flex;
    width: min(100%, 420px);
    margin: 22px auto;
    flex-direction: column;
    gap: 9px;
    padding: 17px;
    border: 1px solid rgba(215, 190, 140, 0.45);
    border-radius: 9px;
    background: rgba(17, 15, 11, 0.97);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.65);
}

:is(#hallModal, #gameFrameModal) .settings-password-form[hidden],
:is(#hallModal, #gameFrameModal) .settings-detail[hidden],
:is(#hallModal, #gameFrameModal) .settings-detail-content[hidden],
:is(#hallModal, #gameFrameModal) .settings-detail-filters[hidden],
:is(#hallModal, #gameFrameModal) .settings-detail-pagination[hidden] {
    display: none;
}

:is(#hallModal, #gameFrameModal) .settings-password-form h3 {
    margin-bottom: 3px;
    color: #e6cea0;
    font-size: 15px;
    text-align: center;
}

:is(#hallModal, #gameFrameModal) .settings-password-form input {
    width: 100%;
    min-height: 36px;
    padding: 7px 9px;
    border: 1px solid rgba(215, 190, 140, 0.28);
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    font: inherit;
    font-size: 12px;
}

:is(#hallModal, #gameFrameModal) .settings-password-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 3px;
}

:is(#hallModal, #gameFrameModal) .settings-password-actions button {
    min-width: 72px;
    padding: 7px 10px;
    border: 1px solid rgba(215, 190, 140, 0.4);
    border-radius: 5px;
    background: rgba(215, 190, 140, 0.12);
    color: #eee3cb;
}

:is(#hallModal, #gameFrameModal) .settings-password-actions button:disabled {
    opacity: 0.55;
}

:is(#hallModal, #gameFrameModal) .settings-password-feedback {
    margin: 0;
    color: #65d39b;
    font-size: 11px;
    line-height: 1.5;
}

:is(#hallModal, #gameFrameModal) .settings-password-feedback.is-error {
    color: #f18a7b;
}

:is(#hallModal, #gameFrameModal) .settings-detail {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

:is(#hallModal, #gameFrameModal) .settings-detail-head {
    min-height: 46px;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    align-items: center;
    border-bottom: 1px solid rgba(219, 194, 142, 0.2);
}

:is(#hallModal, #gameFrameModal) .settings-detail-head h2 {
    margin: 0;
    color: #f0dfbd;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

:is(#hallModal, #gameFrameModal) .settings-detail-head button {
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    color: #dfc891;
    font-size: 24px;
}

:is(#hallModal, #gameFrameModal) .settings-detail-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    padding: 9px 1px 6px;
}

:is(#hallModal, #gameFrameModal) .settings-filter {
    min-height: 29px;
    padding: 4px 9px;
    border: 1px solid rgba(215, 190, 140, 0.2);
    border-radius: 15px;
    background: rgba(22, 19, 13, 0.72);
    color: #c8b995;
    font: inherit;
    font-size: 10px;
    white-space: nowrap;
}

:is(#hallModal, #gameFrameModal) .settings-filter.is-active {
    border-color: rgba(225, 189, 111, 0.72);
    background: rgba(190, 148, 66, 0.23);
    color: #f4d79e;
}

:is(#hallModal, #gameFrameModal) .settings-platform-select {
    min-width: 112px;
    min-height: 29px;
    padding: 4px 8px;
    border: 1px solid rgba(215, 190, 140, 0.2);
    border-radius: 15px;
    background: #17130e;
    color: #ead9b7;
    font: inherit;
    font-size: 10px;
}

:is(#hallModal, #gameFrameModal) .settings-detail-content {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 4px 1px 10px;
    -webkit-overflow-scrolling: touch;
}

:is(#hallModal, #gameFrameModal) .settings-detail-state {
    padding: 24px 10px;
    color: #c8b995;
    font-size: 11px;
    line-height: 1.6;
    text-align: center;
    overflow-wrap: anywhere;
}

:is(#hallModal, #gameFrameModal) .settings-detail-state.is-error {
    color: #f18a7b;
}

:is(#hallModal, #gameFrameModal) .settings-record-card,
:is(#hallModal, #gameFrameModal) .settings-balance-summary {
    margin: 6px 0;
    padding: 9px 11px;
    border: 1px solid rgba(209, 181, 125, 0.16);
    border-radius: 7px;
    background: rgba(17, 15, 11, 0.72);
}

:is(#hallModal, #gameFrameModal) .settings-record-card h3,
:is(#hallModal, #gameFrameModal) .settings-balance-summary h3,
:is(#hallModal, #gameFrameModal) .settings-section-title {
    margin: 0 0 6px;
    color: #e7d4aa;
    font-size: 11px;
    font-weight: 600;
}

:is(#hallModal, #gameFrameModal) .settings-record-field,
:is(#hallModal, #gameFrameModal) .settings-balance-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 4px 0;
    color: #c8b995;
    font-size: 10px;
    line-height: 1.4;
}

:is(#hallModal, #gameFrameModal) .settings-record-field b,
:is(#hallModal, #gameFrameModal) .settings-balance-row b {
    color: #f0dfbd;
    font-weight: 500;
    text-align: right;
    overflow-wrap: anywhere;
}

:is(#hallModal, #gameFrameModal) .settings-balance-row + .settings-balance-row {
    border-top: 1px solid rgba(209, 181, 125, 0.1);
}

:is(#hallModal, #gameFrameModal) .settings-balance-summary > summary {
    color: #e7d4aa;
    font-size: 11px;
    cursor: pointer;
}

:is(#hallModal, #gameFrameModal) .settings-section-title {
    margin: 13px 2px 5px;
}

:is(#hallModal, #gameFrameModal) .settings-notice-item {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    padding: 11px 25px 11px 9px;
    border: 0;
    border-bottom: 1px solid rgba(209, 181, 125, 0.16);
    background: transparent;
    color: #eee3cb;
    text-align: left;
}

:is(#hallModal, #gameFrameModal) .settings-notice-item b {
    font-size: 11px;
    font-weight: 500;
    line-height: 1.5;
}

:is(#hallModal, #gameFrameModal) .settings-notice-item span:not(.settings-notice-arrow),
:is(#hallModal, #gameFrameModal) .settings-notice-date {
    color: #a99a7a;
    font-size: 9px;
}

:is(#hallModal, #gameFrameModal) .settings-notice-arrow {
    position: absolute;
    top: 50%;
    right: 5px;
    transform: translateY(-50%);
    color: #ddc58f;
    font-size: 18px;
}

:is(#hallModal, #gameFrameModal) .settings-notice-title {
    margin: 9px 2px 5px;
    color: #f0dfbd;
    font-size: 14px;
    line-height: 1.5;
}

:is(#hallModal, #gameFrameModal) .settings-notice-content {
    padding: 12px 2px;
    color: #d1c5aa;
    font-size: 11px;
    line-height: 1.8;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

:is(#hallModal, #gameFrameModal) .settings-detail-pagination {
    min-height: 43px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border-top: 1px solid rgba(219, 194, 142, 0.15);
    color: #c8b995;
    font-size: 10px;
}

:is(#hallModal, #gameFrameModal) .settings-detail-pagination button {
    min-height: 29px;
    padding: 4px 10px;
    border: 1px solid rgba(215, 190, 140, 0.25);
    border-radius: 4px;
    background: rgba(22, 19, 13, 0.72);
    color: #ead9b7;
    font: inherit;
}

:is(#hallModal, #gameFrameModal) .settings-detail-pagination button:disabled {
    opacity: 0.45;
}

@media (max-width: 350px) {
    #hallModal .cat-btn {
        flex-basis: calc((100vw - 42px) / 4.7);
    }

    #hallModal .r-road-grid {
        height: 33px;
        min-height: 33px;
    }
}

    .login-body .lang-switch {
        width: auto;
        top: max(12px, env(safe-area-inset-top));
        right: max(14px, env(safe-area-inset-right));
    }

    .login-body .language-toggle {
        width: auto;
        min-width: 54px;
        min-height: 0;
        flex-direction: column;
        justify-content: center;
        gap: 3px;
        padding: 2px 4px;
        border: 0;
        border-radius: 0;
        background: transparent;
    }

    .login-body .lang-icon {
        width: 24px;
        height: 24px;
    }

    .login-body .language-toggle > span:nth-child(2) {
        flex: none;
        color: #eee8dc;
        font-size: 10px;
        line-height: 1.2;
        text-align: center;
        white-space: nowrap;
    }

    .login-body .language-menu {
        top: calc(100% + 8px);
        right: 0;
        width: 160px;
        max-height: min(60vh, 500px);
        padding: 0 6px;
    }

    .login-body .language-option {
        min-height: 42px;
    }

    .login-body .btn-download {
        display: flex;
        width: min(260px, 82%);
        max-width: 260px;
        min-height: 36px;
        margin-top: 10px;
        padding: 8px 14px;
        gap: 8px;
        border: 1px solid rgba(255, 255, 255, 0.42);
        border-radius: 6px;
        background: rgba(255, 255, 255, 0.08);
        color: #fff;
        font-size: 12px;
        font-weight: 600;
        letter-spacing: 1.5px;
        box-shadow: none;
    }

    .login-body .btn-download:active {
        background: rgba(255, 255, 255, 0.16);
        border-color: rgba(255, 255, 255, 0.7);
    }

    .login-body .dl-icon {
        width: 24px;
        height: 14px;
        filter: none;
    }

    .login-body .dl-text {
        padding-left: 0;
    }

    .login-body .footer-bar {
        padding: 5px max(10px, env(safe-area-inset-right)) max(7px, env(safe-area-inset-bottom));
        background: rgba(0, 0, 0, 0.78);
    }

    .login-body .footer-inner {
        width: 100%;
        max-width: 720px;
        flex-direction: row;
        justify-content: space-between;
        gap: 6px;
    }

    .login-body .cert-row {
        flex: 0 0 auto;
        gap: 7px;
    }

    .login-body .cert-img {
        height: 18px;
    }

    .login-body .cert-glc {
        max-width: 72px;
    }

    .login-body .cert-ceza {
        max-width: 48px;
    }

    .login-body .footer-meta {
        min-width: 0;
        flex: 1 1 auto;
        flex-wrap: nowrap;
        justify-content: flex-end;
        gap: 4px;
        overflow: hidden;
        white-space: nowrap;
        font-size: clamp(6px, 1.8vw, 8px);
    }

    .login-body .foot-sep::before {
        margin-right: 2px;
    }

    @media (max-width: 350px) {
        .login-body .cert-row {
            gap: 4px;
        }

        .login-body .cert-img {
            height: 15px;
        }

        .login-body .footer-meta {
            gap: 2px;
            font-size: 6px;
        }
    }
}

@media (min-width: 900px) {
    .modal-mask {
        padding: 0;
    }

    #hallModal {
        background:
            linear-gradient(180deg, rgba(10, 8, 6, 0.48), rgba(8, 7, 6, 0.74)),
            url("../../ABG/imgi_11_hallBG.png") center / cover no-repeat;
    }

    #hallModal .hall-top-head,
    #hallModal .hall-plat-tabs,
    #hallModal .game-announcement-bar,
    #hallModal .recent-block,
    #hallModal .hall-bottom-pad {
        display: none;
    }

    #hallModal .hall-header {
        position: relative;
        z-index: 20;
        height: 42px;
        min-height: 42px;
        gap: 8px;
        margin-left: 84px;
        padding: 3px 12px;
        background: rgba(15, 12, 9, 0.88);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    #hallModal .hh-exit { display: flex; }

    #hallModal .hh-user {
        width: 164px;
        max-width: 164px;
        flex: 0 0 164px;
        height: 30px;
        padding: 2px 8px;
        gap: 6px;
        border-radius: 7px;
        background: rgba(26, 20, 14, 0.72);
    }

    #hallModal .hh-avatar {
        width: 24px;
        height: 24px;
    }

    #hallModal .hh-username {
        font: 11px Arial, sans-serif;
    }

    #hallModal .hh-right {
        gap: 5px;
        margin-right: 6px;
    }

    #hallModal .hh-balance-box {
        width: 112px;
        flex: 0 0 112px;
        padding: 2px 5px;
        gap: 1px;
        border-radius: 6px;
        background: rgba(26, 20, 14, 0.72);
    }

    #hallModal .hh-bal-row1 {
        grid-template-columns: 13px minmax(0, 1fr) 12px;
        padding: 0 2px;
    }

    #hallModal .hh-balance {
        font-size: 11px;
    }

    #hallModal .hh-bal-row2 {
        grid-template-columns: 14px minmax(0, 1fr) 8px;
        padding: 2px 2px 0;
        font-size: 9px;
    }

    #hallModal .hh-burger {
        width: 30px;
        height: 30px;
        border-radius: 6px;
    }

    #hallModal .hh-burger span {
        width: 16px;
    }

    #hallModal .desktop-tools {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: clamp(5px, 1vw, 14px);
        min-width: 0;
        flex: 1;
    }

    #hallModal .desktop-tool {
        width: 20px;
        height: 24px;
        flex: 0 0 20px;
        padding: 0;
        border: 0;
        background-color: transparent;
        background-image: url("../../ABG/settings-icons.png");
        background-repeat: no-repeat;
        background-size: 139px 127px;
        cursor: pointer;
        filter: drop-shadow(0 1px 2px #000);
        opacity: 0.94;
    }

    #hallModal .desktop-tool:hover {
        opacity: 1;
        filter: brightness(1.18) drop-shadow(0 1px 3px #000);
    }

    #hallModal .desktop-tool.settings-glyph--announcement {
        background-position: -96px -54px;
    }

    #hallModal .desktop-tool.settings-glyph--service {
        background-position: 0 -39px;
    }

    #hallModal .desktop-tool.settings-glyph--password {
        background-position: -82px -99px;
    }

    #hallModal .desktop-tool.settings-glyph--record {
        background-position: 0 0;
    }

    #hallModal .desktop-tool.settings-glyph--balance {
        background-image: url("../../ABG/settings-balance.svg");
        background-size: 20px 20px;
        background-position: center;
    }

    #hallModal .desktop-tool.settings-glyph--sound {
        background-position: -94px -14px;
    }

    #hallModal .desktop-tool.settings-glyph--music {
        background-position: -57px -88px;
    }

    #hallModal .desktop-tool.settings-glyph--rules {
        background-position: -13px -68px;
    }

    #hallModal .desktop-tool.settings-glyph--logout {
        background-position: -55px -22px;
    }

    #hallModal .desktop-tool.settings-glyph--language {
        background-image: url("../../ABG/imgi_14_lang_icon.png");
        background-size: 18px 18px;
        background-position: center;
    }

    #hallModal .hall-scroll {
        position: relative;
        margin-left: 84px;
        background: rgba(12, 10, 8, 0.18);
    }

    #hallModal .cat-scroll {
        position: fixed;
        z-index: 25;
        top: 0;
        bottom: 0;
        left: 0;
        display: flex;
        width: 84px;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        overflow-x: hidden;
        overflow-y: auto;
        padding: 0 5px 10px;
        border-right: 1px solid rgba(218, 187, 125, 0.24);
        background: rgba(17, 13, 10, 0.96);
        scrollbar-width: thin;
        scrollbar-color: rgba(206, 175, 114, 0.36) transparent;
    }

    #hallModal .cat-scroll::before {
        content: "";
        display: block;
        flex: 0 0 76px;
        width: 100%;
        background: url("../../ABG/imgi_1_logo_zh.png") center / 67px auto no-repeat;
    }

    #hallModal .cat-page[data-page="0"],
    #hallModal .cat-scroll.is-all-open .cat-subdirectory {
        display: contents;
    }

    #hallModal .cat-subdirectory {
        display: none;
        grid-template-columns: none;
        gap: 2px;
        padding: 0;
    }

    #hallModal .cat-subdirectory[hidden] {
        display: none;
    }

    #hallModal .cat-scroll.is-all-open .cat-subdirectory {
        display: contents;
    }

    #hallModal .cat-btn {
        width: 100%;
        min-height: 41px;
        flex: 0 0 41px;
        flex-direction: row;
        justify-content: flex-start;
        gap: 7px;
        padding: 4px 5px;
        border: 0;
        border-radius: 5px;
        background: transparent;
        color: #e6d3aa;
    }

    #hallModal .cat-btn:hover,
    #hallModal .cat-btn.cat-btn-active {
        background: linear-gradient(90deg, rgba(174, 127, 43, 0.43), rgba(107, 73, 30, 0.2));
        color: #ffe7ad;
        box-shadow: inset 2px 0 #d8ad5e;
    }

    #hallModal .cat-ico {
        width: 19px;
        height: 19px;
        flex: 0 0 19px;
    }

    #hallModal .cat-txt {
        overflow: hidden;
        font-size: 10px;
        text-align: left;
        text-overflow: ellipsis;
        white-space: normal;
    }

    #hallModal .filter-bar {
        position: sticky;
        z-index: 10;
        top: 0;
        margin: 0;
        min-height: 34px;
        padding: 4px 10px;
        border: 0;
        border-bottom: 1px solid rgba(211, 182, 123, 0.18);
        border-radius: 0;
        background: rgba(15, 12, 9, 0.88);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }

    #hallModal .fb-tags {
        flex-wrap: nowrap;
    }

    #hallModal .fb-tag {
        padding: 3px 8px;
        font-size: 10px;
    }

    #hallModal .fb-filter-ico {
        width: 26px;
        height: 25px;
    }

    #hallModal .rooms-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-content: start;
        gap: 5px;
        padding: 4px 7px 12px;
    }

    #hallModal .room-card {
        display: grid;
        min-width: 0;
        height: clamp(88px, 16vh, 104px);
        grid-template-columns: clamp(54px, 7.5vw, 78px) minmax(0, 1fr);
        grid-template-rows: 20px minmax(0, 1fr);
        border-radius: 5px;
        background: rgba(10, 9, 8, 0.78);
    }

    #hallModal .room-head {
        position: relative;
        inset: auto;
        grid-column: 1 / -1;
        grid-row: 1;
        justify-content: flex-start;
        gap: 10px;
        min-width: 0;
        padding: 2px 5px;
        background: linear-gradient(90deg, rgba(57, 42, 24, 0.95), rgba(11, 10, 9, 0.76));
    }

    #hallModal .r-name {
        max-width: 48%;
        padding: 0;
        background: transparent;
        font-size: 9px;
    }

    #hallModal .r-code {
        margin-left: auto;
        padding: 0;
        background: transparent;
        font-size: 9px;
    }

    #hallModal .r-dealer {
        grid-column: 1;
        grid-row: 2;
        width: 100%;
        height: 100%;
        min-height: 0;
        aspect-ratio: auto;
        background: #19140e;
    }

    #hallModal .r-dealer-image {
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: 0;
        border-radius: 0;
        object-fit: cover;
        object-position: center 28%;
    }

    #hallModal .r-tag {
        top: auto;
        right: 2px;
        bottom: 2px;
        font-size: 7px;
    }

    #hallModal .r-road {
        display: grid;
        min-width: 0;
        min-height: 0;
        grid-column: 2;
        grid-row: 2;
        grid-template-columns: clamp(52px, 8vw, 92px) minmax(0, 1fr);
        grid-template-rows: minmax(0, 1fr);
        gap: 1px;
        padding: 1px;
        border-top: 0;
        background: #fff;
    }

    #hallModal .r-road-grid {
        width: 100%;
        height: 100%;
        min-height: 0;
        grid-column: 1;
        grid-row: 1;
        grid-template-columns: repeat(7, minmax(0, 1fr));
        grid-template-rows: repeat(6, minmax(0, 1fr));
        gap: 1px;
        padding: 0;
        border-radius: 0;
        background: #c9c9c9;
    }

    #hallModal .r-road-grid:not(.r-road-grid-desktop) {
        display: none;
    }

    #hallModal .r-road-grid-desktop {
        display: grid;
    }

    #hallModal .r-cell {
        min-width: 0;
        min-height: 0;
        background: #fff;
    }

    #hallModal .r-road-panels {
        display: grid;
        min-width: 0;
        min-height: 0;
        grid-column: 2;
        grid-row: 1;
        grid-template-columns: minmax(0, 1.7fr) repeat(2, minmax(0, 0.8fr));
        grid-template-rows: minmax(0, 1fr) 18px;
        gap: 1px;
        background: #c9c9c9;
    }

    #hallModal .r-main-road,
    #hallModal .r-mini-road {
        min-width: 0;
        min-height: 0;
        background-color: #fff;
        background-image:
            linear-gradient(to right, transparent calc(100% - 1px), #d0d0d0 calc(100% - 1px)),
            linear-gradient(to bottom, transparent calc(100% - 1px), #d0d0d0 calc(100% - 1px));
        background-size: 12px 12px;
    }

    #hallModal .r-main-road {
        grid-column: 1 / -1;
        grid-row: 1;
        background-size: 12px 12px;
    }

    #hallModal .r-mini-road:nth-child(2) {
        grid-column: 1;
        grid-row: 2;
        background-size: 9px 9px;
    }

    #hallModal .r-mini-road:nth-child(3) {
        grid-column: 2;
        grid-row: 2;
        background-size: 7px 7px;
    }

    #hallModal .r-mini-road:nth-child(4) {
        grid-column: 3;
        grid-row: 2;
        background-size: 6px 6px;
    }

    #hallModal .r-req,
    #hallModal .rc-vip-badge {
        display: none;
    }

    :is(#hallModal, #gameFrameModal) .hall-settings {
        inset: 42px 0 0 84px;
    }
}
