* {
    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;
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--text);
    font-size: 13px;
    opacity: 0.9;
}

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

.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 {
    flex-shrink: 0;
    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 {
    background: #0a0806;
    border-bottom-color: rgba(212, 175, 55, 0.25);
    padding: 12px 16px;
}

.modal-header-game h3 {
    color: var(--text);
    font-size: 22px;
    font-weight: 500;
    letter-spacing: 4px;
    font-family: Arial, sans-serif;
    flex: 1;
    text-align: center;
    margin: 0 40px 0 30px;
}

.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;
}

.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-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-ring {
    width: 34px;
    height: 34px;
    border: 2.5px solid rgba(212, 175, 55, 0.18);
    border-top-color: var(--gold);
    border-right-color: var(--gold);
    border-radius: 50%;
    animation: ringLoad 0.8s linear infinite;
}

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

.loading-text {
    font-size: 13px;
    color: var(--text-dim);
    letter-spacing: 1px;
}

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

@media (max-width: 520px) {
    .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);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    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 {
    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 { font-size: 14px; }

.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-range { font-weight: 600; letter-spacing: 1px; }

.hh-caret { font-size: 9px; opacity: 0.7; }

.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;
    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;
}

.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: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 10px 12px 4px;
    gap: 0;
    -webkit-overflow-scrolling: touch;
}

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

.cat-page {
    flex: 0 0 100%;
    scroll-snap-align: start;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px 6px;
}

.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: flex;
    align-items: center;
    justify-content: center;
    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: flex;
    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-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-page { gap: 6px 5px; }
    .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; }
}

