.historyWrap { display: none; }
.historyWrap.show { display: block; }

.mode-pop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 5000;
    align-items: center;
    justify-content: center;
}
.mode-pop.show { display: flex; }
.mode-pop-mask {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.45);
}
.mode-pop-box {
    position: relative;
    width: 86%;
    max-width: 320px;
    background: #fff;
    border-radius: 14px;
    padding: 28px 18px 18px;
    box-shadow: 0 12px 32px rgba(0,0,0,.18);
    z-index: 1;
}
.mode-pop-x {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border: 0;
    background: #f3f5f8;
    border-radius: 50%;
    font-size: 18px;
    line-height: 28px;
    color: #666;
    cursor: pointer;
}
.mode-pop-tit {
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: #222;
    margin-bottom: 16px;
}
.mode-pop-desc {
    text-align: center;
    font-size: 14px;
    color: #556;
    line-height: 1.6;
    padding: 4px 8px 8px;
}
.mode-btn {
    display: block;
    width: 100%;
    border: 0;
    border-radius: 22px;
    padding: 11px 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
    background: #f3f5f8;
    color: #333;
    font-family: inherit;
}
.mode-btn-main {
    background: #0aabff;
    color: #fff;
}
.play-choice-box .mode-btn {
    text-align: center;
    line-height: 1.35;
    padding: 12px 12px 11px;
}
.play-choice-box .mode-btn span {
    display: block;
    font-size: 12px;
    font-weight: 500;
    opacity: .88;
    margin-top: 3px;
}

.sl-clear-tip {
    font-size: 10px;
    color: #fa8c16;
    line-height: 1.2;
    white-space: nowrap;
}
.sl-right {
    width: 148px;
}
.sl-right .bal .bal-refresh {
    width: 16px;
    height: 16px;
    padding: 0;
    margin: 0;
    border: 0;
    background: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #9aa3af;
    line-height: 0;
}
.sl-right .bal .bal-refresh svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
    display: block;
}
.sl-right .bal .bal-refresh:active {
    color: #68a6f7;
}
.sl-right .bal .bal-refresh.spinning svg {
    animation: bal-spin 0.7s linear infinite;
}
@keyframes bal-spin {
    to { transform: rotate(360deg); }
}

.topbar .left, .topbar .right {
    width: auto;
    min-width: 72px;
    gap: 6px;
}
.tb-ico svg {
    width: 18px;
    height: 18px;
}
.tb-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    padding: 3px 6px 2px;
    border: 0;
    border-radius: 8px;
    background: rgba(255,255,255,0.18);
    color: #fff;
    cursor: pointer;
    user-select: none;
    line-height: 1;
    font-family: inherit;
}
.tb-nav svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.tb-nav span {
    margin-top: 2px;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}
.tb-nav:active { opacity: .75; }

.c28-sheet {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    align-items: flex-end;
    justify-content: center;
}
.c28-sheet.show { display: flex; }
.c28-sheet-mask {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.45);
}
.c28-sheet-box {
    position: relative;
    width: 100%;
    max-width: 600px;
    max-height: 86vh;
    background: #fff;
    border-radius: 18px 18px 0 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
#leaderboardSheet .c28-sheet-box.rank-sheet {
    max-height: 94vh;
    height: 94vh;
}
.c28-sheet-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 10px;
    border-bottom: 1px solid #eef2f6;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}
