html[data-game-page="1"],
html[data-game-page="1"] body {
    background: #0f172a !important;
    overflow: hidden !important;
    height: 100% !important;
    width: 100% !important;
}

html[data-game-page="1"] ion-app,
html[data-game-page="1"] #app,
html[data-game-page="1"] ion-router-outlet,
html[data-game-page="1"] .ion-page,
html[data-game-page="1"] ion-content {
    --background: #0f172a !important;
    background: #0f172a !important;
    height: 100% !important;
    overflow: hidden !important;
}

html[data-game-page="1"] ion-tab-bar,
html[data-game-page="1"] .tab-bar-placeholder,
html[data-game-page="1"] .to-top-box,
html[data-game-page="1"] .support,
html[data-game-page="1"] .red-packet-rain {
    display: none !important;
}

html[data-game-page="1"] .draggable-box {
    display: none !important;
}

html[data-game-page="1"] #placeholder {
    display: none !important;
}

html[data-game-page="1"] #game-active-iframe {
    position: fixed !important;
    top: 48px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: calc(100% - 48px) !important;
    border: 0 !important;
    background: #000 !important;
    z-index: 40 !important;
}

.ge-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 48px;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 10px 0 6px;
    background: linear-gradient(180deg, #0b1220 0%, #0f172a 100%);
    border-bottom: 1px solid rgba(148, 163, 184, .16);
    color: #e2e8f0;
    font-family: Inter, Segoe UI, system-ui, sans-serif;
}

.ge-back {
    appearance: none;
    border: 0;
    background: transparent;
    color: #e2e8f0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 10px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.ge-back:hover {
    background: rgba(255, 255, 255, .06);
}

.ge-back svg {
    width: 18px;
    height: 18px;
}

.ge-balance {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 32px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, .9);
    border: 1px solid rgba(34, 197, 94, .28);
    font-size: 13px;
    font-weight: 700;
    color: #86efac;
}

.ge-balance span {
    color: #94a3b8;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ge-error {
    position: fixed;
    top: 48px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 70;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: #0f172a;
    color: #e2e8f0;
    text-align: center;
    font-family: Inter, Segoe UI, system-ui, sans-serif;
}

.ge-error.is-on {
    display: flex;
}

.ge-error h2 {
    margin: 0 0 8px;
    font-size: 18px;
}

.ge-error p {
    margin: 0 0 18px;
    color: #94a3b8;
    line-height: 1.45;
    max-width: 340px;
}

.ge-error button {
    appearance: none;
    border: 0;
    border-radius: 10px;
    padding: 12px 16px;
    font-weight: 700;
    cursor: pointer;
    background: #22c55e;
    color: #052e16;
}

.ge-loader {
    position: fixed;
    top: 48px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 65;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, .92);
    color: #e2e8f0;
    font-family: Inter, Segoe UI, system-ui, sans-serif;
}

.ge-loader.is-on {
    display: flex;
}

.ge-loader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.ge-spin {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(255, 255, 255, .12);
    border-top-color: #22c55e;
    border-radius: 50%;
    animation: ge-spin .8s linear infinite;
}

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

.ge-loader p {
    margin: 0;
    color: #94a3b8;
    font-size: 14px;
    font-weight: 600;
}

html[data-game-page="1"] .game-card,
.game-wrapper .game-card,
.game-wrapper .hall-wrapper {
    cursor: pointer;
}
