#bet163-custom-pages-root {
    --bet163-home-shell-width: 390px;
    --bet163-home-outer-bg: #141414;
    display: none;
}

body.bet163-cp-active #root {
    display: none !important;
}

body.bet163-cp-active #bet163-home-buttons,
body.bet163-cp-active #bet163-jackpot {
    display: none !important;
}

body.bet163-cp-active #bet163-sections1-root {
    display: none !important;
}

body.bet163-cp-active #bet163-custom-pages-root {
    display: block;
}

.bet163-cp-page {
    min-height: 100dvh;
    background: var(--bet163-home-outer-bg, #141414);
    color: rgba(167, 183, 215, 0.85);
}

.bet163-cp-center {
    width: 100%;
    max-width: min(96vw, calc(var(--bet163-home-shell-width, 390px) * 1.378125));
    margin: 0 auto;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.bet163-cp-header {
    display: flex;
    align-items: center;
    gap: 0.5em;
    padding: 0.75em 0.875em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.22);
    flex-shrink: 0;
}

.bet163-cp-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25em;
    height: 2.25em;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: inherit;
    cursor: pointer;
    flex-shrink: 0;
}

.bet163-cp-close:active {
    opacity: 0.7;
}

.bet163-cp-close svg {
    width: 1.25em;
    height: 1.25em;
}

.bet163-cp-title {
    flex: 1 1 auto;
    margin: 0;
    text-align: center;
    font-size: 1em;
    font-weight: 600;
    line-height: 1.25;
    padding-right: 2.25em;
}

.bet163-cp-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 1em 1.125em 1.5em;
    font-size: 0.9375em;
    line-height: 1.55;
    white-space: pre-line;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.bet163-cp-body strong,
.bet163-cp-body b {
    font-weight: 700;
}

.bet163-cp-page .bet163-app-version-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 16px;
    z-index: 2;
}