.rank-hd-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
.rank-rules-btn {
    border: 0;
    background: #fff7e6;
    color: #d46b08;
    font-size: 12px;
    font-weight: 700;
    height: 28px;
    padding: 0 10px;
    border-radius: 14px;
    cursor: pointer;
    white-space: nowrap;
}
.rank-rules-btn.on {
    background: #d46b08;
    color: #fff;
}
.rank-rules-pop {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 5;
}
.rank-rules-pop.show { display: block; }
.rank-rules-pop-mask {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.28);
}
.rank-rules-pop-box {
    position: absolute;
    top: 52px;
    right: 12px;
    left: 12px;
    max-height: calc(94vh - 72px);
    overflow-y: auto;
    background: linear-gradient(180deg, #fff7e6, #fffbe6);
    border: 1px solid #ffe58f;
    border-radius: 12px;
    padding: 12px 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.c28-sheet-hd h3 { font-size: 17px; margin: 0; }
.c28-sheet-sub { margin: 3px 0 0; font-size: 12px; color: #889; font-weight: 400; }
.c28-sheet-close {
    width: 28px; height: 28px; border: 0; background: #f3f5f8;
    border-radius: 50%; font-size: 18px; cursor: pointer; color: #666;
}
.rank-tabs { display: flex; gap: 8px; padding: 8px 16px 0; flex-shrink: 0; }
.rank-tab {
    flex: 1; border: 0; background: #f3f5f8; color: #556;
    border-radius: 20px; padding: 7px 0; font-weight: 600; cursor: pointer;
}
.rank-tab.on { background: #0aabff; color: #fff; }
.rank-meta {
    padding: 6px 16px 4px;
    font-size: 12px;
    color: #667;
    line-height: 1.5;
    flex-shrink: 0;
}
.rank-scope { color: #889; margin-bottom: 2px; }
.rank-cd-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px 16px;
    align-items: baseline;
    justify-content: space-between;
    margin-top: 2px;
    width: 100%;
}
.rank-cd-left { min-width: 0; }
.rank-refresh { color: #556; margin-left: auto; flex-shrink: 0; }
.rank-cd {
    color: #ff3b30;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.rank-me {
    margin: 0 16px 6px;
    background: linear-gradient(90deg, #e6f7ff, #f0f7ff);
    border-radius: 12px;
    padding: 8px 12px;
    font-size: 13px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    flex-shrink: 0;
}
.rank-me-item { min-width: 42%; }
.rank-me-item span { display: block; font-size: 11px; color: #778; margin-bottom: 2px; }
.rank-me-item b { font-size: 16px; color: #0aabff; }
.rank-me-note { width: 100%; font-size: 12px; color: #889; }
.rank-hd {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 16px 6px;
    font-size: 11px;
    color: #99a;
    flex-shrink: 0;
}
.rank-hd .rank-col { margin-left: 0; text-align: right; width: 54px; flex-shrink: 0; min-width: 54px; }
.rank-list { overflow-y: auto; padding: 0 8px 16px; flex: 1; min-height: 0; }
.rank-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 8px;
    border-bottom: 1px solid #f2f4f7;
    font-size: 13px;
}
.rank-item.me { background: #fff7e6; border-radius: 10px; }
.rank-no {
    width: 22px; text-align: center; font-weight: 800; color: #889; flex-shrink: 0;
}
.rank-item:nth-child(1) .rank-no { color: #faad14; }
.rank-item:nth-child(2) .rank-no { color: #8c8c8c; }
.rank-item:nth-child(3) .rank-no { color: #d48806; }
.rank-avatar {
    width: 28px; height: 28px; border-radius: 50%; object-fit: cover;
    background: #e6f4ff; flex-shrink: 0;
}
.rank-avatar-ph { width: 28px; flex-shrink: 0; }
.rank-avatar-fallback {
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700; color: #0aabff;
}
.my-user {
    display: flex; align-items: center; gap: 12px;
    padding: 6px 0 10px; border-bottom: 1px solid #eef2f6; margin-bottom: 4px;
}
.my-avatar {
    width: 48px; height: 48px; border-radius: 50%; object-fit: cover;
    background: #e6f4ff; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; font-weight: 700; color: #0aabff;
}
.rank-nick { flex: 1; font-weight: 600; }
.rank-bot { font-size: 11px; color: #0aabff; margin-left: 4px; font-weight: 400; }
.rank-me-tag {
    display: inline-block; margin-left: 6px; font-size: 10px; font-weight: 700;
    color: #fff; background: #fa8c16; border-radius: 8px; padding: 0 6px; line-height: 16px;
}
.rank-col { text-align: right; width: 54px; flex-shrink: 0; min-width: 54px; }
.rank-flow, .rank-period {
    width: 46px; text-align: right; flex-shrink: 0; min-width: 40px;
    font-size: 11px; color: #445; font-variant-numeric: tabular-nums;
    white-space: nowrap; overflow: visible;
}
.rank-period { width: 36px; min-width: 32px; }
.rank-hd .rank-flow, .rank-hd .rank-period { color: #99a; font-size: 11px; }
.rank-hd { gap: 4px; padding: 4px 8px 6px; }
.rank-item { gap: 4px; padding: 10px 4px; }
.rank-hd .rank-col { width: 54px; min-width: 54px; }
.rank-nick { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; }
.rank-ticker {
    margin: 8px 12px 0;
    background: #fff7e6;
    border: 1px solid #ffe7ba;
    border-radius: 20px;
    padding: 8px 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
}
.rank-ticker::before {
    content: '公告';
    flex-shrink: 0;
    background: #fa541c;
    color: #fff;
    font-size: 11px;
    border-radius: 10px;
    padding: 3px 8px;
    font-weight: 700;
    line-height: 1.2;
}
.rank-ticker-track {
    overflow: hidden;
    flex: 1;
    min-width: 0;
    height: 22px;
    position: relative;
}
.rank-ticker-move {
    display: inline-flex;
    white-space: nowrap;
    animation: rank-marquee 22s linear infinite;
    will-change: transform;
}
.rank-ticker-move span {
    padding-right: 48px;
    font-size: 14px;
    line-height: 22px;
    color: #613400;
    font-weight: 600;
}
@keyframes rank-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
    .rank-ticker-move { animation: none; }
    .rank-ticker-move span:last-child { display: none; }
    .rank-ticker-track { height: auto; min-height: 22px; }
    .rank-ticker-move { display: block; white-space: normal; }
    .rank-ticker-move span { padding-right: 0; line-height: 1.4; }
}
.rank-profit { font-weight: 700; min-width: 0; display: block; white-space: nowrap; font-size: 12px; font-variant-numeric: tabular-nums; }
.rank-profit.win, .rank-me-item b.win { color: #ff3b30; }
.rank-profit.lose, .rank-me-item b.lose { color: #52c41a; }
.rank-profit.zero, .rank-me-item b.zero { color: #999; }
.rank-stat { font-size: 11px; color: #99a; font-weight: 400; margin-top: 2px; }
.rank-reward { font-size: 11px; color: #52c41a; }
.rank-uid { font-size: 11px; color: #99a; font-weight: 400; margin-top: 2px; }
.rank-prize, .rank-prize-hd {
    width: 48px; text-align: right; flex-shrink: 0; min-width: 40px; font-size: 11px; color: #d48806; font-weight: 700;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rank-prize-hd { color: #99a; font-weight: 400; }
.rank-rules {
    display: none;
}
.rank-rules-tit {
    font-size: 13px; font-weight: 800; color: #d46b08; margin-bottom: 6px;
}
.rank-rules-body { font-size: 12px; color: #614700; line-height: 1.7; }
.my-contact {
    width: 100%; margin: 4px 0 8px; padding: 10px 12px;
    border: 1.5px solid #e6edf5; border-radius: 10px; font-size: 14px;
}
.save-btn {
    width: 100%; border: 0; border-radius: 24px; margin-bottom: 10px;
    background: #0aabff; color: #fff; padding: 10px; font-weight: 700; cursor: pointer;
}
.my-form label { display: block; font-size: 12px; color: #667; margin: 12px 16px 6px; }
.my-form input {
    width: calc(100% - 32px); margin: 0 16px; padding: 10px 12px;
    border: 1.5px solid #e6edf5; border-radius: 10px; font-size: 15px;
}
.my-form .save-btn {
    margin: 16px; width: calc(100% - 32px); border: 0; border-radius: 24px;
    background: #0aabff; color: #fff; padding: 11px; font-weight: 700; cursor: pointer;
}
.my-kv { margin: 0 16px 10px; background: #f7f9fc; border-radius: 12px; padding: 12px 14px 8px; font-size: 13px; line-height: 1.5; overflow-y: auto; flex: 1; min-height: 0; }
.my-kv b { color: #0aabff; word-break: break-all; }
.my-sec-tit {
    font-size: 12px; color: #889; font-weight: 700; margin: 8px 0 6px; letter-spacing: .5px;
}
.my-sec-tit:first-child { margin-top: 0; }
.my-row {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 7px 0; border-bottom: 1px solid #eef2f6; font-size: 13px;
}
.my-row span { color: #667; flex-shrink: 0; }
.my-row b, .my-row em { font-style: normal; color: #222; text-align: right; word-break: break-all; }
.my-row b { color: #0aabff; }
.my-hint { font-size: 11px; color: #99a; padding: 2px 0 8px; }
.my-reward {
    background: #fff7e6; color: #ad4e00; border-radius: 10px; padding: 10px 12px;
    font-size: 13px; font-weight: 600; margin-bottom: 4px;
}
.my-reward b { color: #fa541c; font-size: 16px; }
.my-link-row { border-bottom: 0; }
.my-link {
    background: #fff; border: 1px dashed #cfe6f8; border-radius: 8px;
    padding: 8px 10px; font-size: 12px; color: #0aabff; word-break: break-all; margin-bottom: 8px;
}
.copy-btn {
    display: inline-block; margin-left: 8px; border: 0; background: #e6f4ff;
    color: #0aabff; border-radius: 12px; padding: 2px 8px; cursor: pointer; font-weight: 700;
}
.logout-link {
    display: block;
    text-align: center;
    color: #0aabff;
    padding: 12px;
    text-decoration: none;
}

.result-show-lottery {
    background: transparent !important;
}
.result-show-lottery .result-top,
.result-show-lottery .show-lottery {
    background: #fff;
}

.period-bet-wrap {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    z-index: 8;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 0;
    margin: 0;
    background: transparent;
    pointer-events: none;
}
.period-bet-wrap[hidden] { display: none !important; }
.period-bet-wrap.open { background: transparent; }
.period-bet-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 0;
    background: #03c8ff;
    color: #fff;
    font-size: 12.5px;
    font-weight: 400;
    letter-spacing: 0;
    border-radius: 0 0 8px 8px;
    height: 21px;
    line-height: 21px;
    padding: 0 12px 0 13px;
    margin: 0;
    cursor: pointer;
    font-family: "PingFang SC", "Microsoft Yahei", sans-serif;
    pointer-events: auto;
    box-shadow: none;
    white-space: nowrap;
}
.period-bet-arrow {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #fff;
    margin-left: 1px;
    transition: transform .18s;
}
.period-bet-wrap.open .period-bet-arrow {
    transform: rotate(180deg);
}
.period-bet-panel {
    display: none;
    width: 100%;
    margin: 0;
    background: #fff;
    overflow: hidden;
    pointer-events: auto;
    box-shadow: none;
}
.period-bet-wrap.open .period-bet-panel { display: block; }
.period-bet-hd {
    display: none;
}
.period-bet-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    padding: 12px 16px 8px;
    font-size: 13px;
}
.period-bet-row:last-child { padding-bottom: 8px; }
.period-bet-name {
    display: inline-block;
    justify-self: start;
    background: #03c8ff;
    color: #fff;
    border-radius: 2px;
    padding: 0 8px;
    min-width: 28px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    font-size: 12.5px;
    font-weight: 400;
    box-sizing: border-box;
}
.period-bet-qty { color: #889; margin-left: 10px; flex: 1; }
.period-bet-amt {
    justify-self: center;
    color: #e4593e;
    font-weight: 400;
    font-size: 15px;
}
.period-bet-minus {
    justify-self: end;
    width: 22px;
    height: 22px;
    border: 0;
    padding: 0;
    border-radius: 50%;
    background: #c5c9d4;
    color: #fff;
    font-size: 18px;
    line-height: 20px;
    text-align: center;
    cursor: pointer;
    font-family: inherit;
}
.period-bet-foot {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    padding: 6px 16px 12px;
    font-size: 13px;
    color: #8b8fa3;
}
.period-bet-foot .period-bet-amt {
    font-size: 15px;
}
.period-bet-cancel {
    justify-self: end;
    border: 0;
    background: none;
    padding: 0;
    color: #0aabff;
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
}
.period-bet-qty { color: #889; margin-left: 10px; flex: 1; }
.period-bet-amt {
    color: #e4593e;
    font-weight: 400;
    font-size: 13px;
}

.rank-entry { display: none !important; }

.closed-card {
    background: #fff; border-radius: 10px; overflow: hidden; margin: 6px 0;
}
.closed-hd {
    background: #3b4351; color: #fff; padding: 8px 12px; font-size: 13px; font-weight: 700; text-align: center;
}
.closed-row {
    display: flex; justify-content: space-between; gap: 8px;
    padding: 6px 12px; font-size: 13px; border-bottom: 1px solid #f0f2f5;
}
.closed-row .who { color: #333; }
.closed-row .bot { color: #12b0e7; }
.closed-sum { padding: 8px 12px; font-size: 12px; color: #667; text-align: right; }

#betKeyboard {
    z-index: 4000;
}
#betKeyboard .c28-keyboard-container {
    max-width: 500px;
    max-height: 100%;
    height: 100%;
    background: #fff;
    border-radius: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.zhuotou {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    position: relative;
}
.zhuotou .top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    width: 100%;
    height: 45px;
    flex-shrink: 0;
    box-sizing: border-box;
}
.zhuotou .top .center-select {
    font-size: 12px;
    color: #a2a6ba;
    height: 35px;
    background: #f3f3f6;
    box-shadow: inset 2px 2px 4px #e1e2ea;
    border-radius: 3px;
    display: flex;
    padding: 2px;
}
.zhuotou .top .center-select span {
    width: 72px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
    cursor: pointer;
    user-select: none;
}
.zhuotou .top .center-select .active {
    box-shadow: 2px 2px 4px #dadbe3;
    color: #469afe;
    background: linear-gradient(180deg, #fff, #f1f2f6);
    font-weight: 600;
}
.zhuotou .top .zhuotoushuomingleft {
    display: flex;
    align-items: center;
    color: #58b7f6;
    font-size: 22px;
    width: 48px;
    cursor: pointer;
    line-height: 1;
}
.zhuotou .top .zhuotoushuoming {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: auto;
    min-width: 48px;
    color: #8389a5;
    font-size: 13px;
    cursor: pointer;
    gap: 3px;
}
.zhuotou .top .zhuotoushuoming i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    border: 1px solid #8389a5;
    border-radius: 50%;
    font-size: 10px;
    font-style: normal;
    font-weight: 700;
    line-height: 1;
    color: #8389a5;
    box-sizing: border-box;
}
.zhuotou .top .zhuotoushuoming i::before { content: "i"; }
.zhuotou .center {
    flex: 1;
    overflow-y: auto;
    background: #ebecf5;
    padding: 5px 5px 8px;
    font-size: 10px;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 5px;
}
.zhuotou .largespan,
.zhuotou .smallspan {
    display: block;
    vertical-align: top;
    box-sizing: border-box;
    margin: 0;
}
.zhuotou .largespan {
    width: calc(50% - 2.5px);
    height: 75px;
    border: 1px solid #fff;
    background: linear-gradient(180deg, #fefefe, #e8e9f0);
    box-shadow: 0 1px 2px 0 rgba(162,166,186,.5);
    border-radius: 5px;
}
.zhuotou .smallspan {
    width: calc(25% - 3.75px);
    height: 70px;
    border: 1px solid #fff;
    background: linear-gradient(180deg, #fefefe, #e8e9f0);
    box-shadow: 0 1px 2px 0 rgba(162,166,186,.5);
    border-radius: 3px;
}
.zhuotou .zt-tile {
    width: 100%;
    height: 100%;
    cursor: pointer;
    box-sizing: border-box;
    border: 1px solid transparent;
    border-radius: inherit;
}
.zhuotou .zt-tile.selected {
    border: 1px solid #58b7f6;
    background: #fff;
    border-radius: 5px;
    height: 100%;
}
.zhuotou .largespan .p1 {
    margin: 12px 0 0;
    height: 20px;
    font-weight: 600;
    font-size: 15px;
    color: #333;
    text-align: center;
}
.zhuotou .smallspan .p1 {
    font-weight: 600;
    font-size: 13px;
    padding-top: 12px;
    margin: 0;
    color: #333;
    text-align: center;
}
.zhuotou .p2 {
    margin: 2px 0 0;
    height: 20px;
    line-height: 20px;
    color: #6d7683;
    text-align: center;
}
.zhuotou .p2 .odds { font-size: 12px; color: #6d7683; }
.zhuotou .bluebg {
    display: inline-block;
    height: 20px;
    line-height: 20px;
    background: #469afe;
    color: #fff;
    border-radius: 3px;
    padding: 0 5px;
    font-size: 12px;
}
.zhuotou .p3 {
    display: flex;
    justify-content: space-between;
    padding: 2px 5px 0;
    color: #6d7683;
    font-size: 10px;
    align-items: center;
}
.zhuotou .p3 span {
    display: flex;
    align-items: center;
    gap: 2px;
}
.zhuotou .p3 svg,
.zhuotou .p3 .zt-ico {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}
.zhuotou .p3 em { font-style: normal; font-size: 10px; color: #a2a6ba; }
.zhuotou .bottom {
    width: 100%;
    height: 100px;
    background: #fff;
    box-shadow: 0 0 15.6px 0 rgba(97,108,144,.3);
    flex-shrink: 0;
    z-index: 2;
    box-sizing: border-box;
}
.zhuotou .bottom .moneylist {
    display: flex;
    height: 46.8px;
    padding: 0 10.4px;
    align-items: center;
    justify-content: space-between;
}
.zhuotou .bottom .moneylist .select-money {
    width: 13%;
    flex: none;
    height: 31.2px;
    line-height: 29.2px;
    text-align: center;
    color: #68a6f7;
    border: 1px solid #c0c2dd;
    border-radius: 3.12px;
    background: #fff;
    font-size: 12px;
    font-family: inherit;
    font-weight: 400;
    cursor: pointer;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
}
.zhuotou .bottom .moneylist .select-money .yen {
    font-style: normal;
    font-size: 10px;
    margin-right: 1px;
    font-weight: 400;
}
.zhuotou .bottom .moneylist .select-money.active {
    background: #58b7f6;
    border-color: #58b7f6;
    color: #fff;
    line-height: 31.2px;
}
.zhuotou .bottom .moneylist .zt-chip-set {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8389a5;
    line-height: 1;
}
.zhuotou .bottom .moneylist .zt-chip-set.active {
    background: #fff;
    border-color: #c0c2dd;
    color: #8389a5;
}
.zhuotou .bottom .moneylist .zt-chip-set svg {
    width: 18px;
    height: 18px;
    display: block;
    pointer-events: none;
}
.zhuotou .bottom .flex {
    display: flex;
    justify-content: space-between;
    padding: 0 10.4px;
    align-items: center;
}
.zhuotou .bottom .betmessage {
    border-radius: 3.12px;
    width: 56.4%;
    flex: none;
    line-height: 41.6px;
    padding: 0 0 0 10.4px;
    height: 41.6px;
    border: 1px solid #c0c2dd;
    background: #ebecf5;
    font-size: 13px;
    color: #333;
    box-sizing: border-box;
    overflow: hidden;
    white-space: nowrap;
}
.zhuotou .bottom .betmessage i {
    font-style: normal;
    color: #df2044;
    font-weight: 700;
}
.zhuotou .button {
    height: 41.6px;
    width: 16.9%;
    line-height: 39.6px;
    border: 1px solid #c0c2dd;
    border-radius: 5.2px;
    background: #ebecf5;
    color: #666;
    text-align: center;
    cursor: pointer;
    font-size: 13px;
    font-weight: 400;
    flex-shrink: 0;
    box-sizing: border-box;
}
.zhuotou .buttonActive {
    height: 41.6px;
    width: 22.5%;
    min-width: 0;
    padding: 0;
    border-radius: 5.2px;
    line-height: 41.6px;
    background: #58b7f6;
    color: #fff;
    border: none;
    font-weight: 400;
}
.zt-help, .zt-chip-pop {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 5;
    background: linear-gradient(180deg, #c4e5fc, #fff 58%);
}
.zt-help.show, .zt-chip-pop.show { display: flex; flex-direction: column; }
.zt-help-hd, .zt-chip-pop .head {
    height: 50px;
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 18px;
    border-bottom: 1px solid #e1e1e1;
    flex-shrink: 0;
}
.zt-help-hd b, .zt-chip-pop .head b { font-size: 17px; color: #424653; }
.zt-help-hd span, .zt-chip-pop .head span { color: #58b7f6; cursor: pointer; font-size: 15px; }
.zt-help-bd {
    padding: 12px 12px 28px;
    color: #555;
    font-size: 14px;
    line-height: 1.8;
    overflow-y: auto;
    flex: 1;
    -webkit-overflow-scrolling: touch;
}
.zt-help-tip {
    margin: 0 0 10px;
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}
.zt-help-tit {
    font-size: 15px;
    font-weight: 700;
    color: #424653;
    margin: 6px 0 8px;
}
.zt-help-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}
.zt-help-item {
    width: calc((100% - 18px) / 4);
    box-sizing: border-box;
    background: #fff;
    border-radius: 4px;
    text-align: center;
    padding: 8px 0 6px;
    box-shadow: 0 1px 2px rgba(162,166,186,.45);
}
.zt-help-item b {
    display: block;
    font-size: 13px;
    color: #333;
    font-weight: 600;
    line-height: 1.3;
}
.zt-help-item span {
    font-size: 11px;
    color: #6d7683;
}
.zt-chip-pop .moneylistset {
    padding: 16px;
}
.zt-chip-pop .chip-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.zt-chip-pop .chip-row input {
    width: calc(33.33% - 6px);
    height: 40px;
    border: 1px solid #c0c2dd;
    border-radius: 6px;
    text-align: center;
    font-size: 15px;
    background: #ebecf5;
}
.zt-chip-pop .save {
    width: 100%;
    height: 42px;
    border: 0;
    border-radius: 8px;
    background: #58b7f6;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

#quickBetModal {
    z-index: 4000;
    align-items: flex-end;
}
#quickBetModal .c28-keyboard-overlay { z-index: 1; }
#quickBetModal .c28-keyboard-container {
    max-width: 500px;
    max-height: none;
    height: auto;
    background: #d5d7dd;
    border-radius: 0;
    overflow: visible;
    z-index: 2;
}
.Game28Bet {
    width: 100%;
    background: #d5d7dd;
    padding-bottom: 6px;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}
.Game28Bet .top {
    padding: 10px;
    background: #ebecf5;
}
.Game28Bet .top11 {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 19px;
    padding: 0 6px 0 12px;
    gap: 6px;
}
.Game28Bet .betInput {
    flex: 1;
    height: 36px;
    border: 0;
    outline: none;
    font-size: 16px;
    background: transparent;
    min-width: 0;
    -webkit-user-select: text;
    user-select: text;
}
.Game28Bet .delmessage {
    width: 18px;
    height: 18px;
    border: 0;
    background: #c5c9d4;
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
    line-height: 18px;
    text-align: center;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
}
.Game28Bet .top11 .kt-send {
    display: none;
}
.Game28Bet .kt-key {
    height: 46px;
    border-radius: 5px;
    background: #fff;
    border: 0;
    border-bottom: 2px solid #8c8b8e;
    cursor: pointer;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.Game28Bet .kt-key p { margin: 0; line-height: 1; }
.Game28Bet .kt-key .n1 { font-size: 13px; color: #343a52; font-weight: 500; }
.Game28Bet .kt-key .n2 { font-size: 10px; color: #8a8f9a; margin-top: 3px; }
.Game28Bet .kt-key.conterNum {
    font-size: 22px;
    color: #4f9cf7;
    font-weight: 600;
}
.Game28Bet .kt-key.kt-space {
    background: #9aa2ad;
    color: #2f3542;
    font-size: 13px;
    border-bottom-color: #7f8792;
    gap: 2px;
}
.Game28Bet .kt-key.kt-space .n1 { color: #2f3542; font-size: 13px; }
.Game28Bet .kt-key.kt-space .sp { font-size: 11px; color: #5a6270; line-height: 1; }
.Game28Bet .kt-key.kt-cancel {
    background: #9aa2ad;
    color: #2f3542;
    font-size: 13px;
    font-weight: 500;
    border-bottom-color: #7f8792;
}
.Game28Bet .kt-key.kt-del {
    background: #c5cad3;
    border-bottom-color: #9aa2ad;
}
.Game28Bet .kt-key.kt-confirm {
    background: #4eb6f7;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    border-bottom-color: #2f96d8;
    line-height: 1.15;
    padding: 0 2px;
    width: 100%;
    min-height: 46px;
    grid-column: auto;
}
.Game28Bet .kt-key:active { background: #adb4be; color: #fff; }
.Game28Bet .kt-key.kt-confirm:active { background: #fff; color: #000; }
.Game28Bet .kt-key.kt-cancel:active,
.Game28Bet .kt-key.kt-space:active { background: #7f8792; color: #fff; }
.Game28Bet .top-nums {
    display: flex;
    background: #d5d7dd;
    height: 48px;
    align-items: center;
}
.Game28Bet .top-nums .prev,
.Game28Bet .top-nums .next {
    width: 32px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6d7683;
    font-size: 18px;
    cursor: pointer;
    flex-shrink: 0;
}
.Game28Bet .top-nums-swipe {
    flex: 1;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.Game28Bet .top-nums-swipe::-webkit-scrollbar { display: none; }
.Game28Bet .top-nums-swipe-list {
    display: flex;
    gap: 5px;
    padding: 5px 0;
}
.Game28Bet .kt-nkey {
    width: 50px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 5px;
    background: #fff;
    border: 0;
    border-bottom: 2px solid #8c8b8e;
    text-align: center;
    cursor: pointer;
    padding: 0;
}
.Game28Bet .kt-nkey p {
    margin: 0;
    line-height: 1;
}
.Game28Bet .kt-nkey p:first-child {
    font-size: 13px;
    color: #000;
    line-height: 22px;
}
.Game28Bet .kt-nkey p:last-child {
    font-size: 10px;
    color: #6d7683;
    line-height: 10px;
}
.Game28Bet .kt-nkey:active { background: #adb4be; }
.Game28Bet .bet-text {
    padding: 0 4px 6px;
    background: #d0d3dc;
}
.Game28Bet .kt-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px 4px;
    padding-top: 4px;
}

.xy-more-pop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2300;
}
.xy-more-pop.show { display: block; }
.xy-more-mask {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.35);
}
.xy-more-box {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    background: #fff;
    border-radius: 12px 12px 0 0;
    padding: 8px 0 calc(10px + env(safe-area-inset-bottom));
}
.xy-more-item {
    height: 48px;
    line-height: 48px;
    text-align: center;
    font-size: 15px;
    color: #333;
    border-bottom: 1px solid #f3f3f6;
    cursor: pointer;
}
.xy-more-item:last-child { border-bottom: 0; color: #888; }

.xy-pop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2350;
}
.xy-pop.show { display: block; }
.xy-pop-mask {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.45);
}
.xy-pop-box {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    max-height: 78vh;
    background: #fff;
    border-radius: 12px 12px 0 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.xy-pop-hd {
    height: 46px;
    line-height: 46px;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: #000;
    border-bottom: 1px solid #eee;
    position: relative;
    flex-shrink: 0;
}
.xy-pop-close {
    position: absolute;
    left: 12px; top: 0;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    width: 36px;
}
.xy-pop-bd {
    overflow-y: auto;
    padding: 12px 14px 20px;
    -webkit-overflow-scrolling: touch;
}
.hot-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}
.hot-tabs span {
    flex: 1;
    text-align: center;
    height: 32px;
    line-height: 32px;
    border-radius: 16px;
    background: #f3f3f6;
    font-size: 13px;
    cursor: pointer;
}
.hot-tabs span.on { background: #58b7f6; color: #fff; }
.hot-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
.hot-cell {
    background: #f7f8fb;
    border-radius: 8px;
    text-align: center;
    padding: 8px 4px;
}
.hot-cell b { display: block; font-size: 14px; color: #333; }
.hot-cell em { font-style: normal; font-size: 11px; color: #e4593e; }
.hot-cell .omit { color: #878b97; }
.road-wrap { margin-bottom: 14px; }
.road-tit { font-size: 13px; color: #545974; margin: 8px 0; }
.road-board {
    display: flex;
    gap: 3px;
    overflow-x: auto;
    min-height: 132px;
}
.road-col {
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 18px;
    flex-shrink: 0;
}
.road-dot {
    width: 18px; height: 18px; line-height: 18px;
    border-radius: 50%;
    text-align: center;
    font-size: 10px;
    color: #fff;
}
.road-dot.da, .road-dot.dan { background: #eb5358; }
.road-dot.xiao, .road-dot.shuang { background: #0aabff; }
.rule-p { font-size: 13px; color: #333; line-height: 1.75; margin: 0 0 10px; }
.rule-p b { color: #0aabff; }
.his-mini { width: 100%; border-collapse: collapse; font-size: 12px; }
.his-mini th, .his-mini td { padding: 6px 4px; border-bottom: 1px solid #f0f1f5; text-align: center; }

.zjlcpt {
    position: fixed;
    inset: 0;
    z-index: 8000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.72);
}
.zjlcpt.show {
    display: flex;
}
.zjlcpt .win-bg {
    position: relative;
    width: min(84vw, 348px);
    max-width: 348px;
    background-image: url('../zj/zj.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    aspect-ratio: 750 / 887;
    animation: xyWinPop .5s cubic-bezier(.18,1.45,.28,1) both;
}
@keyframes xyWinPop {
    0% { transform: scale(.14); opacity: 0; }
    58% { transform: scale(1.08); opacity: 1; }
    78% { transform: scale(.97); }
    100% { transform: scale(1); }
}
.zjlcpt .win-amount {
    position: absolute;
    left: 16.5%;
    width: 67%;
    top: 53.8%;
    height: 11.2%;
    bottom: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff4d4;
    border-radius: 8px;
    color: #e31c24;
    font-size: clamp(30px, 8vw, 44px);
    font-weight: 800;
    font-family: "DIN Alternate", "Arial Black", "PingFang SC", "Microsoft Yahei", sans-serif;
    letter-spacing: .4px;
    text-shadow: 0 1px 0 #fff;
    z-index: 3;
    pointer-events: none;
}
.zjlcpt .win-amount span { display: none; }
.xy-kj-in .xy-kj-card {
    animation: xyKjIn .34s cubic-bezier(.2,1.35,.28,1);
    transform-origin: left center;
}
@keyframes xyKjIn {
    0% { transform: scale(.72); opacity: .35; }
    70% { transform: scale(1.04); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}
.xy-bet-pop {
    position: absolute;
    left: 0;
    right: 0;
    top: 124px;
    bottom: 108px;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
}
.xy-bet-pop.show {
    animation: xyBetPopIn .32s ease-out forwards;
}
@keyframes xyBetPopIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}
.xy-bet-pop .xy-bet-pop-card {
    display: flex;
    align-items: flex-start;
    gap: 8.3px;
    min-width: 0;
    max-width: 86%;
    width: auto;
    background: transparent;
    margin: 0;
    animation: xyBetCardPop .32s cubic-bezier(.2,1.4,.3,1) both;
}
@keyframes xyBetCardPop {
    0% { transform: scale(.55); opacity: .4; }
    70% { transform: scale(1.06); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}
.xy-bet-pop .c28-message-body {
    flex: 0 1 auto;
}
.xy-bet-pop .c28-message-content {
    max-width: none;
    display: inline-block;
}
.period-bet-chip:focus { outline: none; }
