:root{
  /* 2024.com extracted design tokens: rgb(220,60,65), rgb(39,41,44), 14.56/12.48/17.68, 5.33 radius, .28s */
  --red:#DC3C41;--red-dark:#b92b31;--brand-red:#DC3C41;--dark:#27292C;--dark-bar:#27292C;--text:#222;--text-2:#666;--text-3:#999;--text2:#666;--muted:#999;
  --line:#ececec;--line-soft:#f2f2f2;--bg:#f2f3f5;--bg-page:#f0f1f3;--white:#fff;--orange:#ff8a65;--blue:#54a7ef;
  --radius:5.33px;--radius-card:5.33px;--fs:14.56px;--fs2:12.48px;--title:17.68px;--fs-title:17.68px;--fs-h1:22px;--tr:.28s;--ease:.28s;--ease-300:.3s;
  --space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;
  --shadow-card:0 1px 2px rgba(0,0,0,.035),inset 0 1px 0 rgba(255,255,255,.8);
  --shadow-float:0 4px 12px rgba(220,60,65,.2);
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;background:var(--bg);color:var(--text);font-family:-apple-system,BlinkMacSystemFont,"Helvetica Neue",Helvetica,"Segoe UI",Arial,Roboto,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;-webkit-text-size-adjust:100%}
body{min-height:100vh;overflow-x:hidden}
a{color:inherit;text-decoration:none}
button{font-family:inherit;border:0;background:none;color:inherit;cursor:pointer;padding:0}
img{max-width:100%;display:block}
#app{position:relative;width:min(100%,500px);min-height:100vh;margin:0 auto;background:var(--white);box-shadow:0 0 0 1px rgba(0,0,0,.04)}
.appbar{position:fixed;z-index:60;left:50%;top:0;transform:translateX(-50%);width:min(100%,500px);height:46px;padding:0 12px;display:flex;align-items:center;justify-content:space-between;background:var(--red);color:#fff;box-shadow:0 1px 3px rgba(0,0,0,.16)}
.logo{display:flex;align-items:baseline;gap:7px;min-width:0}
.logo b{font-size:19px;line-height:1;font-weight:900;letter-spacing:.04em;color:#fff;text-shadow:0 1px 0 rgba(0,0,0,.18);white-space:nowrap}
.logo i{font-style:normal;font-size:8px;font-weight:700;letter-spacing:.12em;color:#ffd9d9;white-space:nowrap}
.appbar-actions{display:flex;align-items:center;gap:7px;flex:none}
.refresh-mini{width:28px;height:28px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;color:#fff;font-size:16px;line-height:1;position:relative;border:1px solid rgba(255,255,255,.45);background:rgba(255,255,255,.08)}
.refresh-mini.busy{font-size:0;opacity:.8}
.refresh-mini.busy:before{content:"";width:12px;height:12px;border:2px solid #fff;border-right-color:transparent;border-radius:50%;animation:spin .7s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.app-btn{height:27px;padding:0 9px;border-radius:4px;border:1px solid rgba(255,255,255,.65);font-size:11px;font-weight:700;color:#fff;background:rgba(255,255,255,.04)}
.view{padding-top:46px;padding-bottom:68px;min-height:100vh;background:#fff}
/* banner */
.swiper{position:relative;height:230px;overflow:hidden;background:#f7f7f7}
.slide{position:absolute;inset:0;opacity:0;transition:opacity .28s;display:flex;flex-direction:column;justify-content:center;padding:22px 20px;color:#fff;overflow:hidden}
.slide.on{opacity:1;z-index:1}
.slide:before{content:"";position:absolute;right:-60px;top:-60px;width:190px;height:190px;border-radius:50%;border:24px solid rgba(255,255,255,.12)}
.slide:after{content:"";position:absolute;right:54px;bottom:-54px;width:150px;height:110px;border-radius:20px;transform:rotate(18deg);background:rgba(255,255,255,.10)}
.slide.s1{background:linear-gradient(120deg,#d32d35,#ee6c43 55%,#f4a33e)}
.slide.s2{background:linear-gradient(120deg,#1d5fa8,#3a9bd8 60%,#57c5c2)}
.slide.s3{background:linear-gradient(120deg,#3a284f,#7b3b68 55%,#c04a5f)}
.slide small{position:relative;z-index:1;display:inline-block;font-size:10px;font-weight:800;letter-spacing:.14em;padding:4px 7px;border-radius:3px;background:rgba(0,0,0,.18);border:1px solid rgba(255,255,255,.4);width:max-content}
.slide h2{position:relative;z-index:1;margin:10px 0 5px;font-size:27px;line-height:1.15;font-weight:900;letter-spacing:-.02em;text-shadow:0 2px 0 rgba(0,0,0,.12)}
.slide p{position:relative;z-index:1;margin:0;font-size:12.48px;line-height:1.5;color:rgba(255,255,255,.92)}
.slide .slide-btn{position:relative;z-index:1;margin-top:13px;display:inline-block;padding:7px 12px;border-radius:4px;background:#fff;color:#b8282f;font-size:12px;font-weight:800;width:max-content;min-height:32px}
.dots{position:absolute;z-index:3;left:0;right:0;bottom:9px;display:flex;justify-content:center;gap:5px}
.dots button{width:6px;height:6px;border-radius:50%;background:rgba(255,255,255,.5);transition:.28s}
.dots button.on{background:#fff;width:15px;border-radius:4px}
/* notice */
.notice{height:44px;display:flex;align-items:center;gap:7px;padding:0 11px;background:#fff;border-bottom:1px solid #f0f0f0;overflow:hidden}
.notice-ico{width:18px;height:18px;border-radius:50%;background:var(--red);color:#fff;display:flex;align-items:center;justify-content:center;font-size:11px;flex:none}
.notice-track{flex:1;overflow:hidden;white-space:nowrap;min-width:0}
.notice-track span{display:inline-block;padding-left:0;font-size:14.56px;color:#333;animation:marquee 20s linear 30s infinite;white-space:nowrap}
.notice-track span em{font-style:normal;color:var(--red)}
@keyframes marquee{from{transform:translateX(0)}to{transform:translateX(-60%)}}
.notice-more{font-size:12.48px;color:var(--muted);flex:none;min-height:32px;display:flex;align-items:center;padding-left:4px}
/* quick */
.quick-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:#eee;border-bottom:1px solid #eee}
.quick-item{min-height:48px;display:flex;align-items:center;justify-content:center;gap:5px;color:#fff;font-size:14.56px;font-weight:700;background:var(--qc);text-align:center}
.quick-item .qico{width:18px;height:18px;border-radius:4px;display:inline-flex;align-items:center;justify-content:center;background:rgba(255,255,255,.2);font-size:10px;flex:none}
.quick-item:active{filter:brightness(.94)}
/* category tabs */
.cat-tabs{height:50px;display:flex;align-items:stretch;gap:0;background:#fff;border-bottom:1px solid #eee;overflow-x:auto;scrollbar-width:none}
.cat-tabs::-webkit-scrollbar{display:none}
.cat-tabs a{position:relative;min-width:72px;padding:0 13px;display:flex;align-items:center;justify-content:center;font-size:14.56px;color:#666;white-space:nowrap}
.cat-tabs a.on{color:var(--red);font-weight:800}
.cat-tabs a.on:after{content:"";position:absolute;left:12px;right:12px;bottom:0;height:2px;background:var(--red);border-radius:2px}
/* hot section */
.hot-section{padding:0 0 6px;background:#fff}
.hot-head{height:50px;padding:0 12px;display:flex;align-items:center;justify-content:space-between}
.hot-title{font-size:var(--title);font-weight:800;color:#222}
.hot-more{font-size:14.56px;color:var(--red);min-height:32px;display:flex;align-items:center;gap:2px}
.hot-grid{display:grid;grid-template-columns:repeat(3,1fr);background:#f0f0f0;gap:1px;border-top:1px solid #f0f0f0;border-bottom:1px solid #f0f0f0}
.game-cell{background:#fff;min-height:145px;padding:14px 6px 10px;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;text-align:center;color:inherit}
.game-circle{width:60px;height:60px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;font-size:20px;font-weight:900;background:var(--gc);box-shadow:inset 0 1px 0 rgba(255,255,255,.35),0 2px 5px rgba(0,0,0,.12);position:relative;flex:none}
.game-circle:after{content:"";position:absolute;inset:4px;border-radius:50%;border:1px dashed rgba(255,255,255,.45)}
.game-name{margin-top:8px;font-size:14.56px;font-weight:700;color:#222;line-height:1.25;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.game-issue{margin-top:3px;font-size:12.48px;color:#999;line-height:1.2;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.game-cell.placeholder .game-circle{opacity:.65;filter:grayscale(.2)}
.game-cell.placeholder .game-name{color:#777}
/* generic page */
.page-head{padding:14px 12px 9px;display:flex;align-items:flex-end;justify-content:space-between;gap:8px;background:#fff}
.page-kicker{font-size:10px;font-weight:800;letter-spacing:.12em;color:var(--red)}
.page-title{margin:3px 0 0;font-size:22px;line-height:1.15;font-weight:900;color:#222}
.page-sub{margin-top:4px;font-size:var(--fs2);color:#999}
.demo-pill{font-size:10px;font-weight:800;letter-spacing:.06em;color:var(--red);border:1px solid rgba(220,60,65,.35);background:rgba(220,60,65,.05);border-radius:3px;padding:3px 6px}
.section{padding:0 10px;margin-top:10px}
.section-head{height:44px;display:flex;align-items:center;justify-content:space-between;gap:8px}
.section-title{font-size:var(--title);font-weight:800;color:#222;display:flex;align-items:center;gap:6px}
.section-title:before{content:"";width:3px;height:15px;border-radius:2px;background:var(--red)}
.section-link{font-size:12.48px;color:var(--red);min-height:32px;display:inline-flex;align-items:center}
.card{background:#fff;border:1px solid #eee;border-radius:var(--radius);box-shadow:0 1px 2px rgba(0,0,0,.03)}
.chips{display:flex;gap:7px;overflow-x:auto;scrollbar-width:none;padding:2px 10px 9px;background:#fff}
.chips::-webkit-scrollbar{display:none}
.chip{flex:none;min-height:32px;padding:0 12px;border-radius:4px;border:1px solid #e5e5e5;background:#fff;color:#666;font-size:12.48px;font-weight:700;display:inline-flex;align-items:center;justify-content:center}
.chip.on{background:var(--red);color:#fff;border-color:var(--red)}
/* history */
.table-scroll{overflow-x:auto;border:1px solid #eee;border-radius:var(--radius);background:#fff;scrollbar-width:none}
.table-scroll::-webkit-scrollbar{display:none}
table.hist{width:100%;min-width:0;border-collapse:collapse;font-size:12px;table-layout:auto}
.hist th{text-align:left;font-size:10px;color:#999;font-weight:700;padding:9px 6px;border-bottom:1px solid #eee;white-space:nowrap}
.hist td{padding:9px 6px;border-bottom:1px solid #f1f1f1;color:#555;white-space:nowrap;vertical-align:middle}
.hist tr:last-child td{border-bottom:0}
.hist .iss{font-weight:800;color:#222}
.ball-row{display:flex;gap:2px;align-items:center}
.ball{width:19px;height:19px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font:800 8px/1 Arial;color:#fff;background:#3b7cff;box-shadow:inset 0 1px 0 rgba(255,255,255,.35)}
.ball.r{background:#e4484e}.ball.b{background:#3d8cff}.ball.g{background:#20a86c}
.ball.plus{background:transparent;color:#999;width:7px;font-size:10px;box-shadow:none}
.status{display:inline-flex;align-items:center;gap:3px;font-size:9px;font-weight:700;padding:3px 6px;border-radius:3px;background:#eaf8ef;color:#1b9c58}
.more-row{display:flex;justify-content:center;padding:12px 0}
.btn{min-height:40px;padding:0 16px;border-radius:4px;font-size:13px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;gap:5px}
.btn-primary{background:var(--red);color:#fff}
.btn-ghost{background:#fff;color:#666;border:1px solid #ddd}
.btn-block{width:100%}
.mini-note{padding:7px 12px 10px;text-align:center;font-size:10px;line-height:1.6;color:#aaa}
/* trend */
.trend-panel{margin:0 10px;padding:12px 10px 10px;background:#fff;border:1px solid #eee;border-radius:var(--radius)}
.trend-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.trend-head b{font-size:14px;color:#222}.trend-head span{font-size:10px;color:#999}
.bars{height:120px;display:flex;align-items:flex-end;gap:5px;border-bottom:1px solid #eee;padding:0 1px}
.bar-item{flex:1;height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:4px;min-width:0}
.bar{width:100%;max-width:24px;border-radius:3px 3px 0 0;background:linear-gradient(#ffc06b,#DC3C41)}
.bar-item i{font-style:normal;font-size:8px;color:#999;white-space:nowrap}
.num-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:5px;margin-top:12px}
.num-cell{aspect-ratio:1;display:grid;place-items:center;border-radius:3px;background:#f7f7f7;border:1px solid #eee;font:700 10px/1 Arial;color:#777}
.num-cell.hot{background:var(--red);border-color:var(--red);color:#fff}
.legend{display:flex;gap:12px;margin-top:9px;font-size:10px;color:#999}
.legend i{width:7px;height:7px;border-radius:2px;display:inline-block;margin-right:3px;vertical-align:-1px}
/* rank */
.podium{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:0 10px 10px;align-items:end}
.podium-item{background:#fff;border:1px solid #eee;border-radius:var(--radius);text-align:center;padding:13px 5px 10px;position:relative}
.podium-item.first{background:linear-gradient(#fff9e9,#fff);border-color:#f3d49a;padding-top:20px}
.podium-item .crown{position:absolute;top:6px;left:50%;transform:translateX(-50%);font-size:13px;color:#e1a32b}
.podium-item .avatar{margin:0 auto 6px}
.podium-item b{display:block;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.podium-item span{display:block;font-size:9px;color:#999;margin-top:2px}
.podium-item strong{display:block;margin-top:5px;font:800 15px/1 Arial;color:var(--red)}
.rank-list{display:flex;flex-direction:column;gap:1px;margin:0 10px;background:#eee;border:1px solid #eee;border-radius:var(--radius);overflow:hidden}
.rank-row{display:flex;align-items:center;gap:9px;background:#fff;padding:10px;min-height:54px}
.rank-no{width:20px;text-align:center;font:800 12px/1 Arial;color:#aaa;flex:none}
.rank-row .avatar{width:34px;height:34px;border-radius:50%;font-size:12px}
.rank-info{flex:1;min-width:0}.rank-info b{display:block;font-size:12.48px;color:#222;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.rank-info span{display:block;font-size:10px;color:#999;margin-top:2px}
.rank-val{text-align:right;flex:none}.rank-val b{display:block;font:800 13px/1 Arial;color:var(--red)}.rank-val span{font-size:9px;color:#999}
.avatar{width:42px;height:42px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:15px;font-weight:800;color:#fff;background:#f2a23e;flex:none}
.avatar.v2{background:#4b9de0}.avatar.v3{background:#d85b89}.avatar.v4{background:#48b67c}
/* detail */
.detail-head{padding:12px 12px 7px;display:flex;align-items:center;gap:10px;background:#fff}
.detail-head .game-circle{width:48px;height:48px;font-size:17px;flex:none}
.detail-head .page-title{font-size:23px}
.back-link{display:inline-flex;align-items:center;min-height:36px;font-size:12px;color:#888;padding:0 12px}
.detail-last{margin:8px 10px 0;padding:12px;background:#fff;border:1px solid #eee;border-radius:var(--radius)}
.detail-label{display:flex;align-items:center;justify-content:space-between;font-size:12px;color:#666}
.detail-label span{font-size:11px;color:#222;font-weight:700}
.detail-balls{margin:10px 0 8px;display:flex;align-items:center;min-height:34px}
.detail-balls .ball{width:29px;height:29px;font-size:11px;margin-right:1px}
.detail-balls .ball.plus{width:9px;font-size:12px;color:#999}
.wave-legend{display:flex;align-items:center;gap:10px;flex-wrap:wrap;border-top:1px solid #f1f1f1;padding-top:8px;font-size:10px;color:#999}
.wave-legend span{display:inline-flex;align-items:center;gap:3px}
.wave-legend i{width:6px;height:6px;border-radius:50%;display:inline-block}
.wave-legend i.r{background:#e4484e}.wave-legend i.b{background:#3d8cff}.wave-legend i.g{background:#20a86c}
.wave-legend .special-legend{margin-left:auto}
.next-card{margin:8px 10px 0;padding:12px;border:1px solid #f2dfc4;border-radius:var(--radius);background:linear-gradient(110deg,#fff8ea,#fff);display:flex;align-items:center;justify-content:space-between;gap:8px}
.next-card div{display:flex;flex-direction:column;gap:2px;min-width:0}.next-card span{font-size:10px;color:#a78552}.next-card b{font-size:14px;color:#222}.next-card em{font-style:normal;font-size:9px;color:#999}.next-card strong{font:800 20px/1 Arial,monospace;color:var(--red);white-space:nowrap}
.wave-stats{display:flex;flex-direction:column;gap:10px}
.wave-stat{display:flex;align-items:center;gap:6px;font-size:10px}.wave-stat b{width:28px;color:#555;flex:none}.wave-dot{width:6px;height:6px;border-radius:50%;flex:none}.wave-dot.r,.wave-bar i.r{background:#e4484e}.wave-dot.b,.wave-bar i.b{background:#3d8cff}.wave-dot.g,.wave-bar i.g{background:#20a86c}
.wave-bar{height:6px;border-radius:3px;background:#f2f2f2;flex:1;overflow:hidden}.wave-bar i{display:block;height:100%;border-radius:3px}.wave-stat em{font-style:normal;color:#999;width:22px;text-align:right;flex:none}
.zodiac-row{display:flex;flex-wrap:wrap;gap:5px;margin-top:11px;padding-top:9px;border-top:1px solid #f1f1f1}
.zodiac-chip{font-size:9px;color:#666;border:1px solid #eee;border-radius:3px;padding:3px 5px;background:#fafafa}.zodiac-chip b{color:var(--red);margin-left:2px}
.detail-history{margin:0 10px;border:1px solid #eee;border-radius:var(--radius);overflow:hidden;background:#fff}
.detail-hist-row{display:flex;align-items:center;gap:7px;min-height:38px;padding:7px 9px;border-bottom:1px solid #f2f2f2}.detail-hist-row:last-child{border-bottom:0}
.dh-iss{width:44px;flex:none;font-size:10px;font-weight:700;color:#555}.dh-balls .ball{width:19px;height:19px;font-size:8px}
/* me */
.profile{margin:10px;padding:13px;background:#fff;border:1px solid #eee;border-radius:var(--radius);display:flex;align-items:center;gap:11px}
.profile .avatar{width:48px;height:48px;border-radius:50%;font-size:18px;background:var(--red)}
.profile-main{flex:1;min-width:0}.profile-main b{font-size:14px}.profile-main span{display:block;font-size:10px;color:#999;margin-top:3px}.profile-main .tag{display:inline-flex;margin-top:4px;font-size:9px;color:var(--red);border:1px solid rgba(220,60,65,.25);border-radius:3px;padding:2px 4px}
.demo-account-note{margin:0 10px 10px;padding:11px 12px;border:1px solid #eee;border-radius:var(--radius);background:#fafafa;display:flex;flex-direction:column;gap:4px}
.demo-account-note b{font-size:12px;color:#333}.demo-account-note span{font-size:10px;color:#999;line-height:1.6}
.menu{margin:0 10px;border:1px solid #eee;border-radius:var(--radius);overflow:hidden;background:#fff}
.menu-row{width:100%;display:flex;align-items:center;gap:9px;min-height:48px;padding:0 12px;border-bottom:1px solid #f2f2f2;text-align:left;font-size:12.48px;color:#333}
.menu-row:last-child{border-bottom:0}
.menu-ico{width:26px;height:26px;border-radius:4px;background:#f5f5f5;display:flex;align-items:center;justify-content:center;font-size:12px;color:#888;flex:none}
.menu-row .txt{flex:1}.menu-row em{font-style:normal;font-size:9px;color:#bbb}.menu-row .arrow{font-size:14px;color:#ccc}
/* footer/floating */
.demo-footer{padding:12px 12px 16px;text-align:center;font-size:10px;color:#aaa;line-height:1.6;background:#fff}
.demo-dot{display:inline-block;width:4px;height:4px;border-radius:50%;background:var(--red);margin-right:4px;vertical-align:1px}
.float-sign{position:fixed;z-index:35;right:max(12px,calc((100vw - 500px)/2 + 12px));bottom:78px;width:44px;height:44px;border-radius:50%;background:linear-gradient(135deg,#ffb15e,#e23b41);color:#fff;font-size:10px;font-weight:800;line-height:1.1;box-shadow:0 4px 12px rgba(220,60,65,.35);border:2px solid #fff}
.bottomtab{position:fixed;z-index:50;left:50%;bottom:0;transform:translateX(-50%);width:min(100%,500px);height:58px;background:var(--dark);display:grid;grid-template-columns:repeat(4,1fr);padding-bottom:env(safe-area-inset-bottom)}
.bottomtab a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;color:#a2a5aa;font-size:10px;min-height:58px}
.bottomtab a b{font-size:19px;line-height:1;font-weight:400}
.bottomtab a.on{color:#ff5a5f}
.bottomtab a.on b{text-shadow:0 0 8px rgba(255,90,95,.35)}
/* toast/modal */
.toast{position:fixed;z-index:80;left:50%;bottom:72px;transform:translate(-50%,10px);max-width:86vw;padding:9px 13px;border-radius:4px;background:rgba(30,30,30,.92);color:#fff;font-size:12px;opacity:0;pointer-events:none;transition:.25s}
.toast.show{opacity:1;transform:translate(-50%,0)}
.modal{position:fixed;inset:0;z-index:90;display:flex;align-items:flex-end;justify-content:center}
.modal[hidden]{display:none}
.modal-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.5)}
.modal-card{position:relative;width:min(100%,500px);margin:0 8px calc(10px + env(safe-area-inset-bottom));padding:17px 15px 14px;background:#fff;border-radius:8px 8px 0 0;box-shadow:0 -8px 30px rgba(0,0,0,.2);animation:up .25s ease}
.modal-kicker{font-size:9px;letter-spacing:.12em;font-weight:800;color:var(--red)}
.modal-card h3{margin:6px 0;font-size:18px;color:#222}.modal-card p{margin:0 0 13px;font-size:12.48px;line-height:1.7;color:#777}
@keyframes up{from{transform:translateY(14px);opacity:.6}to{transform:translateY(0);opacity:1}}
/* loading/data */
.data-empty{color:#aaa;font-size:12px;padding:10px 0;text-align:center;display:block}
@keyframes rise{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
.view>*{animation:rise .28s ease both}
@media(prefers-reduced-motion:reduce){*{animation-duration:.001ms!important;animation-iteration-count:1!important;transition:none!important}.notice-track span{animation:none}}
@media(min-width:501px){
  body{background:#e9ebee}
  #app{min-height:900px;box-shadow:0 0 28px rgba(0,0,0,.12)}
}
@media(max-width:360px){
  .logo i{display:none}.app-btn{padding:0 7px}
  .slide h2{font-size:24px}.slide p{font-size:12px}
  .game-cell{min-height:136px;padding-top:12px}
  .game-circle{width:54px;height:54px;font-size:18px}
  .quick-item{font-size:13px}.quick-item .qico{display:none}
  .cat-tabs a{min-width:64px;padding:0 9px;font-size:13px}
  .detail-balls .ball{width:26px;height:26px;font-size:10px}
  .next-card strong{font-size:17px}
}

/* refined visual layer */
.icon-sprite{position:absolute;width:0;height:0;overflow:hidden}
.appbar{height:calc(46px + env(safe-area-inset-top));padding-top:env(safe-area-inset-top)}
.view{padding-top:calc(46px + env(safe-area-inset-top))}
.logo{display:flex;align-items:center;gap:8px;min-width:0}
.logo-mark{width:29px;height:29px;border-radius:8px;display:grid;place-items:center;color:#fff;background:linear-gradient(145deg,rgba(255,255,255,.28),rgba(255,255,255,.08));border:1px solid rgba(255,255,255,.5);box-shadow:inset 0 1px 0 rgba(255,255,255,.45),0 2px 5px rgba(100,0,0,.18);flex:none}
.logo-mark svg{width:22px;height:22px;stroke:currentColor;fill:none;color:#fff}
.logo-text{display:flex;flex-direction:column;line-height:1}
.logo-text b{font-size:18px;line-height:1;font-weight:900;letter-spacing:.03em;color:#fff;white-space:nowrap}
.logo-text i{font-style:normal;font-size:7px;font-weight:700;letter-spacing:.14em;color:#ffd4d4;margin-top:3px;white-space:nowrap}
.app-btn{border-radius:999px;background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.75);box-shadow:inset 0 1px 0 rgba(255,255,255,.25);min-width:45px;text-align:center;transition:background .28s,transform .28s}
.app-btn:active{transform:scale(.96);background:rgba(255,255,255,.22)}
.refresh-mini{transition:transform .28s,background .28s}
.refresh-mini:active{transform:rotate(-35deg) scale(.94);background:rgba(255,255,255,.2)}
/* banner art */
.slide-art{position:absolute;right:-4px;bottom:2px;width:205px;height:170px;opacity:.42;z-index:1;pointer-events:none;filter:drop-shadow(0 5px 12px rgba(80,20,20,.12));animation:artFloat 8s ease-in-out infinite}
.slide.s2 .slide-art{opacity:.5;right:-10px;bottom:-2px}
.slide.s3 .slide-art{opacity:.45}
@keyframes artFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-5px)}}
.slide{isolation:isolate}
.slide:before,.slide:after{pointer-events:none}
.slide h2,.slide p,.slide small,.slide .slide-btn{position:relative;z-index:2}
.slide .slide-btn{box-shadow:0 4px 12px rgba(0,0,0,.14),inset 0 1px 0 rgba(255,255,255,.9);transition:transform .28s,box-shadow .28s}
.slide .slide-btn:active{transform:translateY(1px);box-shadow:0 2px 6px rgba(0,0,0,.12)}
/* notice edge masks */
.notice{position:relative}
.notice:after,.notice:before{content:"";position:absolute;z-index:2;top:0;bottom:0;width:14px;pointer-events:none}
.notice:before{left:0;width:10px;background:linear-gradient(90deg,#fff,rgba(255,255,255,0))}
.notice:after{right:51px;background:linear-gradient(270deg,#fff,rgba(255,255,255,0))}
.notice-track{position:relative;z-index:1}
/* quick icon system */
.quick-item{position:relative;overflow:hidden;transition:filter .28s,transform .28s;box-shadow:inset 0 1px 0 rgba(255,255,255,.18)}
.quick-item:before{content:"";position:absolute;inset:0;background:linear-gradient(160deg,rgba(255,255,255,.2),rgba(255,255,255,0) 55%);pointer-events:none}
.quick-item:after{content:"";position:absolute;width:50px;height:50px;border:1px solid rgba(255,255,255,.14);border-radius:50%;right:-23px;bottom:-28px}
.quick-item:active{transform:scale(.975);filter:brightness(.92)}
.quick-ico{width:21px;height:21px;border-radius:6px;background:rgba(255,255,255,.17);box-shadow:inset 0 1px 0 rgba(255,255,255,.18);display:inline-flex;align-items:center;justify-content:center;flex:none;position:relative;z-index:1}
.quick-ico svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;color:#fff}
/* game badges */
.game-cell{position:relative;transition:background .28s,transform .28s,box-shadow .28s;box-shadow:inset 0 1px 0 #fff,inset 0 -1px 0 rgba(0,0,0,.02)}
.game-cell:active{transform:scale(.975);background:#fcfcfc}
.game-circle{background:radial-gradient(circle at 32% 22%,rgba(255,255,255,.58) 0,rgba(255,255,255,.08) 18%,transparent 38%),linear-gradient(145deg,var(--gc),color-mix(in srgb,var(--gc) 70%,#332) 100%);border:2px solid color-mix(in srgb,var(--gc) 55%,#fff);box-shadow:0 6px 14px color-mix(in srgb,var(--gc) 24%,transparent),inset 0 2px 3px rgba(255,255,255,.52),inset 0 -4px 8px rgba(0,0,0,.12);transition:transform .28s,box-shadow .28s;overflow:hidden;isolation:isolate}
.game-circle:before{content:"";position:absolute;inset:4px;border-radius:50%;border:1px solid rgba(255,255,255,.48);z-index:1;pointer-events:none}
.game-circle:after{content:"";position:absolute;inset:8px;border-radius:50%;border:1px dashed rgba(255,255,255,.35);z-index:1;pointer-events:none}
.game-glyph{position:relative;z-index:2;color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.28),0 0 1px rgba(0,0,0,.3)}
.badge-shine{position:absolute;z-index:1;left:14%;top:10%;width:45%;height:22%;border-radius:50%;background:rgba(255,255,255,.34);filter:blur(2px);transform:rotate(-26deg);pointer-events:none}
.game-cell:hover .game-circle{transform:translateY(-2px);box-shadow:0 8px 18px color-mix(in srgb,var(--gc) 30%,transparent),inset 0 2px 3px rgba(255,255,255,.55)}
.game-glyph{font-size:21px}
.placeholder .game-circle{filter:saturate(.55);opacity:.8}
.placeholder .game-cell{background:#fafafa}
/* layered cards */
.hot-grid{border-radius:var(--radius);box-shadow:0 1px 2px rgba(0,0,0,.025);overflow:hidden}
.card,.detail-last,.next-card,.trend-panel,.profile,.demo-account-note,.rank-list{box-shadow:0 1px 2px rgba(0,0,0,.035),inset 0 1px 0 rgba(255,255,255,.8)}
.next-card{box-shadow:0 3px 10px rgba(220,60,65,.06),inset 0 1px 0 #fff}
.rank-row{transition:background .28s}
.rank-row:hover{background:#fffafa}
/* typography numbers */
.game-issue,.next-card strong,.hist td,.hist .iss,.real-bottom b{font-variant-numeric:tabular-nums}
.next-card strong{letter-spacing:.01em}
/* 3d balls */
.ball{--ball:#3d8cff;--ball-dark:#1d58b8;position:relative;overflow:hidden;background:radial-gradient(circle at 32% 23%,#fff 0,rgba(255,255,255,.65) 12%,var(--ball) 48%,var(--ball-dark) 100%);box-shadow:inset 0 1px 2px rgba(255,255,255,.65),inset 0 -2px 3px rgba(0,0,0,.2),0 2px 4px rgba(0,0,0,.16);border:1px solid rgba(255,255,255,.38)}
.ball:after{content:"";position:absolute;left:18%;top:10%;width:36%;height:22%;border-radius:50%;background:rgba(255,255,255,.38);filter:blur(.5px);transform:rotate(-18deg)}
.ball.r{--ball:#e4484e;--ball-dark:#a71d2d}.ball.b{--ball:#3d8cff;--ball-dark:#1d58b8}.ball.g{--ball:#20a86c;--ball-dark:#0d7144}
.ball.plus{background:none;box-shadow:none;border:0;overflow:visible}
.ball.plus:after{display:none}
/* bottom tab */
.bottomtab{box-shadow:0 -1px 0 rgba(255,255,255,.06),0 -6px 18px rgba(0,0,0,.16)}
.bottomtab a{position:relative;transition:color .28s,transform .28s}
.tab-icon{width:22px;height:22px;display:flex;align-items:center;justify-content:center;transition:transform .28s,filter .28s;color:currentColor}
.tab-icon svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.bottomtab a.on{color:#ff5a5f}
.bottomtab a.on .tab-icon{transform:translateY(-1px) scale(1.06);filter:drop-shadow(0 0 6px rgba(255,90,95,.55))}
.bottomtab a.on:before{content:"";position:absolute;top:5px;width:4px;height:4px;border-radius:50%;background:#ff5a5f;box-shadow:0 0 7px rgba(255,90,95,.8)}
.bottomtab a:active .tab-icon{transform:scale(.9)}
/* skeleton & empty */
.sk{display:block;background:linear-gradient(90deg,#f1f1f1 25%,#fafafa 37%,#f1f1f1 63%);background-size:400% 100%;animation:shimmer 1.35s ease infinite;border-radius:4px}
.sk-badge{width:60px;height:60px;border-radius:50%;margin-bottom:9px}
.sk-line{width:58px;height:9px;margin-top:4px}.sk-line.short{width:40px}
@keyframes shimmer{0%{background-position:100% 0}100%{background-position:-100% 0}}
.empty-state{padding:24px 12px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#c8c8c8;text-align:center}
.empty-state svg{width:86px;height:69px;stroke:currentColor;fill:none;margin-bottom:6px;opacity:.8}
.empty-state span{font-size:12px;color:#aaa}
@media(prefers-reduced-motion:reduce){.slide-art,.sk{animation:none!important}}
@media(hover:hover){.quick-item:hover{filter:brightness(1.04)}.game-cell:hover{background:#fffdfb}}

/* simulated bet */
.bet-mode .bottomtab,.bet-mode .float-sign{display:none}
.bet-mode .view{padding-bottom:112px}
.bet-entry{display:flex;align-items:center;justify-content:center;gap:5px;margin:8px 10px;min-height:38px;border-radius:4px;background:linear-gradient(100deg,#DC3C41,#ee6a4f);color:#fff;font-size:13px;font-weight:800;box-shadow:0 3px 8px rgba(220,60,65,.18)}
.bet-entry span{font-size:10px;font-weight:500;opacity:.85}
.bet-head{padding:10px 12px 8px;display:flex;align-items:flex-start;justify-content:space-between;gap:8px;background:#fff}
.bet-kicker{font-size:9px;letter-spacing:.1em;color:var(--red);font-weight:800}
.bet-head h1{margin:3px 0 2px;font-size:22px;line-height:1.15;color:#222;font-weight:900}
.bet-period{font-size:11px;color:#999}.bet-period b{color:#333}
.bet-clock{text-align:right;font-size:10px;color:#999;line-height:1.45;flex:none}
.bet-clock br{display:none}
.bet-clock b{display:block;margin-top:2px;font:800 13px/1.2 Arial,monospace;color:var(--red);font-variant-numeric:tabular-nums}
.bet-open{margin:0 10px;padding:10px 11px;border-radius:var(--radius);border:1px solid #f0e2dc;background:linear-gradient(100deg,#fff8f3,#fff);box-shadow:inset 0 1px 0 #fff}
.bet-open-label{display:flex;justify-content:space-between;font-size:10px;color:#999}.bet-open-label span{color:#555;font-weight:700}
.bet-open-balls{display:flex;align-items:center;gap:3px;margin-top:8px;flex-wrap:wrap}
.bet-ball{width:30px;height:36px;border-radius:5px;display:flex;flex-direction:column;align-items:center;justify-content:center;background:linear-gradient(145deg,#fff,#f4f4f4);border:1px solid #eee;box-shadow:0 1px 2px rgba(0,0,0,.05);overflow:hidden;position:relative}
.bet-ball b{font:800 12px/1 Arial;color:#333;position:relative;z-index:1}.bet-ball small{font-size:7px;color:#999;line-height:1.2;margin-top:1px;position:relative;z-index:1}
.bet-ball:before{content:"";position:absolute;left:4px;right:4px;top:3px;height:8px;border-radius:50%;background:rgba(220,60,65,.12)}
.bet-ball.b:before{background:rgba(61,140,255,.13)}.bet-ball.g:before{background:rgba(32,168,108,.13)}
.bet-ball.r b{color:#c82f37}.bet-ball.b b{color:#2778d2}.bet-ball.g b{color:#118854}
.bet-plus{font-style:normal;font-size:12px;color:#bbb;margin:0 1px}
.bet-sum{margin-left:auto;font-size:10px;color:#999}.bet-sum b{color:var(--red);font:800 15px/1 Arial}
.bet-tabs{margin:8px 10px 0;height:38px;display:flex;gap:0;border-bottom:1px solid #eee}
.bet-tabs button{position:relative;min-width:70px;padding:0 14px;font-size:13px;color:#777}
.bet-tabs button.on{color:var(--red);font-weight:800}
.bet-tabs button.on:after{content:"";position:absolute;left:14px;right:14px;bottom:-1px;height:2px;background:var(--red)}
.bet-layout{display:grid;grid-template-columns:76px minmax(0,1fr);align-items:start;margin-top:1px;background:#fff}
.bet-cats{background:#fafafa;border-right:1px solid #f0f0f0;position:sticky;top:46px;align-self:start}
.bet-cats button{width:100%;min-height:45px;display:flex;align-items:center;gap:4px;padding:0 6px;border-bottom:1px solid #f1f1f1;font-size:11px;color:#777;text-align:left;position:relative}
.bet-cats button span{width:18px;height:18px;border-radius:50%;background:#f1f1f1;color:#999;font-size:9px;display:flex;align-items:center;justify-content:center;flex:none}
.bet-cats button.on{background:#fff;color:var(--red);font-weight:800}
.bet-cats button.on:before{content:"";position:absolute;left:0;top:9px;bottom:9px;width:2px;background:var(--red);border-radius:2px}
.bet-cats button.on span{background:var(--red);color:#fff}
.bet-center{padding:11px 9px 9px;min-width:0}
.bet-content-head{display:flex;align-items:flex-start;justify-content:space-between;gap:6px;margin-bottom:9px}
.bet-content-head h2{margin:0;font-size:17px;color:#222}.bet-content-head p{margin:3px 0 0;font-size:10px;color:#999}
.help-link{width:22px;height:22px;border-radius:50%;border:1px solid #e5e5e5;color:#999;font-size:12px;line-height:20px;text-align:center;flex:none}
.zodiac-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin-bottom:10px}
.bet-zodiac{border:1px solid #eee;border-radius:5px;padding:6px 2px 4px;background:#fff;display:flex;flex-direction:column;align-items:center;gap:2px;min-width:0}
.zcircle{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:radial-gradient(circle at 32% 25%,#ff9a9d,#DC3C41 58%,#a6222a);color:#fff;font-size:14px;font-weight:800;border:1px solid #f3b7b9;box-shadow:inset 0 1px 2px rgba(255,255,255,.45),0 1px 3px rgba(180,30,40,.15)}
.bet-zodiac em{font-style:normal;font-size:9px;color:#999}
.bet-zodiac.on{border-color:var(--red);background:#fff5f5;box-shadow:0 0 0 1px rgba(220,60,65,.14)}
.bet-zodiac.on .zcircle{box-shadow:0 0 0 2px #fff,0 0 0 3px var(--red),inset 0 1px 2px rgba(255,255,255,.45)}
.num-bet-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px}
.bet-num{border-radius:3px;border:1px solid #eee;padding:3px 1px 2px;display:flex;flex-direction:column;align-items:center;gap:1px;min-width:0;background:#fff;transition:box-shadow .28s,transform .28s,border-color .28s}
.bet-num b{font:800 11px/1 Arial;color:#333}.bet-num i{font-style:normal;font-size:7px;color:#aaa;line-height:1}.bet-num em{font-style:normal;font-size:7px;color:#dc3c41;line-height:1.2}
.bet-num.c-r{background:#fff5f5;border-color:#fde2e2}.bet-num.c-b{background:#f2f8ff;border-color:#e0edfd}.bet-num.c-g{background:#f1fbf6;border-color:#ddf3e7}
.bet-num.on{border-color:var(--red);background:#fff0f0;box-shadow:0 0 0 1px var(--red)}
.bet-num:active{transform:scale(.94)}
.bet-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.bet-option{min-height:42px;border:1px solid #eee;border-radius:4px;background:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 9px;font-size:12px;color:#444}
.bet-option em{font-style:normal;font-size:10px;color:var(--red)}
.bet-option.on{border-color:var(--red);background:#fff3f3;color:var(--red);box-shadow:0 0 0 1px rgba(220,60,65,.12)}
.bet-path{padding:20px 10px;background:#fff}
.odds-note{padding:6px 12px 14px;text-align:center;font-size:9px;color:#bbb;background:#fff}
.bet-bar{position:fixed;z-index:45;left:50%;bottom:0;transform:translateX(-50%);width:min(100%,500px);padding:8px 10px calc(8px + env(safe-area-inset-bottom));background:rgba(255,255,255,.97);border-top:1px solid #eee;box-shadow:0 -5px 18px rgba(0,0,0,.07);backdrop-filter:blur(10px)}
.bet-bar-row{display:flex;align-items:center;gap:5px;min-width:0}
.bet-bar-row+.bet-bar-row{margin-top:7px}
.bet-label{font-size:10px;color:#999;flex:none}.amount-chip{height:28px;min-width:31px;padding:0 6px;border-radius:3px;border:1px solid #eee;background:#fafafa;font-size:10px;color:#666;flex:none}
.amount-chip.on{border-color:var(--red);color:var(--red);background:#fff3f3}
#betAmount{height:28px;min-width:0;flex:1;border:1px solid #e5e5e5;border-radius:3px;padding:0 7px;font-size:11px;color:#333;outline:none;background:#fff}
#betAmount:focus{border-color:#f0a5a7}
.bet-selected{font-size:10px;color:#999;flex:1}.bet-selected b{color:var(--red);font-size:13px}
.bet-clear{height:32px;padding:0 9px;color:#999;font-size:11px}
.bet-submit{height:36px;padding:0 19px;border-radius:4px;background:linear-gradient(100deg,#DC3C41,#ef6153);color:#fff;font-size:13px;font-weight:800;box-shadow:0 3px 8px rgba(220,60,65,.2);flex:none}
/* howto */
.howto-nav{display:flex;gap:6px;overflow-x:auto;padding:4px 10px 9px;background:#fff;scrollbar-width:none;border-bottom:1px solid #eee}
.howto-nav::-webkit-scrollbar{display:none}
.howto-nav a{flex:none;min-height:30px;padding:0 10px;border-radius:3px;border:1px solid #eee;background:#fafafa;color:#777;font-size:11px;display:flex;align-items:center}
.howto-nav a.on{background:var(--red);border-color:var(--red);color:#fff}
.howto-list{padding:10px}
.howto-block{padding:12px;background:#fff;border:1px solid #eee;border-radius:var(--radius);margin-bottom:8px;scroll-margin-top:60px;box-shadow:0 1px 2px rgba(0,0,0,.02)}
.howto-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:7px}
.howto-head h2{margin:0;font-size:17px;color:#222}.howto-head span{font-size:9px;color:var(--red);background:#fff2f2;border-radius:3px;padding:3px 5px}
.howto-block p{margin:0 0 6px;font-size:11px;line-height:1.7;color:#777}.howto-block p b{color:#333}
.howto-back{display:inline-block;margin-top:2px;font-size:10px;color:var(--red)}
@media(max-width:360px){.bet-layout{grid-template-columns:70px minmax(0,1fr)}.bet-cats button{font-size:10px;padding-left:4px}.bet-center{padding-left:7px;padding-right:7px}.bet-ball{width:27px;height:33px}.zcircle{width:29px;height:29px}.bet-head h1{font-size:20px}}

/* demo points + local bets */
.points-bar{height:34px;display:flex;align-items:center;gap:6px;padding:0 11px;background:linear-gradient(90deg,#fff8f1,#fff);border-bottom:1px solid #f2e8df;font-size:10px;color:#9b8b7c}
.points-bar:before{content:"";width:5px;height:5px;border-radius:50%;background:var(--red);box-shadow:0 0 6px rgba(220,60,65,.5)}
.points-bar b{font:800 14px/1 Arial,monospace;color:var(--red);font-variant-numeric:tabular-nums}
.points-bar button{margin-left:auto;height:24px;padding:0 8px;border:1px solid #ead9ce;border-radius:3px;background:#fff;color:#a0826f;font-size:9px}
.my-bets{margin:6px 10px 0;padding:10px 11px;background:#fff;border:1px solid #eee;border-radius:var(--radius);box-shadow:0 1px 2px rgba(0,0,0,.03)}
.my-bets-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:5px}
.my-bets-head h2{margin:0;font-size:13px;color:#333}.my-bets-head span{font-size:9px;color:#bbb}
.my-bet{padding:7px 0;border-top:1px solid #f4f4f4}.my-bet-top{display:flex;align-items:center;justify-content:space-between;font-size:10px;color:#777}
.my-bet-top em{font-style:normal;font-size:9px;padding:2px 4px;border-radius:2px}.my-bet-top .pending{color:#b28b43;background:#fff8e8}.my-bet-top .win{color:#16804c;background:#eefaf3}.my-bet-top .lost{color:#999;background:#f6f6f6}
.my-bet-sub{margin-top:3px;font-size:9px;color:#aaa;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.my-bet-empty{padding:9px 0 4px;font-size:10px;color:#aaa}
#betQty{height:28px;min-width:0;flex:1;border:1px solid #e5e5e5;border-radius:3px;padding:0 7px;font-size:11px;color:#333;outline:none;background:#fff}
#betQty:focus{border-color:#f0a5a7}
.bet-selected b{font-variant-numeric:tabular-nums}
.bet-mode .view{padding-bottom:124px}

.howto-points{margin:10px;padding:12px;border-radius:var(--radius);border:1px solid #f1e2d8;background:linear-gradient(100deg,#fff8f1,#fff)}
.howto-points b{font-size:12px;color:#9b5b47}.howto-points p{margin:4px 0 0;font-size:10px;line-height:1.7;color:#8d7a6d}

.points-bar{position:sticky;top:calc(46px + env(safe-area-inset-top));z-index:36;animation:none!important}
.bet-bar{animation:none!important;transform:translateX(-50%)!important}

/* howto entries / oldmo / detail actions */
.notice-help{font-size:10px;color:var(--red);border-left:1px solid #eee;padding:0 7px;margin-right:2px;flex:none;height:25px;display:flex;align-items:center;font-weight:700}
.notice:after{right:51px}
.pending-strip{display:flex;align-items:center;gap:6px;margin:1px 10px 0;min-height:42px;padding:0 52px 0 9px;border:1px solid #eee;border-top:0;border-radius:0 0 var(--radius) var(--radius);background:#fafafa;font-size:10px;color:#999}
.pending-strip b{font-size:11px;color:#666}.pending-strip em{font-style:normal;color:#aaa}.pending-strip strong{margin-left:auto;color:var(--red);font-size:10px;font-weight:700}
.pending-dot{width:5px;height:5px;border-radius:50%;background:#c7c7c7;flex:none}
.detail-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:8px 10px 0}
.action-btn{min-height:44px;border-radius:5px;display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:800;box-shadow:0 2px 6px rgba(0,0,0,.04);transition:transform .28s,filter .28s}
.action-primary{background:linear-gradient(100deg,#DC3C41,#ee6a4f);color:#fff;box-shadow:0 4px 10px rgba(220,60,65,.18)}
.action-ghost{background:#fff;color:var(--red);border:1px solid #f0c9c9}
.action-btn:active{transform:translateY(1px) scale(.99);filter:brightness(.96)}
.view{padding-bottom:96px}
.demo-footer{padding-bottom:calc(70px + env(safe-area-inset-bottom))}
@media(max-width:360px){.notice-help{padding:0 4px}.quick-item{font-size:11px}.detail-actions{grid-template-columns:1fr 1.2fr}}

/* local generic assets from 2024 reference (no external URLs) */
.slide.s1{background-image:url(ref/redbg.png),linear-gradient(120deg,#d32d35,#ee6c43 55%,#f4a33e);background-size:cover,cover;background-position:center}
.slide.s2{background-image:url(ref/bluebg.png),linear-gradient(120deg,#1d5fa8,#3a9bd8 60%,#57c5c2);background-size:cover,cover;background-position:center}
.ball{background-image:url(ref/ball_blue.png),radial-gradient(circle at 32% 23%,#fff 0,rgba(255,255,255,.65) 12%,var(--ball) 48%,var(--ball-dark) 100%);background-size:100% 100%,cover;background-repeat:no-repeat;background-position:center}
.ball.r{background-image:url(ref/ball_red.png),radial-gradient(circle at 32% 23%,#fff 0,rgba(255,255,255,.65) 12%,var(--ball) 48%,var(--ball-dark) 100%)}
.ball.g{background-image:url(ref/ball_green.png),radial-gradient(circle at 32% 23%,#fff 0,rgba(255,255,255,.65) 12%,var(--ball) 48%,var(--ball-dark) 100%)}
.ball.plus{background-image:none}

.points-help{margin-left:auto;font-size:10px;color:var(--red);border-left:1px solid #eee;padding-left:8px;font-weight:700}
.points-bar button{margin-left:0}

/* auth / account */
.user-chip{height:28px;min-width:38px;padding:0 7px;border-radius:999px;border:1px solid rgba(255,255,255,.55);background:rgba(255,255,255,.1);color:#fff;font-size:10px;font-weight:700;white-space:nowrap;max-width:66px;overflow:hidden;text-overflow:ellipsis}
.user-chip[data-auth="user"]{background:rgba(255,255,255,.2)}
.points-guest{font-size:11px;color:#aaa!important;font-family:inherit!important;font-weight:600}
.points-login{font-size:10px;color:var(--red);font-weight:700;margin-left:2px}
.auth-page{padding:18px 14px 20px;background:#fff;min-height:calc(100vh - 46px)}
.auth-mark{width:52px;height:52px;border-radius:15px;background:linear-gradient(145deg,#DC3C41,#ed6a57);display:grid;place-items:center;color:#fff;box-shadow:0 8px 18px rgba(220,60,65,.2);margin:7px 0 14px}
.auth-mark svg{width:34px;height:34px;stroke:currentColor;fill:none}
.auth-title{margin:5px 0 4px;font-size:25px;line-height:1.2;color:#222;font-weight:900}
.auth-sub{margin:0 0 14px;font-size:11px;line-height:1.6;color:#999}
.auth-tabs{display:flex;border-bottom:1px solid #eee;margin-bottom:13px}
.auth-tabs button{position:relative;min-height:40px;padding:0 18px;font-size:14px;color:#777}
.auth-tabs button.on{color:var(--red);font-weight:800}
.auth-tabs button.on:after{content:"";position:absolute;left:16px;right:16px;bottom:-1px;height:2px;background:var(--red)}
.auth-form{display:flex;flex-direction:column;gap:10px}
.auth-form label{font-size:11px;color:#777;display:flex;flex-direction:column;gap:5px}
.auth-form input{height:42px;border:1px solid #e7e7e7;border-radius:5px;padding:0 11px;font-size:13px;color:#333;background:#fafafa;outline:none}
.auth-form input:focus{border-color:#eda3a5;background:#fff;box-shadow:0 0 0 2px rgba(220,60,65,.06)}
.auth-error{min-height:16px;font-size:10px;color:var(--red)}
.auth-submit{height:44px;border-radius:5px;background:linear-gradient(100deg,#DC3C41,#ef6153);color:#fff;font-size:14px;font-weight:800;box-shadow:0 5px 12px rgba(220,60,65,.2);margin-top:2px}
.auth-tip{margin-top:14px;font-size:9px;line-height:1.7;color:#aaa;text-align:center}
.auth-back{display:block;text-align:center;margin-top:14px;font-size:11px;color:var(--red)}
.slide-cta{font-size:14px!important;padding:9px 16px!important;min-height:38px!important}
/* 12 game grid: 3 columns, full-width scroll */
.hot-grid .game-cell{min-height:137px}
@media(max-width:360px){.hot-grid .game-cell{min-height:128px}.user-chip{max-width:54px;font-size:9px;padding:0 5px}}

.bet-cfg{margin:7px 10px 0;padding:6px 9px;background:#fff8ee;border:1px solid #f3dfc3;border-radius:4px;font-size:10px;color:#a06a2a}

/* solid readable lottery balls + larger detail/bet hero balls */
.ball{width:19px;height:19px;background-image:none!important;background-color:#1F6FEB;color:#fff;font-weight:900;text-shadow:0 1px 2px rgba(0,0,0,.45);box-shadow:inset 0 -2px 4px rgba(0,0,0,.18),inset 0 2px 3px rgba(255,255,255,.22),0 1px 2px rgba(0,0,0,.12);border:0}
.ball.r{background-color:#E23A3A!important;background-image:none!important}
.ball.b{background-color:#1F6FEB!important;background-image:none!important}
.ball.g{background-color:#1FA85C!important;background-image:none!important}
.ball.plus{background:transparent!important;box-shadow:none!important;text-shadow:none;color:#999!important}
.detail-balls{margin:10px 0 8px;gap:4px;min-height:48px;display:flex;align-items:center;flex-wrap:nowrap;overflow:visible}
.detail-balls .ball{width:39px;height:39px;font-size:12px;margin:0;border:1px solid rgba(0,0,0,.06)}
.detail-balls .ball.plus{width:9px;height:39px;font-size:12px;color:#999}
.wave-legend i,.wave-dot{width:8px;height:8px}
/* bet page red hero */
.bet-hero{background:radial-gradient(120% 160% at 100% 0,rgba(255,255,255,.13),transparent 50%),linear-gradient(120deg,#d32f3c,#dc3c41 55%,#e35b48);padding:10px 12px 12px;position:relative;overflow:hidden}
.bet-hero:after{content:"";position:absolute;right:-30px;top:-45px;width:170px;height:170px;border-radius:50%;border:14px solid rgba(255,255,255,.055);pointer-events:none}
.bet-head{padding:0;background:transparent;position:relative;z-index:1}
.bet-kicker{color:rgba(255,255,255,.74)}
.bet-head h1{color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.12)}
.bet-period{color:rgba(255,255,255,.72)}.bet-period b{color:#fff}
.bet-clock{color:rgba(255,255,255,.72)}.bet-clock b{color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.25)}
.bet-open{background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.16);border-radius:6px;margin-top:9px;padding:8px 3px 2px 10px;position:relative;z-index:1}
.bet-open-label{color:rgba(255,255,255,.78)}.bet-open-label span{color:#fff}
.bet-open-balls{display:flex;align-items:center;gap:4px;margin:6px 0 7px;flex-wrap:nowrap;min-height:38px;overflow:visible}
.bet-ball{width:35px;height:35px;flex:0 0 35px;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;border:2px solid #fff;background:#1F6FEB;box-shadow:0 2px 5px rgba(0,0,0,.25),inset 0 -2px 4px rgba(0,0,0,.2);overflow:hidden;position:relative}
.bet-ball.r{background:#E23A3A}.bet-ball.b{background:#1F6FEB}.bet-ball.g{background:#1FA85C}
.bet-ball b{font:900 12px/1 Arial;color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.48);position:relative;z-index:1;margin-top:2px}
.bet-ball small{font-size:7px;line-height:1.1;color:rgba(255,255,255,.9);text-shadow:0 1px 1px rgba(0,0,0,.35);margin-top:1px;position:relative;z-index:1}
.bet-ball:before{display:none}
.bet-plus{font-style:normal;color:#fff;font-weight:800;font-size:13px;flex:none;margin:0 1px;text-shadow:0 1px 2px rgba(0,0,0,.3)}
.bet-sum{color:#fff;font-size:10px;white-space:nowrap;margin-left:4px;text-shadow:0 1px 2px rgba(0,0,0,.2)}
.bet-sum b{font-size:12px}

.rt-status{font-size:9px;color:#1FA85C;font-weight:700;white-space:nowrap;margin-left:2px}
.rt-status.degraded{color:#d58125}
.rt-status:before{content:"";display:inline-block;width:5px;height:5px;border-radius:50%;background:currentColor;margin-right:3px;vertical-align:1px}
.err-code{display:block;font-size:9px;color:#aaa;font-weight:400;margin-top:3px}

.bet-ball.r{background:#B51224!important;box-shadow:0 2px 5px rgba(0,0,0,.3),inset 0 -3px 5px rgba(0,0,0,.22),inset 0 2px 2px rgba(255,255,255,.18)}
.bet-ball.r b{text-shadow:0 1px 3px rgba(0,0,0,.55)}

.bet-hint{display:none;margin:0 10px 4px;font-size:10px;line-height:1.4;color:#c62828;font-weight:700}
.bet-hint.show{display:block}
.bet-submit:disabled{background:#c9c9c9!important;color:#fff!important;box-shadow:none!important;cursor:not-allowed}


/* ===== 2231 风格主题覆盖（2026-11-20，可乐需求）===== */
:root{
  --red:#EC2829;--brand-red:#EC2829;--red-dark:#c81f20;
  --bg:#F6F6F6;--bg-page:#F6F6F6;--line:#e9e9e9;
  --radius:0;--radius-card:0;--shadow-card:none;--shadow-float:none;
}
body{background:#F6F6F6;}
.appbar{height:45px !important;background:#EC2829 !important;color:#fff;border-radius:0;}
.appbar .brand,.appbar .app-btn,.appbar .user-chip{color:#fff;}
.bottomtab{height:62px !important;background:#F6F6F6 !important;border-top:1px solid #e6e6e6;}
.bottomtab a,.bottomtab button{color:#666;}
.bottomtab .on,.bottomtab [aria-current]{color:#EC2829 !important;}
.hot-grid{grid-template-columns:repeat(3,minmax(0,1fr)) !important;gap:1px !important;background:#ececec;}
.hot-grid .game-cell{min-height:98px;aspect-ratio:121/98;border-radius:0 !important;background:#fff;box-shadow:none !important;border:0;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:6px 2px;}
.hot-grid .game-cell .game-circle{width:34px;height:34px;border-radius:0;background:#EC2829 !important;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;}
.hot-grid .game-cell .game-name{font-size:12px;color:#333;margin-top:3px;}
.hot-grid .game-cell .game-issue{font-size:10px;color:#999;}
.game-cell.placeholder{opacity:.65;}
.bet-num.c-r{background:#E23A3A !important;color:#fff !important;}
.bet-num.c-b{background:#1F6FEB !important;color:#fff !important;}
.bet-num.c-g{background:#1FA85C !important;color:#fff !important;}
.bet-num b{font-weight:800;}
.bet-num em{color:#fff;opacity:.92;}
.bet-num i{color:#fff;opacity:.85;}
.bet-zcircle,.zcircle{background:#EC2829 !important;color:#fff;}
.bet-submit,.btn-primary,.primary{background:#000 !important;color:#fff !important;border-radius:10.4px !important;}
.auth-card,.auth form .field input,input[type=text],input[type=password],.bet-bar input{background:#fff;border-radius:10.4px;}
.fast-meta{margin:8px 0 0;padding:8px 10px;background:#fff;border:1px solid #eee;border-radius:0;font-size:13px;color:#333;display:flex;gap:10px;align-items:center;}
.fast-meta b{color:#EC2829;}
.bet-clock b,.bet-kicker{color:#EC2829;}


/* ===== Phase F：已选回显 / 赛车 01–10 / 生肖分组 ===== */
.picked-bar{margin:8px 0;padding:10px 12px;background:#fff;border:1px solid #eee;border-radius:0;font-size:13px;color:#333;display:flex;gap:6px;align-items:center;flex-wrap:wrap;}
.picked-bar b{color:#EC2829;font-weight:800;}
.picked-bar [data-picked-list]{max-width:60%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:inline-block;vertical-align:bottom;}
.racing-grid{display:flex;flex-wrap:wrap;gap:10px;padding:10px 0;}
.racing-grid .bet-num{width:44px;height:44px;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;border:0;color:#fff;font-weight:800;}
.racing-grid .bet-num b{font-size:16px;}
.racing-grid .bet-num em{color:#fff;font-size:10px;opacity:.9;}
.racing-grid .bet-num.on{outline:3px solid #EC2829;outline-offset:2px;box-shadow:none;}
.zgroups{display:flex;flex-direction:column;gap:6px;padding:6px 0;}
.zgroup{background:#fff;border:1px solid #f0f0f0;}
.zgroup-h{background:#fff;color:#EC2829;font-weight:800;font-size:13px;padding:6px 10px;border-bottom:1px solid #f4f4f4;}
.zgroup-nums{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:1px;background:#f2f2f2;}
.zgroup-nums .znum{border-radius:0;background:#fff;color:#333;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:6px 0;border:0;}
.zgroup-nums .znum b{font-size:14px;font-weight:800;}
.zgroup-nums .znum em{font-size:9px;color:#EC2829;}
.zgroup-nums .znum.on{background:#EC2829;color:#fff;}
.zgroup-nums .znum.on em{color:#fff;}
.zgroup-nums .znum.on::after{content:"✓";position:absolute;font-size:10px;transform:translate(14px,-10px);}
.zgroup-nums .znum{position:relative;}


/* ===== Phase G：白底投注页 / 18 宫格 / 5 tab ===== */
.hot-grid.hall18{grid-template-columns:repeat(3,minmax(0,1fr)) !important;gap:1px !important;background:#ececec;}
.hot-grid.hall18 .game-cell{min-height:104px;aspect-ratio:auto;border-radius:0 !important;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:8px 2px;}
.hot-grid.hall18 .game-cell .game-circle{width:44px;height:44px;border-radius:50% !important;background:var(--gc,#EC2829) !important;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:18px;}
.hot-grid.hall18 .game-cell .game-name{font-size:12px;color:#333;font-weight:600;line-height:1.2;text-align:center;}
.hot-grid.hall18 .game-cell .game-issue{font-size:10px;color:#EC2829;}
.hot-grid.hall18 .game-cell.soon .game-issue{color:#999;}
.hot-grid.hall18 .game-cell.soon .game-circle{opacity:.55;}
body.bet-mode{background:#F6F6F6 !important;}
body.bet-mode .bet-hero{background:#fff !important;color:#222 !important;border-radius:0;box-shadow:none;}
body.bet-mode .bet-head h1{color:#222 !important;}
body.bet-mode .bet-kicker{color:#EC2829 !important;}
body.bet-mode .bet-period,body.bet-mode .bet-clock{color:#666 !important;}
body.bet-mode .bet-clock b{color:#EC2829 !important;}
body.bet-mode .bet-open{background:#fff !important;border:1px solid #eee;border-radius:0;}
body.bet-mode .bet-open-label{color:#666 !important;}
body.bet-mode .bet-open-balls{color:#333;}
body.bet-mode .bet-tabs{background:#fff;border-radius:0;}
body.bet-mode .bet-tabs button{color:#666;}
body.bet-mode .bet-tabs button.on{color:#EC2829;border-bottom:2px solid #EC2829;}
body.bet-mode .bet-layout{background:#F6F6F6;}
body.bet-mode .bet-cats{background:#fff;}
body.bet-mode .bet-cats button{color:#333;background:#fff;border:0;border-bottom:1px solid #f2f2f2;}
body.bet-mode .bet-cats button.on{background:#fff;color:#EC2829;border-left:3px solid #EC2829;font-weight:800;}
body.bet-mode .bet-center{background:#fff;}
body.bet-mode .odds-note,body.bet-mode .bet-cfg{color:#999;background:#fff;}
body.bet-mode .picked-bar{background:#fff;border-color:#eee;}
body.bet-mode .bet-bar{background:#fff;border-top:1px solid #eee;}
body.bet-mode .bet-bar input,body.bet-mode #betQty{background:#fff;border:1px solid #ddd;border-radius:10.4px;}
body.bet-mode .amount-chip{background:#F6F6F6;border:1px solid #eee;color:#333;border-radius:10.4px;}
body.bet-mode .amount-chip.on{border-color:#EC2829;color:#EC2829;font-weight:800;}
body.bet-mode .bet-submit{background:#000 !important;color:#fff;border-radius:10.4px;}
body.bet-mode .zgroup{background:#fff;border-color:#f2f2f2;}
body.bet-mode .zgroup-nums{background:#f2f2f2;}


/* ===== Phase H：极速赛车（参考图）===== */
.race-head{display:flex;align-items:center;gap:10px;background:#E60012;color:#fff;padding:10px 12px;font-weight:800;}
.race-title{font-size:17px;}
.race-mode{font-size:14px;opacity:.95;}
.race-help{margin-left:auto;font-size:13px;font-weight:600;}
.race-menu{font-size:18px;line-height:1;}
.race-result{display:flex;background:#f4f2ee;border-bottom:1px solid #e5e1d8;padding:8px 10px;gap:8px;}
.rr-left{flex:1;min-width:0;}
.rr-issue{font-size:12px;color:#b00016;font-weight:800;margin-bottom:4px;}
.rr-balls{display:flex;gap:3px;flex-wrap:wrap;}
.race-ball{width:30px;height:30px;border-radius:5px;background:var(--rc,#999);color:#fff;font-weight:800;font-size:14px;display:flex;align-items:center;justify-content:center;box-shadow:inset 0 -2px 3px rgba(0,0,0,.28),inset 0 2px 2px rgba(255,255,255,.35),0 1px 2px rgba(0,0,0,.18);text-shadow:0 1px 1px rgba(0,0,0,.25);}
.rr-zods{display:flex;gap:3px;margin-top:3px;}
.rr-zods i{width:30px;text-align:center;font-style:normal;font-size:11px;color:#666;}
.rr-right{width:108px;border-left:1px solid #ddd;padding-left:8px;text-align:right;font-size:12px;color:#b00016;font-weight:700;}
.rr-right .rr-next i{display:block;font-style:normal;color:#666;font-weight:600;font-size:11px;}
.rr-cd{margin-top:4px;font-size:16px;font-weight:900;color:#e60012;letter-spacing:1px;}
.race-balance{display:flex;align-items:center;gap:10px;padding:8px 10px;border-bottom:1px solid #eee;font-size:13px;color:#333;background:#fff;}
.race-balance b{color:#e60012;}
.rb-robot{margin-left:auto;color:#b00016;font-weight:700;}
.rb-single{display:flex;align-items:center;gap:4px;color:#666;}
.rb-single i{width:12px;height:12px;border-radius:50%;border:2px solid #e60012;display:inline-block;}
.rb-single i.on{background:#e60012;}
.race-layout{display:flex;background:#fff;}
.race-cats{width:76px;border-right:1px solid #eee;background:#fff;}
.race-cat{width:100%;display:flex;align-items:center;gap:5px;padding:14px 6px;font-size:13px;color:#222;background:#fff;border:0;border-bottom:1px solid #f2f2f2;}
.race-cat i{width:7px;height:7px;border-radius:50%;background:#e60012;flex:0 0 auto;}
.race-cat.on{background:#e60012;color:#fff;font-weight:800;}
.race-cat.on i{background:#fff;}
.race-main{flex:1;min-width:0;}
.race-sec-hd{text-align:center;font-size:13px;color:#333;font-weight:700;padding:6px 0;background:#fff8f8;border-bottom:1px solid #f0e0e0;}
.rnum-grid{display:grid;grid-template-columns:1fr 1fr;}
.rnum-cell{display:flex;align-items:center;gap:10px;padding:8px 10px;background:#fff;border-bottom:1px solid #eee;border-right:1px solid #f2f2f2;}
.rnum-cell:nth-child(2n){border-right:0;}
.rnum-sq{width:56px;height:40px;border-radius:4px;background:var(--rc,#999);color:#fff;font-weight:800;font-size:17px;display:flex;align-items:center;justify-content:center;box-shadow:inset 0 -2px 4px rgba(0,0,0,.25),inset 0 2px 2px rgba(255,255,255,.3);}
.rnum-odds{font-style:normal;font-size:17px;color:#222;font-weight:600;}
.rnum-cell.on{background:#fff0f0;}
.rnum-cell.on .rnum-odds{color:#e60012;font-weight:800;}
.race-opts{display:grid;grid-template-columns:1fr 1fr;gap:1px;background:#eee;}
.race-opt{background:#fff;display:flex;justify-content:space-between;padding:14px 12px;border:0;}
.race-placeholder{padding:40px 12px;text-align:center;color:#999;font-size:13px;}
.race-picked{padding:6px 10px;font-size:12px;color:#666;background:#fff;border-top:1px solid #eee;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.race-picked b{color:#e60012;}
.race-chips{display:flex;gap:6px;overflow-x:auto;padding:8px 10px;background:#fff;border-top:1px solid #eee;}
.race-chip{flex:0 0 auto;width:44px;height:44px;border-radius:50%;border:5px dashed var(--cc,#999);background:radial-gradient(circle,#fff 0 55%,#f7f7f7 56%);color:var(--cc,#333);font-size:12px;font-weight:800;box-shadow:inset 0 0 0 2px var(--cc,#999);}
.race-chip.on{background:var(--cc,#999);color:#fff;border-color:#fff;box-shadow:inset 0 0 0 3px #fff;}
.race-amount{display:flex;align-items:center;gap:6px;padding:8px 10px;background:#fff;border-top:1px solid #eee;}
.race-amount label{font-size:13px;color:#333;flex:0 0 auto;}
.race-amount input{flex:1;min-width:0;height:36px;border:1px solid #ccc;border-radius:0;padding:0 8px;font-size:14px;}
.race-quick{background:#FFD400;color:#111;font-weight:800;font-size:12px;padding:6px 8px;border:0;border-radius:4px;line-height:1.2;}
.race-reset{background:#999;color:#fff;font-size:13px;font-weight:700;padding:10px 12px;border:0;border-radius:4px;}
.race-submit{background:#e60012;color:#fff;font-size:15px;font-weight:800;padding:10px 16px;border:0;border-radius:4px;}
.race-foot{background:#000;color:#fff;text-align:center;font-size:14px;padding:10px 0;}
.race-foot b{color:#FFD400;font-weight:800;}


/* Phase H：赛车页隐藏外层框架，只留赛车头部 */
body.race-mode{background:#fff !important;}
body.race-mode .appbar,body.race-mode .bottomtab,body.race-mode .demo-footer,body.race-mode .float-sign{display:none !important;}
body.race-mode .view,body.race-mode main{padding-top:0 !important;}
body.race-mode .back-link{display:block;padding:8px 10px;background:#fff;color:#666;font-size:13px;}

.race-unit{font-size:12px;color:#666;flex:0 0 auto;}

.rr-wait{font-size:13px;color:#999;padding:6px 0;display:inline-block;}


/* ===== Phase K：第1-10名 分区（手风琴）===== */
.rk-list{background:#fff;}
.rk-sec{border-bottom:1px solid #eee;}
.rk-hd{width:100%;display:flex;align-items:center;justify-content:space-between;padding:11px 12px;background:#fff;border:0;font-size:14px;color:#333;font-weight:700;}
.rk-sec.open .rk-hd{background:#fff6f6;color:#e60012;}
.rk-arrow{font-style:normal;font-size:12px;color:#999;}
.rk-body{display:none;background:#fff;}
.rk-sec.open .rk-body{display:block;}
.rk-body .rnum-cell{border-right:1px solid #f2f2f2;}


/* ===== Phase L：对齐 2231 赛车页 ===== */
.race-ball.sm{width:29px;height:29px;font-size:12px;border-radius:4px;}
.rr-balls{flex-wrap:nowrap;gap:2px;}
.race-result{align-items:center;}
.rr-sum{display:flex;gap:8px;flex:0 0 auto;margin:0 4px;text-align:center;}
.rr-sum>div{display:flex;flex-direction:column;gap:1px;}
.rr-sum i{font-style:normal;font-size:10px;color:#999;}
.rr-sum b{font-size:13px;color:#b00016;}
.rr-dragon b{letter-spacing:1px;}
.rr-right{width:92px;}
.rr-cd{font-size:15px;}
/* 名次全展开、2 列紧凑格 */
.rk-list{background:#fff;}
.rk-sec{border-bottom:1px solid #eee;}
.rk-hd{display:block;padding:6px 10px;background:#fff;border-bottom:1px solid #f3dcdc;font-size:13px;color:#333;font-weight:700;}
.rk-sec.open .rk-hd{background:#fff;color:#333;}
.rk-body{display:block;}
.rk-body .rnum-cell{height:55px;padding:4px 8px;border-right:1px solid #f2dcdc;border-bottom:1px solid #f2dcdc;}
.rk-body .rnum-sq{width:30px;height:30px;font-size:13px;border-radius:3px;flex:0 0 auto;}
.rk-body .rnum-odds{font-size:16px;margin-left:8px;}
.rk-body .rnum-grid{grid-template-columns:1fr 1fr;}
/* 左栏：白底 + 红点 + 细红线 */
.race-cat{background:#fff;color:#222;border-left:3px solid transparent;}
.race-cat i{background:#e60012;}
.race-cat.on{background:#fff;color:#111;font-weight:700;border-left:3px solid #e60012;}
.race-cat.on i{background:#e60012;}
/* 选中格整格灰（球色保留） */
.rnum-cell.on{background:#d9d9d9;}
.rnum-cell.on .rnum-odds{color:#555;}
/* 数字键盘 */
.race-keypad{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:#ddd;padding:1px;}
.race-keypad[hidden]{display:none;}
.race-keypad button{background:#fff;border:0;height:52px;font-size:18px;color:#222;}
.race-keypad button:active{background:#f2f2f2;}
/* 停盘遮罩 */
.race-closed{position:fixed;inset:0;background:rgba(255,255,255,.72);z-index:60;display:flex;align-items:center;justify-content:center;}
.race-closed[hidden]{display:none;}
.race-closed>div{background:#fff;border-radius:8px;box-shadow:0 8px 30px rgba(0,0,0,.18);padding:20px 18px;text-align:center;min-width:230px;}
.race-closed b{display:block;font-size:16px;color:#e60012;margin-bottom:6px;}
.race-closed span{font-size:12px;color:#666;}
.race-closed>button{margin-top:12px;background:#e60012;color:#fff;border:0;border-radius:4px;padding:8px 18px;font-size:13px;}


/* Phase L2：开奖条紧凑（球行 + 摘要 + 倒计时） */
.race-result{display:flex;align-items:center;gap:6px;padding:6px 8px;}
.rr-left{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0;}
.rr-issue{font-size:11px;white-space:nowrap;margin:0;}
.rr-balls{gap:2px;flex-wrap:nowrap;}
.rr-balls .race-ball{width:26px;height:26px;font-size:11px;border-radius:4px;}
.rr-sum{display:grid;grid-template-columns:repeat(2,auto);gap:1px 6px;flex:0 0 auto;text-align:left;}
.rr-sum>div{flex-direction:row;align-items:center;gap:3px;}
.rr-sum i{font-size:9px;}
.rr-sum b{font-size:12px;white-space:nowrap;}
.rr-dragon{grid-column:1/-1;}
.rr-right{width:80px;flex:0 0 auto;}
.rr-next{font-size:11px;}
.rr-cd{font-size:14px;}

.reg-zero-banner{display:flex;align-items:center;gap:8px;justify-content:space-between;background:#FFF4E5;border-bottom:1px solid #F5D8A8;color:#8A5A00;font-size:13px;padding:10px 12px;line-height:1.4;}
.reg-zero-banner button{background:#E60012;color:#fff;border:0;border-radius:4px;padding:5px 10px;font-size:12px;flex:0 0 auto;}
.bet-zero{background:#FFF1F1;border-color:#F3C6C6;color:#B00016;}


/* Phase L3：第1-10名 每名次一行 10 格 */
.rk-body .rnum-grid{grid-template-columns:repeat(10,1fr);}
.rank-cell{height:60px;padding:3px 0 2px;flex-direction:column;justify-content:center;align-items:center;gap:2px;border-right:1px solid #f4dede;border-bottom:1px solid #f4dede;}
.rank-cell .rnum-sq{width:28px;height:28px;border-radius:50%;font-size:11px;line-height:1;box-shadow:inset 0 -2px 3px rgba(0,0,0,.25),inset 0 2px 2px rgba(255,255,255,.32);}
.rank-cell .rnum-odds{font-size:9px;margin:0;line-height:1;color:#333;font-weight:600;}
.rank-cell.on{background:#d9d9d9;}
.rank-cell.on .rnum-odds{color:#555;}


/* Phase L4：单行 10 格 & 开奖条不撑宽 */
.race-layout,.race-main{min-width:0;max-width:100%;}
.race-result{overflow:hidden;gap:4px;padding:6px;}
.rr-balls{gap:1px;flex-wrap:nowrap;min-width:0;}
.rr-balls .race-ball{width:22px;height:22px;font-size:9px;border-radius:3px;flex:0 0 auto;}
.rr-sum{max-width:80px;gap:0 4px;}
.rr-sum i{font-size:8px;}
.rr-sum b{font-size:10px;}
.rr-right{width:66px;}
.rr-next{font-size:9px;}
.rr-cd{font-size:12px;}
.rk-body .rnum-grid{grid-template-columns:repeat(10,minmax(0,1fr));width:100%;}
.rank-cell{height:56px;padding:2px 0;gap:1px;min-width:0;}
.rank-cell .rnum-sq{width:26px;height:26px;font-size:10px;}
.rank-cell .rnum-odds{font-size:8px;}


/* Phase L7：摘要移到球下方一行 */
.race-result{display:flex;align-items:center;gap:6px;overflow:hidden;}
.rr-left{display:flex;flex-direction:column;gap:3px;flex:1;min-width:0;}
.rr-sumline{display:flex;align-items:center;gap:4px;font-size:11px;color:#999;}
.rr-sumline .lab{font-size:10px;color:#999;}
.rr-sumline b{font-size:12px;color:#B00016;font-weight:800;}
.rr-sumline em{font-style:normal;color:#ccc;font-size:10px;}
.rr-right{width:78px;flex:0 0 auto;text-align:right;}


/* Phase L8：球下标签行（小方框） */
.rr-tags{display:flex;gap:4px;align-items:center;}
.rr-tags .tag{flex:1;min-width:0;height:24px;display:flex;align-items:center;justify-content:center;border:1px solid #e3e3e3;border-radius:4px;background:#fff;color:#555;font-size:11px;line-height:1;white-space:nowrap;}
.rr-tags .tag:first-child{color:#B00016;font-weight:700;}


/* Phase L9：名次块 2 列×5 行大色块 + 赔率右侧 */
.rk-body .rnum-grid{grid-template-columns:1fr 1fr;}
.rank-cell{height:60px;flex-direction:row;justify-content:flex-start;align-items:center;gap:10px;padding:5px 10px;border-right:1px solid #f2dcdc;border-bottom:1px solid #f2dcdc;background:#fff;}
.rank-cell .rank-block{width:88px;height:56px;border-radius:4px;background:var(--rc,#999);color:#fff;font-weight:800;font-size:18px;display:flex;align-items:center;justify-content:center;flex:0 0 auto;box-shadow:inset 0 -2px 3px rgba(0,0,0,.25),inset 0 2px 2px rgba(255,255,255,.3);}
.rank-cell .rnum-odds{font-size:20px;font-weight:800;color:#111;margin:0;line-height:1;}
.rank-cell.on{background:#d9d9d9;}
.rank-cell.on .rank-block{opacity:.92;}
/* 左栏选中：白底+红字+左红竖条 */
.race-cat.on{background:#fff;color:#e60012;font-weight:800;border-left:3px solid #e60012;}
.race-cat.on i{background:#e60012;}


/* Phase L10：10 列方块 + 生肖行 + 龙虎行 + 右侧竖排摘要 */
.race-result{display:flex;align-items:flex-start;gap:5px;padding:6px 8px;overflow:hidden;}
.rr-left{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px;}
.rr-nums,.rr-zods{display:grid;grid-template-columns:repeat(10,1fr);gap:2px;}
.rr-nums .nbox{height:26px;border-radius:6px;background:var(--rc,#999);color:#fff;font-weight:800;font-size:12px;display:flex;align-items:center;justify-content:center;box-shadow:inset 0 -1px 2px rgba(0,0,0,.18);}
.rr-zods i{font-style:normal;font-size:12px;color:#888;text-align:center;line-height:1.2;}
.rr-dragons{display:grid;grid-template-columns:repeat(10,1fr);gap:2px;}
.rr-dragons .dbox{grid-column:span 2;height:22px;border:1px solid #e3e3e3;border-radius:4px;display:flex;align-items:center;justify-content:center;font-size:12px;color:#555;background:#fff;}
.rr-sum-side{flex:0 0 auto;display:flex;flex-direction:column;gap:2px;font-size:11px;color:#888;padding-top:1px;}
.rr-sum-side b{color:#B00016;font-size:12px;}
.rr-right{width:64px;flex:0 0 auto;text-align:right;}
.rr-next{font-size:9px;line-height:1.25;}
.rr-cd{font-size:12px;}
.rank-cell .rank-block{border-radius:8px;box-shadow:none;}


/* Phase L10b：生肖列对齐修正 */
.rr-zods i{width:auto;min-width:0;font-size:12px;color:#888;text-align:center;font-style:normal;padding:0;}
.rr-sum-side span{white-space:nowrap;}
.rr-sum-side{min-width:54px;}


/* Phase M：两面页（冠亚和 + 第1-10名 各 4 格） */
.ts-sec{border-bottom:1px solid #f0dcdc;background:#fff;}
.ts-hd{text-align:center;font-size:13px;color:#333;font-weight:700;padding:7px 0;background:#fff8f8;border-bottom:1px solid #f2dcdc;}
.ts-grid{display:grid;grid-template-columns:1fr 1fr;}
.ts-opt{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;border-right:1px solid #f2dcdc;border-bottom:1px solid #f2dcdc;background:#fff;font-size:14px;color:#333;}
.ts-opt:nth-child(2n){border-right:0;}
.ts-opt em{font-style:normal;font-size:16px;font-weight:800;color:#111;}
.ts-opt.on{background:#d9d9d9;}
.ts-opt.on em{color:#555;}


/* Phase L11：按参考尺寸收敛（不放大） */
.race-result{display:block;padding:6px 8px;overflow:hidden;}
.rr-top{display:flex;align-items:flex-start;gap:6px;justify-content:space-between;}
.rr-issue{font-size:12px;color:#B00016;font-weight:800;white-space:nowrap;margin:0;flex:1;min-width:0;}
.rr-sum-side{display:flex;gap:6px;flex:0 0 auto;font-size:10px;color:#999;padding-top:1px;white-space:nowrap;}
.rr-sum-side b{font-size:12px;color:#B00016;}
.rr-right{width:64px;flex:0 0 auto;text-align:right;}
.rr-nums{display:grid;grid-template-columns:repeat(10,1fr);gap:2px;margin-top:4px;}
.rr-nums .nbox{height:34px;border-radius:6px;font-size:14px;box-shadow:inset 0 -2px 3px rgba(0,0,0,.22),inset 0 2px 2px rgba(255,255,255,.3),0 1px 1px rgba(0,0,0,.12);}
.rr-zods{display:grid;grid-template-columns:repeat(10,1fr);gap:2px;margin-top:2px;}
.rr-zods i{font-size:11px;color:#888;}
.rr-dragons{display:grid;grid-template-columns:repeat(10,1fr);gap:2px;margin-top:2px;}
.rr-dragons .dbox{height:22px;font-size:11px;}
/* 名次格：宽 60-72、高 48-52、两列居中 */
.rank-cell{height:58px;padding:4px 8px;justify-content:center;gap:8px;}
.rank-cell .rank-block{width:66px;height:50px;font-size:21px;border-radius:8px;box-shadow:inset 0 -2px 3px rgba(0,0,0,.22),inset 0 2px 2px rgba(255,255,255,.28),0 1px 1px rgba(0,0,0,.12);}
.rank-cell .rnum-odds{font-size:17px;}
@media (max-width:360px){.rank-cell .rank-block{width:60px;height:48px;}.rank-cell .rnum-odds{font-size:16px;}}


/* Phase L12：照 2231 浏览器实测 CSS px */
.race-head{height:45.234px;box-sizing:border-box;padding:0;display:flex;align-items:center;gap:10px;}
.race-title{font-size:18.72px;margin-left:10px;}
.race-help{font-size:14.56px;}
.race-mode{font-size:14.56px;}
.race-result{padding:6px 10px;display:block;}
.rr-top{gap:6px;}
.rr-issue{font-size:14.56px;}
.rr-sum-side{font-size:12px;}
.rr-nums{display:grid;grid-template-columns:repeat(10,24.953px);gap:2.078px;margin-top:4px;}
.rr-nums .nbox{width:24.953px;height:24.953px;border-radius:2.08px;font-size:14.56px;box-shadow:none;}
.rr-labels{display:flex;gap:5.188px;margin-top:3.109px;}
.rr-labels .lbox{min-width:25.906px;height:25.906px;box-sizing:border-box;border:1px solid #999;border-radius:5.2px;background:#fff;color:#999;font-size:15.6px;display:flex;align-items:center;justify-content:center;line-height:1;padding:0 2px;white-space:nowrap;}
.rr-labels .lbox.wide{padding:0 5px;}
.rr-zods{display:none !important;}
/* 左栏 */
.race-cats{width:96.797px;flex:0 0 96.797px;}
.race-cat{width:96.797px;height:42.594px;box-sizing:border-box;font-size:16.12px;padding:0 0 0 13.52px;gap:6px;}
.race-cat i{width:8.3125px;height:8.3125px;}
.race-cat.on{background:#EC2829;color:#fff;border-left:0;font-weight:400;}
.race-cat.on i{background:#fff;}
/* 名次区 */
.race-main{width:291.203px;flex:0 0 291.203px;border:0;}
.rk-sec{border-bottom:0;}
.rk-hd{height:34.297px;box-sizing:border-box;font-size:15.6px;padding:0 0 0 10.4px;display:flex;align-items:center;border-bottom:1px solid #EC2829;}
.rk-body .rnum-grid{grid-template-columns:repeat(2,145.594px);gap:0;width:291.203px;}
.rank-cell{width:145.594px;height:55.047px;box-sizing:border-box;padding:10.4px 0 10.4px 31.2px;gap:4.672px;justify-content:flex-start;border-right:0;border-bottom:1px solid #EC2829;background:#fff;}
.rank-cell .rank-block{width:30.156px;height:30.156px;border-radius:2.08px;font-size:20.8px;box-shadow:none;}
.rank-cell .rnum-odds{font-size:16.64px;font-weight:400;color:#000;}
/* 底部 */
.race-chips{padding:0 10.4px;gap:0;}
.race-chip{width:54.078px;height:54.078px;font-size:12.48px;}
.race-amount{height:41.594px;box-sizing:border-box;padding:0 10.4px;gap:4px;}
.race-amount input{height:35.266px;width:90.375px;flex:0 0 90.375px;font-size:16.64px;border-radius:4.16px;padding-left:5.2px;}
.race-quick,.race-reset,.race-submit{height:35.359px;box-sizing:border-box;font-size:14.56px;border-radius:4.16px;padding:0 14.56px;display:flex;align-items:center;}
.race-submit{min-width:62.391px;}
.race-foot{height:45.75px;box-sizing:border-box;font-size:14.56px;padding:0 11.44px;display:flex;align-items:center;justify-content:center;}


/* Phase L13：号码块恢复立体感 + 右侧只留期号/倒计时 + 标签等宽 */
.rr-top{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;}
.rr-issue{flex:1;min-width:0;}
.rr-sum-side{display:none !important;}
.rr-nums .nbox{box-sizing:border-box;border:1px solid rgba(0,0,0,.32);box-shadow:inset 0 2px 2px rgba(255,255,255,.55),inset 0 -3px 4px rgba(0,0,0,.30),0 1px 2px rgba(0,0,0,.20);text-shadow:0 1px 1px rgba(0,0,0,.28);}
.rank-cell .rank-block{box-sizing:border-box;border:1px solid rgba(0,0,0,.32);box-shadow:inset 0 2px 2px rgba(255,255,255,.5),inset 0 -3px 4px rgba(0,0,0,.28),0 1px 2px rgba(0,0,0,.18);text-shadow:0 1px 1px rgba(0,0,0,.25);}
.rr-labels{display:flex;gap:5.188px;width:268.234px;}
.rr-labels .lbox{flex:1 1 0;min-width:0;width:auto;padding:0 1px;font-size:15.6px;}
.rr-labels .lbox.wide{font-size:12px;padding:0 2px;}


/* Phase L13b：和值标签加宽，文字不溢出 */
.rr-labels .lbox.wide{flex:1.6 1 0;font-size:10.5px;padding:0 2px;}


/* Phase L14：压缩头部（三行紧凑，右侧绝对定位） */
.race-result{position:relative;padding:2px 10px 4px;min-height:0;}
.rr-top{display:block;}
.rr-issue{font-size:16px;font-weight:700;line-height:20px;margin:0;color:#B00016;}
.rr-nums{margin-top:2px;}
.rr-labels{margin-top:3px;}
.rr-right{position:absolute;top:2px;right:10px;width:88px;text-align:right;}
.rr-next{font-size:12px;line-height:1.3;}
.rr-next i{font-size:11px;}
.rr-cd{font-size:20px;font-weight:700;line-height:1.15;}
.race-balance{margin-top:3px;padding:8px 10px;}


/* Phase L15：窄屏/字体放大自适应头部 */
.race-result{position:relative;display:flex;align-items:flex-start;gap:0;padding:2px 0 4px 10px;overflow:hidden;}
.race-result::before{content:'';position:absolute;right:92px;top:0;bottom:0;width:1px;background:#e5e5e5;}
.rr-left{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;padding-right:8px;}
.rr-issue{text-align:center;font-size:16px;font-weight:700;line-height:20px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:#B00016;}
.rr-nums{display:flex;gap:2.078px;margin-top:2px;overflow:hidden;}
.rr-nums .nbox{flex:0 0 calc((100% - 18.702px)/10);max-width:24.94px;width:calc((100% - 18.702px)/10);height:auto;aspect-ratio:1;min-width:0;box-sizing:border-box;}
.rr-labels{display:flex;gap:5.188px;margin-top:3px;overflow:hidden;}
.rr-labels .lbox{font-size:clamp(11px,3.2vw,15.6px);min-width:0;overflow:hidden;}
.rr-labels .lbox.wide{flex:1.6 1 0;font-size:clamp(9px,2.6vw,12px);}
.rr-right{flex:0 0 92px;width:92px;min-width:0;text-align:right;padding:0 6px 0 0;overflow:hidden;}
.rr-next{font-size:12px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.rr-next i{font-size:11px;}
.rr-cd{font-size:clamp(16px,5vw,20px);line-height:1.15;white-space:nowrap;overflow:hidden;font-weight:700;}
@media (max-width:340px){.rr-right{flex-basis:80px;width:80px;}.race-result::before{right:80px;}.rr-issue{font-size:14px;}}


/* Phase L15b：窄屏去掉固定总宽 + 名次号码字重 500 */
.race-layout,.race-main{min-width:0;}
.race-main{flex:1 1 auto;width:auto;}
.rk-body .rnum-grid{grid-template-columns:repeat(2,minmax(0,1fr));width:100%;}
.rank-cell{width:auto;min-width:0;}
.rank-cell .rank-block{font-weight:500;}
.rr-left{padding-right:0;}
.rr-nums .nbox{font-weight:700;}


/* Phase L15c：右侧绝对定位 + 号码区按可用宽度收缩 */
.race-result{display:block;position:relative;padding:2px 0 4px 10px;overflow:hidden;}
.rr-left{padding-right:0;}
.rr-right{position:absolute;top:2px;right:10px;width:92px;flex:none;text-align:right;overflow:hidden;}
.rr-issue{text-align:center;width:100%;padding:0;margin:0;}
.rr-nums{display:flex;gap:2.078px;width:calc(100% - 112px);max-width:268.234px;overflow:hidden;}
.rr-nums .nbox{flex:0 0 calc((100% - 18.702px)/10);width:calc((100% - 18.702px)/10);max-width:24.94px;height:auto;aspect-ratio:1;min-width:0;}
.rr-labels{width:calc(100% - 112px);max-width:268.234px;}
@media (max-width:340px){.rr-right{width:80px;}.rr-nums,.rr-labels{width:calc(100% - 100px);}.race-result::before{right:80px;}}


/* Phase L15d：标题整行居中 + 竖线到边 */
.rr-issue{width:100%;margin-left:-5px;text-align:center;}
.race-result::before{bottom:-1px;}


/* Phase L16：等比 rem（390 基准：1rem=16px） + 号码字重 500 */
html{font-size:clamp(13px, calc(100vw / 390 * 16), 17.64px);}
.race-head{height:2.8271rem;padding:0;}
.race-title{font-size:1.17rem;margin-left:0.625rem;}
.race-mode,.race-help{font-size:0.91rem;}
.race-result{padding:0.125rem 0 0.25rem 0.625rem;}
.rr-issue{font-size:1rem;line-height:1.25rem;}
.rr-nums{gap:0.1299rem;width:calc(100% - 7rem);max-width:16.7646rem;}
.rr-nums .nbox{flex:0 0 calc((100% - 9*0.1299rem)/10);width:calc((100% - 9*0.1299rem)/10);max-width:1.5596rem;aspect-ratio:1;border-radius:0.13rem;font-size:0.91rem;font-weight:500;}
.rr-labels{gap:0.3243rem;margin-top:0.1943rem;width:calc(100% - 7rem);max-width:16.7646rem;}
.rr-labels .lbox{height:1.6191rem;border-radius:0.325rem;font-size:0.975rem;}
.rr-labels .lbox.wide{flex:1.6 1 0;font-size:0.656rem;}
.rr-right{width:5.75rem;right:0.625rem;top:0.125rem;}
.rr-next{font-size:0.75rem;}
.rr-next i{font-size:0.6875rem;}
.rr-cd{font-size:clamp(1rem,5vw,1.25rem);}
.race-result::before{right:5.75rem;}
.race-cats{width:6.0498rem;flex:0 0 6.0498rem;}
.race-cat{width:6.0498rem;height:2.6621rem;font-size:1.0075rem;padding-left:0.845rem;gap:0.375rem;}
.race-cat i{width:0.5195rem;height:0.5195rem;}
.rk-hd{height:2.1436rem;font-size:0.975rem;padding-left:0.65rem;}
.rank-cell{height:3.4404rem;padding:0.65rem 0 0.65rem 1.95rem;gap:0.292rem;}
.rank-cell .rank-block{width:1.88475rem;height:1.88475rem;border-radius:0.13rem;font-size:1.3rem;font-weight:500;}
.rank-cell .rnum-odds{font-size:1.04rem;font-weight:500;}
.race-chips{padding:0 0.65rem;}
.race-chip{width:3.3799rem;height:3.3799rem;font-size:0.78rem;}
.race-amount{height:2.5996rem;padding:0 0.65rem;}
.race-amount input{height:2.2041rem;width:5.6484rem;flex:0 0 5.6484rem;font-size:1.04rem;border-radius:0.26rem;padding-left:0.325rem;}
.race-quick,.race-reset,.race-submit{height:2.2099rem;font-size:0.91rem;border-radius:0.26rem;padding:0 0.91rem;}
.race-submit{min-width:3.8994rem;}
.race-foot{height:2.8594rem;font-size:0.91rem;padding:0 0.715rem;}
.race-balance{margin-top:0.1875rem;padding:0.5rem 0.625rem;}
.race-balance{font-size:0.8125rem;}


/* Phase N：冠亚组合 45 格（2 列表格） */
.combo-grid{display:grid;grid-template-columns:1fr 1fr;background:#fff;}
.combo-cell{display:flex;align-items:center;justify-content:space-between;padding:0 0.845rem;height:2.6621rem;background:#fff;border-right:1px solid #f2dcdc;border-bottom:1px solid #f2dcdc;font-size:1.3rem;font-weight:500;color:#333;}
.combo-cell:nth-child(2n){border-right:0;}
.combo-cell .combo-name{font-size:1.3rem;font-weight:500;}
.combo-cell .combo-odds{font-style:normal;font-size:1.04rem;font-weight:500;color:#111;}
.combo-cell.on{background:#d9d9d9;}


/* Phase O：右侧滑出菜单 + 深色主题（最低可读） */
.side-wrap{position:fixed;inset:0;z-index:200;}
.side-mask{position:absolute;inset:0;background:rgba(0,0,0,.45);opacity:0;transition:.2s;pointer-events:none;}
.side-mask.show{opacity:1;pointer-events:auto;}
.side-menu{position:absolute;top:0;right:0;bottom:0;width:220px;background:#fff;transform:translateX(100%);transition:.25s;box-shadow:-4px 0 16px rgba(0,0,0,.15);}
.side-menu.show{transform:none;}
.side-menu-hd{padding:14px 18px;font-size:13px;color:#999;border-bottom:1px solid #f2f2f2;}
.side-item{display:block;width:100%;text-align:left;padding:16px 18px;font-size:16px;color:#333;background:#fff;border:0;border-bottom:1px solid #f2f2f2;}
.side-item:active{background:#f7f7f7;}
body.dark-theme{background:#111;color:#eaeaea;}
body.dark-theme .view,body.dark-theme .race-result,body.dark-theme .race-layout,body.dark-theme .race-main,body.dark-theme .rk-body,body.dark-theme .rank-cell,body.dark-theme .race-cat,body.dark-theme .ts-opt,body.dark-theme .combo-cell,body.dark-theme .race-balance,body.dark-theme .race-amount,body.dark-theme .race-chips,body.dark-theme .race-picked{background:#1b1b1b;color:#eaeaea;}
body.dark-theme .side-menu,body.dark-theme .side-item{background:#1b1b1b;color:#eaeaea;border-color:#333;}
body.dark-theme .rr-issue,body.dark-theme .rank-cell .rnum-odds,body.dark-theme .combo-cell .combo-odds,body.dark-theme .ts-opt em{color:#f0f0f0;}
body.dark-theme .rk-hd{background:#222;color:#eee;border-color:#444;}
body.dark-theme .race-cat.on{background:#EC2829;color:#fff;}
body.dark-theme .side-menu-hd{color:#aaa;border-color:#333;}


/* Phase O2：小助手/☰ 下方白色下拉卡片（210px） */
.drop-wrap{position:fixed;inset:0;z-index:300;}
.drop-backdrop{position:absolute;inset:0;background:transparent;}
.drop-card{position:fixed;width:210px;background:#fff;border-radius:8px;box-shadow:0 8px 24px rgba(0,0,0,.18);overflow:hidden;opacity:0;transform:translateY(-4px);transition:.16s;}
.drop-card.show{opacity:1;transform:none;}
.drop-item{display:block;width:100%;height:44px;line-height:44px;text-align:left;padding:0 16px;font-size:16.12px;color:#333;background:#fff;border:0;border-bottom:1px solid #f0f0f0;}
.drop-item:last-child{border-bottom:0;}
.drop-item:active{background:#f7f7f7;}
body.dark-theme .drop-card,body.dark-theme .drop-item{background:#1f1f1f;color:#eaeaea;border-color:#333;}
body.dark-theme{background:#111 !important;color:#eaeaea !important;}


/* Phase O3：深色主题可读性补强 */
body.dark-theme .race-cats,body.dark-theme .race-cat,body.dark-theme .rk-hd,body.dark-theme .rk-sec,body.dark-theme .rk-body,body.dark-theme .race-result,body.dark-theme .race-balance,body.dark-theme .race-foot,body.dark-theme .race-chips,body.dark-theme .race-amount,body.dark-theme .race-picked{background:#1b1b1b !important;color:#eaeaea !important;border-color:#333 !important;}
body.dark-theme .rk-hd,body.dark-theme .race-cat.on{background:#2a2a2a !important;color:#fff !important;}
body.dark-theme .rank-cell,body.dark-theme .ts-opt,body.dark-theme .combo-cell{background:#222 !important;border-color:#333 !important;}
body.dark-theme .rr-labels .lbox{background:#222 !important;border-color:#555 !important;color:#ccc !important;}
body.dark-theme .race-foot b{color:#FFD400;}


/* Phase P：长龙只读监控 */
.dragon-toolbar{padding:8px 10px;background:#fff8f8;border-bottom:1px solid #f0dcdc;}
.dragon-toolbar select{width:100%;height:36px;border:1px solid #ddd;border-radius:4px;font-size:14px;padding:0 8px;background:#fff;}
.dragon-card{margin:8px 10px;border:1px solid #f0dcdc;border-radius:6px;background:#fff;overflow:hidden;}
.dragon-hd{display:flex;justify-content:space-between;align-items:center;padding:8px 10px;font-size:14px;color:#333;border-bottom:1px solid #f5eeee;}
.dragon-streak{color:#999;font-size:12px;}
.dragon-streak b{color:#e60012;}
.dragon-mid{display:flex;align-items:center;justify-content:space-between;padding:10px;background:#fff;}
.dragon-dir{display:inline-flex;min-width:56px;justify-content:center;padding:6px 12px;border:1px solid #e60012;border-radius:4px;color:#e60012;font-weight:700;font-size:15px;}
.dragon-odds{font-style:normal;font-size:15px;color:#333;}
.dragon-foot{padding:6px 10px;background:#fafafa;color:#999;font-size:11px;}
.dragon-empty{padding:40px 16px;text-align:center;color:#999;font-size:13px;}

.dragon-note{padding:12px 16px;color:#999;font-size:12px;text-align:center;background:#fff;}


/* Phase L17：右栏自适应 + 倒计时完整 + 深色描边 */
.race-result{display:flex;align-items:stretch;position:relative;padding:2px 0 4px 10px;overflow:hidden;}
.race-result::before{content:none;}
.rr-left{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;width:auto;}
.rr-nums{width:100%;max-width:none;}
.rr-labels{width:100%;max-width:none;}
.rr-right{position:static;flex:0 0 auto;width:auto;min-width:0;padding:0 10px 0 6px;border-left:1px solid #e5e5e5;display:flex;flex-direction:column;align-items:flex-end;overflow:visible;}
.rr-next{font-size:clamp(10px,2.8vw,12px);white-space:normal;word-break:break-all;line-height:1.25;}
.rr-next i{font-size:clamp(9px,2.5vw,11px);white-space:normal;}
.rr-cd{font-size:clamp(15px,4.4vw,20px);font-variant-numeric:tabular-nums;white-space:nowrap;overflow:visible;}
body.dark-theme .nbox,body.dark-theme .rank-block{border-color:rgba(255,255,255,.55) !important;box-shadow:inset 0 2px 2px rgba(255,255,255,.5),inset 0 -3px 4px rgba(0,0,0,.4),0 0 0 1px rgba(255,255,255,.18);}


/* Phase L17b：右栏竖线贯穿整个头部 */
.rr-right{border-left:0;position:relative;}
.rr-right::before{content:'';position:absolute;left:0;top:-2px;bottom:-4px;width:1px;background:#e5e5e5;}
body.dark-theme .rr-right::before{background:#444;}

.load-hint{font-size:11px;color:#aaa;margin-top:6px;}
.load-error{color:#e60012;cursor:pointer;}


/* Phase L18：左右两块独立白色卡片（无竖线） */
.race-result{display:flex;gap:8px;align-items:stretch;padding:8px 12px;background:transparent;overflow:hidden;}
.race-result::before{content:none !important;}
.rr-left{flex:1 1 auto;min-width:0;background:#fff;border-radius:8px;padding:8px;box-sizing:border-box;display:flex;flex-direction:column;gap:3px;}
.rr-right{flex:0 0 max-content;width:auto;min-width:0;background:#fff;border-radius:8px;padding:8px;box-sizing:border-box;border-left:0;display:flex;flex-direction:column;align-items:flex-end;justify-content:flex-start;overflow:visible;}
.rr-right::before{content:none !important;}
.rr-issue{text-align:center;width:100%;margin:0;}
.rr-nums{width:100%;max-width:none;display:flex;gap:2.078px;overflow:hidden;}
.rr-nums .nbox{flex:0 0 calc((100% - 18.702px)/10);width:calc((100% - 18.702px)/10);max-width:24.94px;height:auto;aspect-ratio:1;min-width:0;}
.rr-labels{width:100%;max-width:none;}
.rr-next{font-size:clamp(10px,2.8vw,12px);white-space:nowrap;overflow:visible;}
.rr-cd{font-size:clamp(15px,4.4vw,20px);font-variant-numeric:tabular-nums;white-space:nowrap;overflow:visible;}
body.dark-theme .rr-left,body.dark-theme .rr-right{background:#1b1b1b !important;color:#eaeaea !important;}
body.dark-theme .rr-issue{color:#ff8a8a !important;}
body.dark-theme .rr-next{color:#aaa !important;}


/* Phase L18b：卡片可见分隔与间距 */
.race-result{background:#F6F6F6;gap:8px;padding:8px 12px;}
.rr-left{flex:1 1 0;width:auto;min-width:0;background:#fff;border:1px solid #f0f0f0;box-shadow:0 1px 3px rgba(0,0,0,.05);}
.rr-right{flex:0 0 auto;min-width:0;background:#fff;border:1px solid #f0f0f0;box-shadow:0 1px 3px rgba(0,0,0,.05);}
body.dark-theme .race-result{background:#111 !important;}
body.dark-theme .rr-left,body.dark-theme .rr-right{background:#1b1b1b !important;border-color:#333 !important;box-shadow:none !important;}
body.dark-theme .rr-right::before{content:none !important;}


/* Phase L18c：清除残留相对偏移，保证 8px 间距 */
.rr-right{position:static !important;right:auto !important;left:auto !important;top:auto !important;bottom:auto !important;}


/* Phase Q：澳门六合彩特码页（390 实测尺寸，rem 等比） */
.six-head{height:2.827rem;background:#EC2829;color:#fff;display:flex;align-items:center;gap:10px;padding:0 10px;font-size:1.17rem;}
.six-head .race-help{margin-left:auto;}
.six-result{display:flex;align-items:flex-start;padding:.5rem .75rem;background:#FBF9F9;border-bottom:1px solid #EC2829;}
.six-res-left{flex:1;min-width:0;}
.six-result .rr-issue{font-size:.975rem;color:#000;font-weight:400;margin-bottom:.2rem;}
.six-balls{display:flex;gap:.324rem;}
.six-ball{width:1.819rem;height:1.819rem;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;font-weight:700;font-size:.91rem;flex:0 0 auto;}
.six-ball.rb{background:#E23A3A;}
.six-ball.bb{background:#1F6FEB;}
.six-ball.gb{background:#1FA85C;}
.six-zods{display:flex;gap:.324rem;height:1.456rem;align-items:center;}
.six-zods i{width:1.819rem;text-align:center;font-style:normal;font-size:.91rem;color:#888;}
.six-res-right{flex:0 0 auto;text-align:right;padding-left:.5rem;}
.six-layout{display:flex;background:#F6F6F6;}
.six-cats{width:5.237rem;flex:0 0 5.237rem;background:#fff;}
.six-cat{width:5.237rem;height:2.662rem;font-size:1.0075rem;color:#333;background:#fff;border:0;border-bottom:1px solid #f2f2f2;padding-left:.845rem;text-align:left;}
.six-cat.on{background:#EC2829;color:#fff;}
.six-main{flex:1;min-width:0;width:19.013rem;background:#FBF9F9;}
.six-title{height:2.144rem;display:flex;align-items:center;justify-content:center;font-size:.975rem;color:#333;background:#FBF9F9;border-bottom:1px solid #EC2829;}
.six-zodiac-strip{display:flex;overflow-x:auto;overflow-y:hidden;width:100%;background:#fff;border-bottom:1px solid #EC2829;-webkit-overflow-scrolling:touch;scrollbar-width:thin;position:relative;}
.six-ztab{flex:0 0 3.899rem;width:3.899rem;height:2.6rem;font-size:1.43rem;color:#333;background:#fff;border:0;border-right:1px solid #f2f2f2;}
.six-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:0;background:#fff;}
.six-cell{height:3.378rem;display:flex;align-items:center;gap:.292rem;padding-left:.325rem;background:#fff;border:0;border-right:1px solid #EC2829;border-bottom:1px solid #EC2829;min-width:0;}
.six-cell:nth-child(3n){border-right:0;}
.six-cell .six-ball{width:1.949rem;height:1.949rem;font-size:1.17rem;}
.six-odds{font-style:normal;font-size:1.04rem;color:#111;font-weight:400;}
.six-cell.on{background:#d9d9d9;}
.six-placeholder{padding:3rem 1rem;text-align:center;color:#999;font-size:.9rem;}


/* Phase Q2：生肖条筛选态 + 一肖/两面/色波 */
.six-ztab.on{background:#EC2829;color:#fff;}
.six-opts{display:grid;grid-template-columns:repeat(3,1fr);background:#fff;}
.six-opt{display:flex;align-items:center;justify-content:space-between;height:3.378rem;padding:0 .845rem;background:#fff;border:0;border-right:1px solid #EC2829;border-bottom:1px solid #EC2829;font-size:1.1rem;color:#333;}
.six-opt:nth-child(3n){border-right:0;}
.six-opt em{font-style:normal;font-size:1.04rem;color:#111;}
.six-opt.on{background:#d9d9d9;}

.my-bet-top em.ok{color:#1FA85C;font-style:normal;font-size:12px;font-weight:700;}
.my-bet-top em.no{color:#999;font-style:normal;font-size:12px;}


/* Phase L19：深色头部返工（直角/零间距/单线分割/右栏居中） */
.race-result{display:flex;gap:0 !important;padding:0 !important;background:#fff;border-radius:0 !important;box-shadow:none !important;overflow:hidden;border:0 !important;}
.rr-left{flex:1 1 auto;min-width:0;background:transparent !important;border:0 !important;border-radius:0 !important;box-shadow:none !important;padding:0 !important;display:flex;flex-direction:column;gap:0 !important;}
.rr-issue{padding:0.25rem 0;border-bottom:1px solid #e5e5e5;text-align:center;width:100%;margin:0;font-size:0.975rem;color:#B00016;line-height:1.3rem;}
.rr-nums{display:flex !important;gap:0 !important;width:100%;max-width:none !important;margin:0 !important;border-bottom:1px solid #e5e5e5;}
.rr-nums .nbox{flex:1 1 0 !important;width:auto !important;max-width:none !important;height:1.72rem;aspect-ratio:auto;border-radius:0 !important;border:0 !important;border-right:1px solid #e5e5e5 !important;box-shadow:none !important;text-shadow:none !important;font-size:0.95rem;}
.rr-nums .nbox:last-child{border-right:0 !important;}
.rr-labels{display:flex !important;gap:0 !important;width:100% !important;max-width:none !important;margin:0 !important;}
.rr-labels .lbox{flex:1 1 0;min-width:0;height:1.72rem;border-radius:0 !important;border:0 !important;border-right:1px solid #e5e5e5 !important;background:transparent;color:#999;font-size:0.95rem;padding:0 2px;display:flex;align-items:center;justify-content:center;white-space:nowrap;}
.rr-labels .lbox.wide{flex:1.4 1 0;font-size:0.7rem;}
.rr-labels .lbox:last-child{border-right:0 !important;}
.rr-right{flex:0 0 auto !important;width:auto !important;min-width:6.2rem;background:transparent !important;border:0 !important;border-left:1px solid #e5e5e5 !important;border-radius:0 !important;box-shadow:none !important;padding:0 0.6rem 0.5rem 0.6rem !important;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:0.375rem;text-align:center;}
.rr-right .rr-next{font-size:0.75rem;line-height:1.1;white-space:nowrap;color:#999;}
.rr-right .rr-next i{font-size:0.6875rem;}
.rr-right .rr-cd{font-size:1.25rem;line-height:1.2;font-weight:700;white-space:nowrap;font-variant-numeric:tabular-nums;padding-bottom:0.5rem;}
body.dark-theme .race-result,body.dark-theme .rr-left,body.dark-theme .rr-right{background:#1b1b1b !important;color:#eaeaea !important;}
body.dark-theme .rr-issue{color:#eaeaea !important;border-bottom-color:#2a2a2a !important;}
body.dark-theme .rr-nums,body.dark-theme .rr-labels{border-color:#2a2a2a !important;}
body.dark-theme .rr-nums .nbox{border-right-color:#2a2a2a !important;}
body.dark-theme .rr-labels .lbox{border-right-color:#2a2a2a !important;color:#bbb;}
body.dark-theme .rr-right{border-left-color:#2a2a2a !important;}
body.dark-theme .rr-right .rr-next,body.dark-theme .rr-right .rr-cd{color:#eaeaea;}


/* Phase L19b：右栏垂直居中与不裁切 */
.race-result{overflow:visible !important;}
.rr-right{padding:8px 9.6px !important;justify-content:center !important;gap:6px !important;}
.rr-cd{padding-bottom:0 !important;margin:0 !important;}
.rr-right .rr-next{line-height:1.15;}


/* Phase L19c：标签文字紧凑不贴边 */
.rr-labels .lbox{padding:0 3px !important;font-size:0.9rem;letter-spacing:0;}
.rr-labels .lbox.wide{font-size:0.68rem;}


/* Phase L20：六合彩复用赛车头部（直角/零间距/右栏居中） */
.six-result-head{margin:0;}
.six-result-head .rr-issue{font-size:0.95rem;padding:0.2rem 0;}
.six-result-head .rr-nums .nbox{height:1.9rem;font-size:1rem;font-weight:700;color:#fff;display:flex;align-items:center;justify-content:center;border-right:1px solid #e5e5e5 !important;}
.six-result-head .rr-nums .nbox:last-child{border-right:0 !important;}
.six-result-head .rr-nums .nbox.special{box-shadow:inset 2px 0 0 #EC2829;}
.six-result-head .rr-labels .lbox{height:1.55rem;font-size:0.56rem;line-height:1;white-space:nowrap;overflow:hidden;padding:0 1px !important;}
.six-result-head .rr-right{min-width:6.4rem;}
body.dark-theme .six-result-head .rr-nums .nbox{border-right-color:#2a2a2a !important;}


/* Phase L21：审计标记配套 + 六合彩号码圆球 */
.rr-next span{display:block;}
.six-result-head .rr-nums{justify-content:space-between;gap:0 !important;padding:0 0.2rem;border-bottom:1px solid #e5e5e5;}
.six-result-head .rr-nums .nbox{flex:0 0 1.9rem !important;width:1.9rem !important;height:1.9rem;border-radius:50% !important;border-right:0 !important;margin:0;}
body.dark-theme .six-result-head .rr-nums{border-bottom-color:#2a2a2a;}

.win-closed{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:6px 10px;padding:8px 10px;border:1px solid #EC2829;background:#fff5f5;color:#B00016;font-size:.8rem;border-radius:4px;}
.win-closed span{font-variant-numeric:tabular-nums;font-weight:700;}
body.dark-theme .win-closed{background:#2a1212;color:#ffb3b3;border-color:#7a2b2b;}


/* Phase L22：右栏 85% 宽 + 字号 14/13/20 */
.rr-right{flex:0 0 clamp(88px, 23.6vw, 92px) !important;width:auto !important;min-width:0 !important;padding:8px 2px !important;gap:6px !important;justify-content:center !important;}
.rr-right .rr-next{font-size:14px !important;line-height:1.15 !important;white-space:nowrap !important;}
.rr-right .rr-next span[data-audit="time-row"]:first-child{font-size:14px !important;}
.rr-right .rr-next i{font-size:13px !important;line-height:1.15 !important;display:block;font-style:normal;}
.rr-right .rr-cd{font-size:20px !important;font-weight:700 !important;line-height:1.1 !important;white-space:nowrap !important;letter-spacing:-0.4px;padding-bottom:0 !important;}


/* Phase H1：首页三列圆形图标网格 + 顶部 tab */
.home-tabs{display:flex;background:#fff;border-bottom:1px solid #eee;overflow-x:auto;white-space:nowrap;}
.home-tab{flex:1 0 auto;min-width:64px;height:44px;border:0;background:transparent;font-size:15px;color:#111;position:relative;padding:0 10px;}
.home-tab.on{color:#E23A3A;font-weight:700;}
.home-tab.on::after{content:'';position:absolute;left:14px;right:14px;bottom:0;height:2px;background:#E23A3A;border-radius:1px;}
.home-grid{display:grid;grid-template-columns:repeat(3,1fr);background:#fff;border-top:1px solid #eee;}
.home-cell{height:116px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;text-decoration:none;position:relative;border-right:1px solid #eee;border-bottom:1px solid #eee;box-sizing:border-box;min-width:0;}
.home-cell:nth-child(3n){border-right:0;}
.home-icon{width:68px;height:68px;border-radius:50%;background:radial-gradient(circle at 30% 25%,var(--g2,#ccc),var(--g1,#999));display:flex;align-items:center;justify-content:center;position:relative;box-shadow:inset 0 -2px 5px rgba(0,0,0,.12);}
.home-icon b{color:#fff;font-size:22px;font-weight:700;text-shadow:0 1px 2px rgba(0,0,0,.18);}
.home-icon .home-hot{position:absolute;top:-4px;right:-8px;background:#FFD54A;color:#E23A3A;font-size:9px;font-weight:700;font-style:normal;padding:1px 5px;border-radius:8px;line-height:1.35;}
.home-name{font-size:16.5px;color:#111;line-height:1.1;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis;}
.home-cell.soon .home-icon{filter:grayscale(1);opacity:.55;}
.home-cell.soon .home-name{color:#999;}
.home-soon{position:absolute;bottom:8px;font-size:10px;color:#E23A3A;background:#fff2f2;border:1px solid #ffd3d3;border-radius:8px;padding:0 6px;font-style:normal;}
body.dark-theme .home-tabs,body.dark-theme .home-grid{background:#1b1b1b;}
body.dark-theme .home-tab{color:#eaeaea;}
body.dark-theme .home-tab.on{color:#ff6b6b;}
body.dark-theme .home-cell{border-color:#2a2a2a;}
body.dark-theme .home-name{color:#eaeaea;}


/* Phase H2：圆形 logo 图标（不改布局） */
.game-circle,.game-glyph{box-sizing:border-box;}
.game-circle{background:radial-gradient(circle at 32% 26%, rgba(255,255,255,.55), rgba(255,255,255,0) 46%), var(--gc,#E23A3A) !important;box-shadow:inset 0 -3px 6px rgba(0,0,0,.18), 0 1px 2px rgba(0,0,0,.12);border-radius:50%;position:relative;}
.game-glyph{color:#fff;font-weight:700;text-shadow:0 1px 2px rgba(0,0,0,.22);}
.game-hot{position:absolute;top:-4px;right:-8px;background:#FFD54A;color:#E23A3A;font-size:9px;font-weight:700;font-style:normal;padding:1px 5px;border-radius:8px;line-height:1.35;box-shadow:0 1px 2px rgba(0,0,0,.15);}
body.dark-theme .game-hot{background:#FFD54A;color:#B00016;}


/* Phase H3：真 logo 图（44×44 槽位不变） */
.game-logo{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;border-radius:50%;z-index:3;background:transparent;}
.game-circle.has-logo{background:transparent !important;box-shadow:none !important;}
.game-circle.has-logo .game-glyph,.game-circle.has-logo .badge-shine{visibility:hidden;}

.game-new{position:absolute;top:-4px;left:-8px;background:#E23A3A;color:#fff;font-size:9px;font-weight:700;font-style:normal;padding:1px 5px;border-radius:8px;line-height:1.35;z-index:4;}

/* 六合彩尾数 5×2（仅本板块） */
.six-tail-grid{display:grid;grid-template-columns:repeat(5,1fr);background:#fff;}
.six-tail-cell{height:3.378rem;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;background:#fff;border:0;border-right:1px solid #EC2829;border-bottom:1px solid #EC2829;min-width:0;color:#333;}
.six-tail-cell:nth-child(5n){border-right:0;}
.six-tail-cell b{font-size:1.35rem;line-height:1;font-weight:800;}
.six-tail-cell em{font-style:normal;font-size:1.04rem;color:#111;font-weight:400;}
.six-tail-cell small{font-size:.76rem;color:#999;line-height:1.1;}
.six-tail-cell.on{background:#d9d9d9;}

/* P2-2：banner 关闭后保留占位，首排 y 不跳 */
.reg-zero-banner{min-height:47px;box-sizing:border-box;}
.reg-zero-banner.dismissed{visibility:hidden;pointer-events:none;}


/* ==== 2026-11-23 首页/大厅/榜单修复（dev-theme） ==== */
/* P1-1 角标：右上角小标签 18×12，圆角 0 4 0 4，不压名称/不改变卡片坐标；目标 circleOverlap<=15% */
.hot-grid.hall18 .game-hot,
.hot-grid.hall18 .game-new{position:absolute;top:2px;right:2px;left:auto;width:18px;height:12px;padding:0;display:flex;align-items:center;justify-content:center;box-sizing:border-box;border-radius:0 4px 0 4px;font-size:9px;line-height:1;font-style:normal;text-align:center;pointer-events:none;overflow:hidden;z-index:5}
.hot-grid.hall18 .game-new{background:#E23A3A;color:#fff}
.hot-grid.hall18 .game-hot{background:#FFD54A;color:#E23A3A}

/* P1-3 chips 热区 >=44（视觉保持紧凑，仅扩大高度） */
.chip{min-height:44px}

/* P2-4 深色首页/大厅/榜单卡片 */
body.dark-theme .hot-section,
body.dark-theme .hot-head,
body.dark-theme .hot-grid.hall18 .game-cell,
body.dark-theme .rank-list,
body.dark-theme .rank-row,
body.dark-theme .section,
body.dark-theme .card,
body.dark-theme .trend-panel,
body.dark-theme .table-scroll{background:#1b1b1b !important;border-color:#2a2a2a !important;color:#eaeaea !important}
body.dark-theme .hot-grid.hall18{background:#2a2a2a !important;border-color:#2a2a2a !important}
body.dark-theme .hot-title,
body.dark-theme .section-title,
body.dark-theme .page-title,
body.dark-theme .rank-info b,
body.dark-theme .rank-val b,
body.dark-theme .game-name,
body.dark-theme .hist th,
body.dark-theme .trend-head b{color:#eaeaea !important}
body.dark-theme .game-issue,
body.dark-theme .page-sub,
body.dark-theme .mini-note,
body.dark-theme .rank-info span,
body.dark-theme .rank-val span,
body.dark-theme .rank-no,
body.dark-theme .trend-head span{color:#b9b9b9 !important}
body.dark-theme .hot-grid.hall18 .game-cell.soon .game-issue{color:#8a8a8a !important}


/* ==== 投注记录（购彩查询）+ 撤单 · owner: dev-lottery · 2026-11-23 ==== */
.bets-head{padding-bottom:10px}
.bets-stats{margin:8px 10px 0;padding:12px 12px 0;background:#fff;border:1px solid var(--line);box-shadow:0 1px 2px rgba(0,0,0,.03)}
.bets-stats-grid{display:grid;grid-template-columns:repeat(3,1fr)}
.bets-stat{position:relative;text-align:center;padding-bottom:11px}
.bets-stat + .bets-stat:before{content:"";position:absolute;left:0;top:3px;bottom:14px;width:1px;background:#f1f1f1}
.bets-stat span{display:block;font-size:10px;color:#9a9a9a;letter-spacing:.02em;margin-bottom:5px}
.bets-stat b{display:block;font:800 19px/1.15 Arial,Helvetica,sans-serif;color:#222;font-variant-numeric:tabular-nums;letter-spacing:-.3px}
.bets-stat b.pos{color:#1FA85C}
.bets-stat b.neg{color:#EC2829}
.bets-stat b.zero{color:#888}
.bets-filter{display:flex;align-items:center;gap:6px;padding:9px 0 10px;border-top:1px solid #f4f4f4}
.bets-filter button{height:26px;padding:0 11px;border:1px solid #ececec;background:#fafafa;color:#666;font-size:11px;font-family:inherit;line-height:24px;cursor:pointer}
.bets-filter button.on{background:var(--red);border-color:var(--red);color:#fff;font-weight:700}
.bets-count{margin-left:auto;font-size:10px;color:#aaa;white-space:nowrap}
.bets-preview{display:flex;align-items:center;gap:6px;margin:8px 10px 0;padding:7px 10px;border:1px solid #f2dfb4;background:#fffaeb;font-size:10px;color:#8a6a1f;line-height:1.35}
.bets-preview b{flex:none;font-size:10px;color:#7a5a12;border:1px solid #e6c983;background:#fff3d1;padding:1px 5px}
.bets-list{margin:8px 10px 0;display:flex;flex-direction:column;gap:8px}
.bets-item{padding:10px 11px 9px;background:#fff;border:1px solid var(--line);box-shadow:0 1px 2px rgba(0,0,0,.025)}
.bs-top{display:flex;align-items:center;gap:6px;min-height:18px}
.bs-game{display:inline-flex;align-items:center;gap:5px;font-size:11.5px;font-weight:700;color:#333;min-width:0}
.bs-icon{flex:none;width:16px;height:16px;background:var(--gc,#EC2829);color:#fff;font-style:normal;font-size:9px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;border-radius:2px}
.bs-issue{font-size:10.5px;color:#9a9a9a;font-variant-numeric:tabular-nums}
.bs-status{margin-left:auto;flex:none;font-style:normal;font-size:10px;line-height:16px;padding:1px 6px;border-radius:2px}
.bs-status.pending{color:#a5791f;background:#fff7e6;border:1px solid #f3e2bd}
.bs-status.win{color:#1FA85C;background:#f0faf4;border:1px solid #cdebd9}
.bs-status.lose{color:#888;background:#f6f6f6;border:1px solid #ececec}
.bs-status.cancel{color:#8a8a8a;background:#f4f4f4;border:1px solid #e6e6e6}
.bs-picks{display:flex;flex-wrap:wrap;align-items:center;gap:4px 5px;margin-top:7px}
.bs-pick{display:inline-flex;align-items:center;gap:4px;padding:2px 6px;background:#f7f7f8;border:1px solid #f0f0f0;font-size:11px;color:#444;line-height:1.45}
.bs-pick i{font-style:normal}
.bs-pick em{font-style:normal;font-size:9.5px;color:#EC2829;font-weight:700;font-variant-numeric:tabular-nums}
.bs-pick.empty{color:#aaa}
.bs-qty{font-size:9.5px;color:#a5a5a5;margin-left:1px}
.bs-more{height:20px;padding:0 6px;border:1px dashed #ddd;background:#fff;color:#999;font-size:9.5px;font-family:inherit;cursor:pointer}
.bs-money{display:grid;grid-template-columns:repeat(3,1fr);margin-top:8px;padding-top:7px;border-top:1px dashed #f0f0f0}
.bs-money div{display:flex;flex-direction:column;gap:2px;min-width:0}
.bs-money span{font-size:9.5px;color:#a8a8a8}
.bs-money b{font:700 13px/1.2 Arial,Helvetica,sans-serif;color:#333;font-variant-numeric:tabular-nums}
.bs-money b.pos{color:#1FA85C}
.bs-money b.neg{color:#EC2829}
.bs-money b.muted,.bs-money b.max.muted{color:#b5b5b5;font-weight:400}
.bs-money div.al-r{align-items:flex-end;text-align:right}
.bs-foot{display:flex;align-items:center;gap:8px;margin-top:8px;min-height:30px}
.bs-time{font-size:9.5px;color:#b0b0b0;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bs-btn{margin-left:auto;flex:none;height:30px;padding:0 14px;border:1px solid rgba(236,40,41,.5);background:#fff;color:var(--red);font-size:12px;font-weight:700;font-family:inherit;cursor:pointer}
.bs-btn:active{background:#fff2f2}
.bs-btn.off,.bs-btn[disabled]{border-color:#e8e8e8;background:#fafafa;color:#b9b9b9;font-weight:400;cursor:not-allowed}
.bets-empty{margin:10px 10px 0;padding:34px 16px;background:#fff;border:1px solid var(--line);text-align:center}
.bets-empty b{display:block;font-size:13px;color:#555}
.bets-empty span{display:block;margin-top:5px;font-size:10.5px;color:#a5a5a5}
.bets-login{margin:10px;padding:18px 16px;background:#fff;border:1px solid var(--line);text-align:center}
.bets-login b{display:block;font-size:14px;color:#333}
.bets-login span{display:block;margin:6px 0 14px;font-size:11px;color:#999;line-height:1.5}
.bets-login .btn{display:inline-flex;min-width:132px;justify-content:center}
body.cs-open{overflow:hidden}
.cs-mask{position:fixed;inset:0;z-index:120;background:rgba(0,0,0,.45);display:flex;align-items:flex-end;justify-content:center}
.cs-mask[hidden]{display:none}
.cs-card{width:min(100%,500px);background:#fff;border-radius:12px 12px 0 0;padding:18px 16px calc(16px + env(safe-area-inset-bottom));box-shadow:0 -6px 24px rgba(0,0,0,.18);animation:csUp .22s ease}
@keyframes csUp{from{transform:translateY(18px);opacity:.6}to{transform:translateY(0);opacity:1}}
.cs-card h3{margin:0;font-size:17px;color:#222;text-align:center;letter-spacing:.01em}
.cs-bet{margin-top:12px;padding:10px 11px;background:#fafafa;border:1px solid #f0f0f0}
.cs-line{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11.5px;color:#555}
.cs-line b{flex:none;color:var(--red);font-size:11.5px}
.cs-picks{margin-top:6px;font-size:11px;color:#444;line-height:1.55;word-break:break-word}
.cs-mock{margin-top:7px;padding-top:6px;border-top:1px dashed #eee;font-size:9.5px;color:#a07a2a}
.cs-note{margin:11px 0 0;font-size:10.5px;color:#9a9a9a;line-height:1.55}
.cs-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:15px}
.cs-actions button{height:42px;border:0;font-size:14px;font-weight:700;font-family:inherit;cursor:pointer}
.cs-ghost{background:#f4f4f4;color:#555}
.cs-main{background:var(--red);color:#fff}
.cs-main[disabled]{opacity:.6;cursor:default}
body.dark-theme .bets-stats,body.dark-theme .bets-item,body.dark-theme .bets-empty,body.dark-theme .bets-login{background:#1b1b1b !important;border-color:#2a2a2a !important;box-shadow:none !important}
body.dark-theme .bets-stat + .bets-stat:before{background:#2a2a2a}
body.dark-theme .bets-stat b{color:#eaeaea}
body.dark-theme .bets-stat b.pos{color:#4bd18b}
body.dark-theme .bets-stat b.neg{color:#ff7b7b}
body.dark-theme .bets-stat span,body.dark-theme .bets-count{color:#8f8f8f}
body.dark-theme .bets-filter{border-top-color:#2a2a2a}
body.dark-theme .bets-filter button{background:#232323;border-color:#333;color:#bbb}
body.dark-theme .bets-filter button.on{background:var(--red);border-color:var(--red);color:#fff}
body.dark-theme .bets-preview{background:#2b2417;border-color:#4a3d22;color:#d8c08a}
body.dark-theme .bets-preview b{background:#3a2f1c;border-color:#5a4a28;color:#e8cf9a}
body.dark-theme .bs-game{color:#eaeaea}
body.dark-theme .bs-issue,body.dark-theme .bs-time,body.dark-theme .bs-qty{color:#8f8f8f}
body.dark-theme .bs-pick{background:#232323;border-color:#333;color:#ddd}
body.dark-theme .bs-pick em{color:#ff8a8a}
body.dark-theme .bs-more{background:#232323;border-color:#3a3a3a;color:#999}
body.dark-theme .bs-money{border-top-color:#2a2a2a}
body.dark-theme .bs-money span{color:#8f8f8f}
body.dark-theme .bs-money b{color:#eaeaea}
body.dark-theme .bs-money b.pos{color:#4bd18b}
body.dark-theme .bs-money b.neg{color:#ff7b7b}
body.dark-theme .bs-btn{background:#1b1b1b;border-color:#7a2b2b;color:#ff8a8a}
body.dark-theme .bs-btn.off,body.dark-theme .bs-btn[disabled]{background:#1f1f1f;border-color:#333;color:#777}
body.dark-theme .bets-empty b,body.dark-theme .bets-login b{color:#eaeaea}
body.dark-theme .cs-card{background:#1b1b1b;color:#eaeaea}
body.dark-theme .cs-card h3{color:#eaeaea}
body.dark-theme .cs-bet{background:#222;border-color:#333}
body.dark-theme .cs-line,.body.dark-theme .cs-picks{color:#ccc}
body.dark-theme .cs-ghost{background:#2a2a2a;color:#ccc}
@media (max-width:340px){
  .bets-stat b{font-size:17px}
  .bets-filter button{padding:0 8px}
  .bs-btn{padding:0 11px}
}


/* Phase H4：开奖结果下方历史面板 */
.hist-arrow{font-style:normal;font-size:.7rem;color:#999;margin-left:2px;}
.race-history{background:#fff;border-bottom:1px solid #eee;}
.hh-tabs{display:flex;border-bottom:1px solid #eee;}
.hh-tab{flex:1 1 0;height:44px;border:0;background:#fff;color:#111;font-size:.8rem;}
.hh-tab.on{background:#555;color:#fff;}
.hh-row{height:56px;display:flex;align-items:center;padding:0 8px;border-bottom:1px solid #eee;box-sizing:border-box;}
.hh-row.alt{background:#fafafa;}
.hh-issue{width:96px;flex:0 0 96px;text-align:center;font-size:.875rem;font-weight:700;color:#111;white-space:nowrap;}
.hh-cells{flex:1;display:flex;align-items:center;justify-content:space-between;gap:2px;min-width:0;}
.hh-ball{width:28px;height:26px;border-radius:3px;color:#fff;font-size:.75rem;font-weight:700;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;}
.hh-cell{width:28px;height:26px;border:1px solid #ccc;border-radius:3px;background:#fff;color:#111;font-size:.75rem;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;}
.hh-cell.big{color:#E23A3A;border-color:#f0b4b4;}
.hh-sum{font-size:.75rem;color:#B00016;font-weight:700;white-space:nowrap;}
.hh-dragon{font-size:.7rem;color:#333;white-space:nowrap;margin-left:3px;}
.hh-empty{padding:18px 10px;color:#999;font-size:.8rem;text-align:center;}
.hh-more{padding:8px 10px;text-align:right;}
.hh-more a{font-size:.8rem;color:#B00016;text-decoration:none;}
body.dark-theme .race-history{background:#1b1b1b;border-color:#2a2a2a;}
body.dark-theme .hh-tab{background:#1b1b1b;color:#eaeaea;}
body.dark-theme .hh-tab.on{background:#555;color:#fff;}
body.dark-theme .hh-row{border-color:#2a2a2a;}
body.dark-theme .hh-row.alt{background:#222;}
body.dark-theme .hh-issue,body.dark-theme .hh-dragon{color:#eaeaea;}
body.dark-theme .hh-cell{background:#1b1b1b;color:#eaeaea;border-color:#444;}

/* Review: 六合彩正码/正特 3 等分 + 固定行高（仅 .six-* 段） */
.six-main{border-left:1px solid #EC2829;box-sizing:border-box;}
.six-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;width:100%;background:#fff;}
.six-grid .six-cell{width:100%;height:54.047px;min-height:54.047px;max-height:54.047px;display:flex;align-items:center;justify-content:flex-start;gap:4.672px;padding:0 5.2px 0 10.4px;box-sizing:border-box;min-width:0;border-right:1px solid #EC2829;border-bottom:1px solid #EC2829;overflow:hidden;}
.six-grid .six-cell:nth-child(3n){border-right:0;}
.six-grid .six-ball{width:31.188px;height:31.188px;font-size:18.72px;flex:0 0 31.188px;line-height:1;}
.six-grid .six-odds{font-size:16.64px;line-height:1;flex:0 0 auto;}
.six-grid .six-cell.on{background:#d9d9d9;}
@media (max-width:340px){
  .six-grid .six-cell{height:54.047px;min-height:54.047px;max-height:54.047px;gap:3px;padding:0 3px 0 5px;}
  .six-grid .six-ball{width:28px;height:28px;font-size:16px;flex:0 0 28px;}
  .six-grid .six-odds{font-size:14px;}
}

/* 投注页「最近注单」小卡（dev-lottery） */
.my-bets-all{margin-left:auto;font-size:9.5px;color:var(--red);text-decoration:none}
.my-bet-picks{margin-top:3px;font-size:10.5px;color:#555;line-height:1.45;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.my-bet-top em.cancel{color:#8a8a8a;background:#f4f4f4}
.my-bet-empty a{color:var(--red);text-decoration:none}
body.dark-theme .my-bet{border-top-color:#2a2a2a}
body.dark-theme .my-bets{background:#1b1b1b;border-color:#2a2a2a}
body.dark-theme .my-bets-head h2{color:#eaeaea}
body.dark-theme .my-bet-picks{color:#c9c9c9}
body.dark-theme .my-bet-sub{color:#8f8f8f}

/* Review fix: six divider + countdown overflow + strict 5x2 */
.six-layout{width:100%;max-width:100%;overflow:hidden;box-sizing:border-box;}
.six-cats{box-sizing:border-box;border-right:1px solid #EC2829;}
.six-main{box-sizing:border-box;width:calc(100% - 5.237rem);flex:1 1 auto;border-left:0;min-width:0;overflow:hidden;}
.six-result-head .rr-right{width:auto;flex:0 0 clamp(100px,26vw,108px);min-width:0;box-sizing:border-box;}
.six-result-head .rr-cd{font-size:clamp(16px,4.4vw,20px);letter-spacing:-0.6px;white-space:nowrap;}
.six-tail-grid{width:100%;max-width:100%;grid-template-columns:repeat(5,minmax(0,1fr));overflow:hidden;box-sizing:border-box;}
.six-tail-cell{width:100%;min-width:0;box-sizing:border-box;}

/* 深色：记录页头部与状态 pill（本板块内） */
body.dark-theme .bets-head{background:#111}
body.dark-theme .bs-status.pending{background:#332a17;border-color:#5a4a28;color:#e8c07a}
body.dark-theme .bs-status.win{background:#16301f;border-color:#2a5a3a;color:#6fe0a0}
body.dark-theme .bs-status.lose{background:#242424;border-color:#333;color:#aaa}
body.dark-theme .bs-status.cancel{background:#242424;border-color:#333;color:#aaa}

/* 可读性微调 + 记录页隐藏右下角悬浮签到（避免压住撤单/已封盘按钮） */
body:has(#betsBody) .float-sign{display:none}
.bets-count,.bs-time,.bs-qty,.bs-money span{color:#8f8f8f}
body.dark-theme .bets-count,body.dark-theme .bs-time,body.dark-theme .bs-qty{color:#9a9a9a}


/* ==== 2026-11-23 底部导航深色/签到收进底栏（lead feedback） ==== */
.bottomtab{grid-template-columns:repeat(6,minmax(0,1fr)) !important;}
.float-sign{display:flex !important;position:fixed;z-index:51;right:max(0px,calc((100vw - 500px)/2));bottom:3px;width:calc(min(100vw,500px)/6);height:56px;border:0;border-left:1px solid #e6e6e6;border-radius:0;background:#F6F6F6;color:#EC2829;box-shadow:none;padding:0 2px 4px;flex-direction:column;align-items:center;justify-content:center;gap:1px;font-size:10px;font-weight:800;line-height:1.05;letter-spacing:0;}
body.dark-theme .bottomtab{background:#1b1b1b !important;border-top:1px solid #2a2a2a !important;box-shadow:none !important;}
body.dark-theme .bottomtab a{color:#eaeaea !important;}
body.dark-theme .bottomtab a.on,body.dark-theme .bottomtab a[aria-current]{color:#EC2829 !important;}
body.dark-theme .float-sign{background:#1b1b1b !important;color:#eaeaea !important;border-color:#2a2a2a !important;box-shadow:none !important;}
body.dark-theme .demo-footer{background:#1b1b1b !important;color:#8a8a8a !important;border-color:#2a2a2a !important;}

body.dark-theme:has(#betsBody) .cat-tabs{background:#1b1b1b;border-bottom-color:#2a2a2a}
body.dark-theme:has(#betsBody) .cat-tabs a{color:#b9b9b9}
body.dark-theme:has(#betsBody) .cat-tabs a.on{color:#ff8a8a}


/* 底部安全区：footer 承担底栏留白，避免 view 出现大块空白 */
.view{padding-bottom:12px !important;}
.demo-footer{padding-top:12px !important;padding-bottom:calc(16px + 62px + 12px) !important;}

/* 合并修正：六合彩倒计时收进右栏，消除 400 横向溢出 */
.six-result-head .rr-cd{font-size:16px !important;letter-spacing:-0.8px;}


/* Phase L23：赛车名次格一比一参考尺寸 + 内容居中 */
.rk-body .rank-cell,.rank-cell{width:9.099625rem !important;flex:0 0 9.099625rem !important;height:3.4404rem !important;box-sizing:border-box !important;padding:1px 1px 0 2px !important;justify-content:center !important;align-items:center !important;gap:0.292rem !important;}
.rank-cell .rank-block{width:1.88475rem !important;height:1.88475rem !important;font-size:1.3rem !important;}
.rank-cell .rnum-odds{font-size:1.04rem !important;}

/* Lead: 六合彩 16 玩法空态 + 号码格内容居中 + 精确内容区宽度 */
.six-empty{margin:12px 10px;padding:28px 12px;background:#fff;border:1px dashed #EC2829;text-align:center;color:#999;}
.six-empty b{display:block;font-size:16px;color:#333;margin-bottom:6px;}
.six-empty span{font-size:12px;}
.six-main{width:calc(100% - 5.237rem - 2px);flex:0 1 calc(100% - 5.237rem - 2px);margin-left:2px;border-left:0;box-sizing:border-box;}
.six-grid .six-cell{justify-content:center;padding:0 5.2px;}
@media (max-width:340px){
  .six-grid .six-cell{justify-content:center;padding:0 3px;}
}

/* Center group exactly inside border-box cell */
.six-grid .six-cell{justify-content:center;padding:0 4.2px 0 5.2px;}
@media (max-width:340px){.six-grid .six-cell{justify-content:center;padding:0 2.5px 0 3px;}}

/* 投注页隐藏悬浮签到，避免压号码格 */
body.bet-mode .float-sign{display:none !important;}


/* ==== 2026-11-23 深色：公告条 + 分类 tab（home / 未登录 bets） ==== */
body.dark-theme .notice{background:#1b1b1b !important;border-bottom-color:#2a2a2a !important;}
body.dark-theme .notice-track span{color:#eaeaea;}
body.dark-theme .notice-track span em{color:#EC2829;}
body.dark-theme .notice-more{color:#b9b9b9;}
body.dark-theme .notice-ico{background:#EC2829;color:#fff;}
body.dark-theme .cat-tabs{background:#1b1b1b !important;border-bottom-color:#2a2a2a !important;}
body.dark-theme .cat-tabs a{color:#eaeaea;}
body.dark-theme .cat-tabs a.on{color:#EC2829 !important;}
body.dark-theme .cat-tabs a.on:after{background:#EC2829 !important;}


/* ==== 2026-11-23 三页顶部节奏（rank/trend/history） ==== */
.page-head:has(+ .rank-list),
.page-head:has(+ .chips){padding-bottom:10px;}
.rank-list{margin-top:8px;}
.trend-panel{margin-top:8px;}
.table-scroll{margin-top:8px;}



/* ==== 2026-11-23 三页基准对齐（lead 定值） ==== */
.page-head:has(+ .rank-list),
.page-head:has(+ .chips){padding-bottom:10px !important;}
.page-head:has(+ .rank-list) .page-title,
.page-head:has(+ .chips) .page-title{font-size:24px !important;}
.page-head:has(+ .rank-list) .page-sub,
.page-head:has(+ .chips) .page-sub{font-size:13px !important;color:#999 !important;}
.page-head + .chips{margin-top:8px;}

/* rank：顶部8、gap8、行56、字号 */
.rank-list{margin-top:8px !important;padding-top:0 !important;gap:8px !important;}
.rank-row{min-height:56px !important;height:56px !important;box-sizing:border-box;}
.rank-no{font-size:15.6px !important;font-weight:800;color:#aaa;}
.rank-info b{font-size:15.6px !important;line-height:1.15;}
.rank-info span{font-size:12px !important;line-height:1.15;}
.rank-val b{font-size:20.8px !important;font-weight:800;line-height:1.1;}
.rank-val span{font-size:12px !important;}

/* trend：顶部8、面板 padding12、球24.94、行40 */
.trend-panel{margin-top:8px !important;padding:12px !important;}
.trend-panel .num-grid{grid-auto-rows:40px;align-items:center;justify-items:center;}
.trend-panel .num-cell{width:24.94px;height:24.94px;aspect-ratio:auto;border-radius:50%;font-size:10px;}

/* history：顶部8、表头40、行56、期号15.6、球24.94、1px线 */
.table-scroll{margin-top:8px !important;}
.hist th{height:40px;padding:0 6px;vertical-align:middle;}
.hist td{height:56px;padding:0 6px;vertical-align:middle;}
.hist .iss{font-size:15.6px !important;font-weight:800;white-space:nowrap;}
.hist .ball{width:24.94px !important;height:24.94px !important;font-size:9px !important;}
.hist th,.hist td{border-bottom:1px solid #f1f1f1;}

/* 真实 DOM 空态（由 page 函数输出） */
#rank-live .data-empty{min-height:56px;display:flex;align-items:center;justify-content:center;font-size:12px !important;color:#999 !important;}
.hist .empty-state{min-height:120px;justify-content:center;}
.hist .empty-state span{font-size:12px !important;color:#aaa !important;}

/* 深色三页 */
body.dark-theme .page-head{background:#1b1b1b !important;color:#eaeaea !important;}
body.dark-theme .page-sub{color:#b9b9b9 !important;}
body.dark-theme .rank-list{background:#1b1b1b !important;}
body.dark-theme .rank-row{background:#1b1b1b !important;border:1px solid #2a2a2a !important;color:#eaeaea !important;}
body.dark-theme .rank-info b,body.dark-theme .rank-val b{color:#eaeaea !important;}
body.dark-theme .rank-info span,body.dark-theme .rank-val span,body.dark-theme .rank-no{color:#b9b9b9 !important;}
body.dark-theme .trend-panel{background:#1b1b1b !important;border-color:#2a2a2a !important;color:#eaeaea !important;}
body.dark-theme .trend-head b{color:#eaeaea !important;}
body.dark-theme .num-cell{background:#1b1b1b !important;border-color:#2a2a2a !important;color:#eaeaea !important;}
body.dark-theme .num-cell.hot{background:#EC2829 !important;border-color:#EC2829 !important;color:#fff !important;}
body.dark-theme .chips{background:#1b1b1b !important;}
body.dark-theme .chip{background:#1b1b1b !important;border-color:#2a2a2a !important;color:#eaeaea !important;}
body.dark-theme .chip.on{background:#EC2829 !important;border-color:#EC2829 !important;color:#fff !important;}
body.dark-theme .table-scroll,body.dark-theme table.hist{background:#1b1b1b !important;border-color:#2a2a2a !important;color:#eaeaea !important;}
body.dark-theme .hist th,body.dark-theme .hist td{background:#1b1b1b !important;border-color:#2a2a2a !important;color:#eaeaea !important;}

/* 320：表格内部不滚动；隐藏非关键彩种列，保留期号/号码/状态 */
@media(max-width:360px){
  .hist th,.hist td{padding-left:2px;padding-right:2px;}
}
@media(max-width:340px){
  .hist th:nth-child(2),.hist td:nth-child(2){display:none;}
  .hist td:nth-child(2){font-size:10px;padding:0 2px;}
  .hist .ball-row{gap:0;}
  .hist .ball.plus{width:5px;}
  .hist th:last-child,.hist td:last-child{width:40px;max-width:40px;padding:0 2px;text-align:right;overflow:hidden;}
  .hist .status{font-size:7px;letter-spacing:-.25px;}
}

/* 极速快三（fast-k3） */
.k3-head{height:89.6px;background:#EC2829;color:#fff;box-sizing:border-box;overflow:hidden;}
.k3-head-top{height:45.234px;display:flex;align-items:center;padding:0 12px;font-size:15.6px;font-weight:700;box-sizing:border-box;}
.k3-mode{font-size:.78rem;font-weight:400;margin-left:6px;opacity:.9}.k3-help{margin-left:auto;font-size:.78rem;font-weight:400}.k3-menu{font-size:1.2rem;margin-left:10px}
.k3-result{height:44.366px;display:flex;align-items:center;padding:0 10px;gap:8px;border-top:1px solid rgba(255,255,255,.18);box-sizing:border-box;overflow:hidden;}
.k3-res-dice{display:flex;gap:4px;align-items:center;flex:0 0 auto}.k3-sum{font-size:10px;line-height:1.1;flex:0 0 auto}.k3-sum b{display:block;font-size:17px;line-height:1.05}
.k3-tags{display:flex;gap:4px;flex:0 0 auto}.k3-tags i{font-style:normal;width:18px;height:18px;border-radius:50%;background:rgba(255,255,255,.18);display:flex;align-items:center;justify-content:center;font-size:10px}
.k3-next{margin-left:auto;text-align:right;font-size:8px;line-height:1.3;flex:0 0 auto}.k3-next b{display:block;font-size:9px;font-weight:400}.k3-next strong{display:block;font-size:11px;font-weight:700;white-space:nowrap}
.k3-layout{display:flex;align-items:flex-start;width:100%;max-width:100%;background:#FBF9F9;overflow:hidden;}
.k3-cats{width:96.8px;flex:0 0 96.8px;background:#fff;border-right:1px solid #EC2829;box-sizing:border-box;}
.k3-cat{width:100%;height:42.59px;border:0;border-bottom:1px solid #f2f2f2;background:#fff;color:#333;font-size:14.56px;text-align:left;padding-left:8px;white-space:nowrap;box-sizing:border-box;}
.k3-cat.on{background:#EC2829;color:#fff;}
.k3-main{width:calc(100% - 96.8px);flex:0 1 calc(100% - 96.8px);min-width:0;background:#FBF9F9;overflow:hidden;}
.k3-title{height:34.297px;display:flex;align-items:center;justify-content:center;background:#FBF9F9;border-bottom:1px solid #EC2829;font-size:15.6px;box-sizing:border-box;white-space:nowrap;overflow:hidden;}
.k3-title small{font-size:9px;color:#999;margin-left:5px;}
.k3-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:54.047px;background:#fff;width:100%;}
.k3-cell{width:100%;height:54.047px;border:0;border-right:1px solid #EC2829;border-bottom:1px solid #EC2829;background:#fff;display:flex;align-items:center;justify-content:center;gap:4.672px;font-size:16.64px;color:#111;min-width:0;padding:0 4px;box-sizing:border-box;overflow:hidden;}
.k3-cell:nth-child(2n){border-right:0;}
.k3-cell.on{background:#d9d9d9;}
.k3-cell em{font-style:normal;font-size:16.64px;font-weight:400;flex:0 0 auto;}
.k3-cell.k3-any{justify-content:space-between;padding:0 14px;}
.k3-cell.k3-any b{font-size:18.72px;font-weight:800;}
.k3-dice3{display:flex;gap:3px;align-items:center;flex:0 0 auto;}
.k3-die{position:relative;width:31.188px;height:31.188px;flex:0 0 31.188px;border:1px solid #EC2829;border-radius:4px;background:#fff;box-sizing:border-box;display:block;}
.k3-die i{position:absolute;width:5px;height:5px;border-radius:50%;background:#EC2829;transform:translate(-50%,-50%);}
.k3-head .k3-die{width:27px;height:27px;flex:0 0 27px;border-color:#fff;background:rgba(255,255,255,.95);}
.k3-head .k3-die i{background:#EC2829;width:4px;height:4px;}
.k3-sum-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));background:#fff;}
.k3-side-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));background:#fff;border-top:1px solid #EC2829;}
.k3-sum-cell{height:54.047px;border:0;border-right:1px solid #EC2829;border-bottom:1px solid #EC2829;background:#fafafa;color:#bbb;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:14px;padding:0;box-sizing:border-box;}
.k3-sum-cell:nth-child(4n){border-right:0;}
.k3-sum-cell b{font-size:16px;color:#999;font-weight:700;}.k3-sum-cell em{font-style:normal;font-size:9px;color:#bbb;}
.k3-empty{margin:12px 10px;padding:28px 12px;background:#fff;border:1px dashed #EC2829;text-align:center;color:#999;}
.k3-empty b{display:block;font-size:16px;color:#333;margin-bottom:6px}.k3-empty span{font-size:12px}
.k3-note{padding:16px 10px;text-align:center;color:#999;font-size:12px;background:#fff;}
@media (max-width:360px){
  .k3-cats{width:84px;flex-basis:84px}.k3-cat{font-size:13px;padding-left:6px}
  .k3-main{width:calc(100% - 84px);flex-basis:calc(100% - 84px)}
  .k3-cell{height:54.047px;gap:3px;padding:0 3px}.k3-die{width:24px;height:24px;flex-basis:24px}.k3-cell em{font-size:14px}
  .k3-die i{width:4px;height:4px}.k3-cell.k3-any b{font-size:16px}.k3-cell.k3-any em{font-size:14px}
  .k3-head-top{font-size:14px}.k3-next b{font-size:8px}.k3-next strong{font-size:10px}
}

/* Review: 快三内容区不留下孤立空白（保持 54.047 行高，布局高度跟内容走） */
.k3-layout{min-height:0;}
.k3-cats{min-height:0;}
.k3-main{min-height:0;}

/* K3 3D dice: ivory body, inset light/dark, red/blue/black pips */
.k3-res-dice,.k3-dice3{perspective:600px;}
.k3-die{width:31.188px;height:31.188px;flex:0 0 31.188px;border:0;border-radius:12%;background:linear-gradient(145deg,#ffffff 0%,#f2f0ea 60%,#dcd8cf 100%);box-shadow:inset 0 2px 3px #fff,inset 0 -3px 5px rgba(0,0,0,.12),0 2px 4px rgba(0,0,0,.14);transform:rotateX(8deg) rotateY(-6deg);transform-style:preserve-3d;box-sizing:border-box;overflow:visible;}
.k3-die i{position:absolute;width:5px;height:5px;border-radius:50%;transform:translate(-50%,-50%);background:radial-gradient(circle at 34% 28%,#fff 0 7%,var(--pip,#222) 34%,var(--pip-dark,#000) 100%);box-shadow:inset 0 1px 1px rgba(255,255,255,.5),inset 0 -1px 1px rgba(0,0,0,.4);}
.k3-die.d1 i,.k3-die.d4 i{--pip:#e02020;--pip-dark:#7f0b0b;}
.k3-die.d3 i,.k3-die.d6 i{--pip:#1b4fd8;--pip-dark:#0b267a;}
.k3-die.d2 i,.k3-die.d5 i{--pip:#222;--pip-dark:#000;}
.k3-head .k3-die{width:34px;height:34px;flex:0 0 34px;border:0;background:linear-gradient(145deg,#ffffff 0%,#f2f0ea 60%,#dcd8cf 100%);border-radius:12%;box-shadow:inset 0 2px 3px #fff,inset 0 -3px 5px rgba(0,0,0,.12),0 2px 4px rgba(0,0,0,.14);}
.k3-head .k3-die i{width:5px;height:5px;}

@media (max-width:360px){
  .k3-die{width:24px;height:24px;flex-basis:24px;}
  .k3-die i{width:4px;height:4px;}
  .k3-head .k3-die{width:28px;height:28px;flex-basis:28px;}
  .k3-head .k3-die i{width:4px;height:4px;}
}

/* K3 dice: fixed colors independent of theme */
.k3-die{filter:none !important;background-blend-mode:normal;color-scheme:light;}
.k3-die i{filter:none !important;background-blend-mode:normal;}

/* K3 结果条改白底（顶部品牌红条不动） */
.k3-result{background:#fff !important;border-top:0 !important;border-bottom:1px solid #eee !important;color:#333 !important;}
.k3-result .k3-sum b,.k3-result .k3-next b,.k3-result .k3-next strong{color:#333 !important;}
.k3-result .k3-tags i{background:#f7f7f7 !important;color:#333 !important;border:1px solid #eee !important;}
.k3-cd{color:#EC2829 !important;font-style:normal;}
body.dark-theme .k3-result{background:#1b1b1b !important;border-bottom-color:#2a2a2a !important;color:#eaeaea !important;}
body.dark-theme .k3-result .k3-sum b,body.dark-theme .k3-result .k3-next b,body.dark-theme .k3-result .k3-next strong{color:#eaeaea !important;}
body.dark-theme .k3-result .k3-tags i{background:#2a2a2a !important;color:#eaeaea !important;border-color:#333 !important;}
body.dark-theme .k3-cd{color:#ff6b6b !important;}

.k3-head-top{background:#EC2829 !important;}

/* 赛车头部期号：左右同字号，右栏按7位预留 */
.rr-issue{font-size:15.6px !important;font-weight:800 !important;line-height:1.12 !important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;}
.rr-right{width:120px !important;min-width:120px !important;flex:0 0 120px !important;}
.rr-next span{display:block !important;white-space:nowrap !important;font-size:15.6px !important;font-weight:800 !important;line-height:1.12 !important;}
.rr-next i{font-size:11px !important;font-weight:600 !important;}
@media (max-width:360px){.rr-right{width:112px !important;min-width:112px !important;flex-basis:112px !important;}.rr-issue,.rr-next span{font-size:14px !important;}}

.rr-right .rr-next span[data-audit="time-row"]{display:block !important;font-size:15.6px !important;font-weight:800 !important;line-height:1.12 !important;white-space:nowrap !important;}
@media (max-width:360px){.rr-right .rr-next span[data-audit="time-row"]{font-size:14px !important;}}

.rr-right .rr-next span[data-audit="time-row"]:first-child{font-size:15.6px !important;}
@media (max-width:360px){.rr-right .rr-next span[data-audit="time-row"]:first-child{font-size:14px !important;}}

.ball.plus{width:16px !important;height:25px !important;font-size:18px !important;line-height:25px !important;display:inline-flex !important;align-items:center !important;justify-content:center !important;color:#999 !important;background:transparent !important;box-shadow:none !important;}

.six-plus{display:inline-flex;align-items:center;justify-content:center;width:14px;height:25px;color:#999;font-size:18px;line-height:25px;vertical-align:middle;}

/* 平特尾 10 行：左尾号+赔率，右波色球 */
.six-tail-list{background:#fff;}
.six-tail-row{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:54px;padding:0 8px;background:#fff;border:0;border-bottom:1px solid #eee;box-sizing:border-box;color:#333;text-align:left;}
.six-tail-row.on{background:#f1f1f1;}
.six-tail-left{display:flex;align-items:baseline;gap:6px;flex:0 0 auto;}
.six-tail-left b{font-size:18px;font-weight:800;}
.six-tail-left em{font-style:normal;font-size:13px;color:#666;}
.six-tail-balls{display:flex;align-items:center;gap:3px;flex-wrap:nowrap;}
.six-tail-balls .six-ball{width:24px;height:24px;line-height:24px;font-size:10px;}

.race-result,.six-result-head{cursor:pointer;}
.race-history{cursor:default;}

/* 新后端账号 chip：余额 + 邮箱（超长省略，title 给全量） */
.user-chip{display:inline-flex!important;align-items:center;gap:4px;max-width:150px!important;overflow:hidden}
.user-chip .uc-bal{font-weight:800;font-variant-numeric:tabular-nums}
.user-chip .uc-sep{font-style:normal;opacity:.6}
.user-chip .uc-mail{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:96px;font-weight:400;opacity:.92}
@media(max-width:360px){.user-chip{max-width:112px!important}.user-chip .uc-mail{max-width:58px}}
@media(max-width:340px){.user-chip{max-width:100px!important}.user-chip .uc-mail{max-width:46px}}

/* 注册：确认密码不一致时按钮禁用态 */
.auth-submit[disabled]{opacity:.55;pointer-events:none;cursor:not-allowed}

/* 快开历史：10 个号码球一行放得下（390/320 不横向溢出） */
.hh-ball{width:25px;height:25px;font-size:11px}
@media(max-width:360px){
  .hh-issue{width:78px;flex-basis:78px;font-size:12px}
  .hh-ball{width:20px;height:20px;font-size:10px}
  .hh-cells{gap:1px}
}

/* 快三历史展开 */
.k3-history{margin:6px 10px;padding:8px 10px;background:#fff;border:1px solid var(--line);border-radius:var(--radius)}
.k3-hist-hd{font-size:11px;color:#888;margin-bottom:4px}
.k3-hist-row{display:flex;align-items:center;gap:8px;padding:5px 0;border-top:1px solid #f4f4f4;font-size:11px}
.k3-hist-issue{width:92px;flex:none;font-weight:700;color:#333;font-variant-numeric:tabular-nums}
.k3-hist-dice{display:flex;gap:4px}
.k3-hist-dice .k3-die{width:22px;height:22px}
.k3-hist-sum{margin-left:auto;color:#666;font-size:10px;white-space:nowrap}
.k3-hist-sum b{color:var(--red)}
.k3-hist-empty{padding:18px;text-align:center;color:#aaa;font-size:12px}
body.dark-theme .k3-history{background:#1b1b1b;border-color:#2a2a2a}
body.dark-theme .k3-hist-row{border-top-color:#2a2a2a}
body.dark-theme .k3-hist-issue{color:#eaeaea}

/* ==== 新香港六合彩「装修」：与赛车/快三统一版式（2026-11-28） ==== */
.six-head{height:2.8271rem !important;padding:0 12px !important;font-size:1.17rem !important}
.six-result{background:#fff !important;padding:0 !important;border-bottom:1px solid #e5e5e5 !important}
.six-main{background:#fff !important}
/* 结果区 7 球与赛车结果同尺寸 */
.six-rr-nums{gap:0.1299rem !important}
.six-ball{width:1.5596rem !important;height:1.5596rem !important;font-size:.91rem !important;box-sizing:border-box;border:1px solid rgba(0,0,0,.32);box-shadow:inset 0 2px 2px rgba(255,255,255,.55),inset 0 -3px 4px rgba(0,0,0,.30)}
.six-zods{gap:0.1299rem !important;height:1.72rem !important}
.six-zods i{width:1.5596rem !important;font-size:.85rem !important}
/* 左侧玩法栏与赛车同宽/同选中态 */
.six-cats{width:6.0498rem !important;flex:0 0 6.0498rem !important}
.six-cat{width:6.0498rem !important;height:2.6621rem !important;font-size:1.0075rem !important;padding-left:.845rem !important;border-left:3px solid transparent;}
.six-cat.on{background:#fff !important;color:#EC2829 !important;font-weight:800;border-left:3px solid #EC2829;}
/* 玩法标题：左对齐小节头，不再居中大白条 */
.six-title{height:2.4rem !important;justify-content:flex-start !important;text-align:left;padding-left:.8rem;font-weight:800;font-size:1.05rem;color:#222;background:#fff !important;border-bottom:1px solid #f2f2f2 !important;}
/* 号码格/选项：与 rank-cell 同一套细边框 + 方形号码块 */
.six-grid{background:#fff !important}
.six-cell{height:3.44rem !important;padding-left:1rem !important;gap:.6rem !important;justify-content:flex-start !important;border-right:0 !important;border-bottom:1px solid #f4dede !important;}
.six-cell:nth-child(3n){border-right:0 !important}
.six-cell .six-ball{width:1.88475rem !important;height:1.88475rem !important;border-radius:.13rem !important;font-size:1.1rem !important;box-shadow:inset 0 -2px 3px rgba(0,0,0,.22),inset 0 2px 2px rgba(255,255,255,.28)}
.six-opt{height:3.44rem !important;padding:0 1rem !important;border-right:0 !important;border-bottom:1px solid #f4dede !important;}
.six-opt:nth-child(3n){border-right:0 !important}
/* 生肖筛选条：白底红字下划线，与主 tab 一致 */
.six-zodiac-strip{border-bottom:1px solid #f2f2f2 !important;background:#fff !important}
.six-ztab.on{background:#fff !important;color:#EC2829 !important;border-bottom:2px solid #EC2829;font-weight:800;}

/* 快开彩种进入时加载骨架：先占位，API 返回后再渲染真实数据 */
.fast-loading{padding:24px 16px;background:#fff;min-height:320px;}
.fast-loading .fl-title{font-size:15px;font-weight:800;color:#B00016;text-align:center;margin-bottom:14px;}
.fast-loading .fl-balls{display:flex;gap:6px;justify-content:center;flex-wrap:wrap;margin-bottom:18px;}
.fast-loading .fl-ball{width:26px;height:26px;border-radius:3px;background:#eee;display:inline-block;animation:fl-pulse 1s ease-in-out infinite;}
.fast-loading .fl-note{text-align:center;font-size:12px;color:#999;}
@keyframes fl-pulse{0%,100%{opacity:.45}50%{opacity:.9}}

/* 头像：我的页/排行榜 */
.profile-avatar{flex:0 0 auto}
.avatar-btn{padding:0;border:0;background:none;position:relative;display:block;cursor:pointer}
.avatar.lg{width:56px;height:56px;font-size:20px}
.avatar.has-img{padding:0;overflow:hidden;background:#eee}
.avatar.has-img img{width:100%;height:100%;object-fit:cover;display:block}
.avatar-edit{position:absolute;right:-2px;bottom:-2px;width:20px;height:20px;border-radius:50%;background:#EC2829;color:#fff;font-size:11px;display:flex;align-items:center;justify-content:center;border:2px solid #fff;font-style:normal}
.avatar-set{display:flex;align-items:center;gap:10px;padding:12px 16px}
.avatar-set span{font-size:11px;color:#999}
.avatar-msg{padding:0 16px 8px;font-size:12px;color:#1FA85C;min-height:18px}
.avatar-msg.bad{color:#E23A3A}

/* 玩法说明正式页 */
.rules-page{max-width:760px;margin:0 auto;padding:0 16px 48px;background:#fff;color:#222}
.rules-hero{padding:18px 0 10px}
.rules-hero h1{font-size:26px;line-height:1.25;margin:4px 0 6px;font-weight:800}
.rules-hero p{font-size:12px;line-height:1.7;color:#888;margin:0}
.rules-toc{position:sticky;top:0;z-index:5;display:flex;gap:8px;overflow-x:auto;background:#fff;padding:10px 0;border-bottom:1px solid #eee;-webkit-overflow-scrolling:touch}
.rules-toc a{flex:0 0 auto;padding:7px 14px;border-radius:999px;background:#f5f5f5;color:#333;font-size:12px;text-decoration:none}
.rules-toc a:active,.rules-toc a.on{background:#EC2829;color:#fff}
.rules-sec{padding:18px 0 4px;border-bottom:1px solid #f2f2f2}
.rules-sec h2{font-size:18px;margin:0 0 4px;font-weight:800}
.rules-lead{font-size:12px;line-height:1.7;color:#888;margin:0 0 6px}
.rule-item{padding:12px 0;border-bottom:1px solid #f4f4f4}
.rule-item:last-child{border-bottom:0}
.rule-item h3{font-size:15px;margin:0 0 4px;font-weight:800;color:#111}
.rule-item p{font-size:13px;line-height:1.75;margin:3px 0;color:#444}
.rule-item p b{color:#222}
.rule-item .rule-ex{font-size:12px;color:#777;background:#fafafa;border-left:3px solid #EC2829;padding:6px 8px;margin-top:6px}
.rule-faq{padding:10px 0;border-bottom:1px solid #f4f4f4}
.rule-faq h3{font-size:14px;margin:0 0 3px}
.rule-faq p{font-size:13px;line-height:1.75;color:#555;margin:0}
.rules-note{margin:18px 0 12px;padding:12px 14px;background:#f7f7f7;border-radius:4px;font-size:12px;line-height:1.8;color:#555}
.rules-declare{margin:8px 0 0;padding:14px;background:#faf7f7;border:1px solid #f0dede;border-radius:4px;font-size:12px;line-height:1.85;color:#555}
.rules-declare b{display:block;margin-bottom:4px;color:#222}
.rules-declare p{margin:0}
body.dark-theme .rules-page{background:#151515;color:#eaeaea}
body.dark-theme .rules-toc{background:#151515;border-color:#2a2a2a}
body.dark-theme .rules-toc a{background:#242424;color:#ddd}
body.dark-theme .rule-item,body.dark-theme .rules-sec,body.dark-theme .rule-faq{border-color:#2a2a2a}
body.dark-theme .rule-item h3,body.dark-theme .rule-item p b,body.dark-theme .rules-declare b{color:#fff}
body.dark-theme .rule-item p,body.dark-theme .rule-faq p,body.dark-theme .rules-declare p{color:#bbb}
body.dark-theme .rules-note{background:#222;color:#bbb}
body.dark-theme .rules-declare{background:#221c1c;border-color:#3a2a2a;color:#bbb}

/* 玩法说明（参考站样式：红顶栏 + 白底长文） */
.rules-page{max-width:760px;margin:0 auto;padding:0 0 44px !important;background:#fff;color:#111}
.rules-top{position:sticky;top:0;z-index:30;height:50px;background:#EC2829;color:#fff;display:flex;align-items:center;padding:0 12px}
.rules-back{color:#fff;font-size:26px;line-height:1;text-decoration:none;width:36px;text-align:left}
.rules-top h1{flex:1;margin:0;text-align:center;font-size:17px;font-weight:700}
.rules-menu{background:none;border:0;color:#fff;font-size:20px;width:36px;padding:0;text-align:right;cursor:pointer}
.rules-sub{display:flex;align-items:flex-end;justify-content:space-between;padding:18px 16px 10px}
.rules-sub h2{font-size:17px;font-weight:800;margin:0;color:#111}
.rules-sub a{font-size:12px;color:#EC2829;text-decoration:none;white-space:nowrap}
.rules-line{height:1px;background:#e6e6e6;margin:0 16px}
.rules-body{padding:10px 16px 0}
.rules-p{display:flex;gap:8px;font-size:16px;line-height:1.95;color:#111;margin:0 0 18px;text-align:left}
.rules-no{flex:0 0 18px;color:#111}
.rules-p.red,.rules-p.red .rules-no{color:#EC2829}
.rules-more{margin:30px 16px 0;padding:20px 0 0;border-top:1px dashed #e2e2e2;color:#999;font-size:14px;text-align:center}
.rules-declare{margin:22px 16px 0;padding:14px 0 0;border-top:1px solid #eee;font-size:12px;line-height:1.9;color:#777}
.rules-declare p{margin:0}
body.dark-theme .rules-page{background:#151515;color:#eaeaea}
body.dark-theme .rules-top{background:#EC2829}
body.dark-theme .rules-sub h2{color:#fff}
body.dark-theme .rules-p,body.dark-theme .rules-no{color:#eaeaea}
body.dark-theme .rules-p.red,body.dark-theme .rules-p.red .rules-no{color:#ff6b6b}
body.dark-theme .rules-line{border-color:#2a2a2a;background:#2a2a2a}

.rules-mode .appbar{display:none !important}
.rules-page .rules-declare{background:transparent !important;border:0 !important;border-top:1px solid #eee !important;border-radius:0 !important;padding:14px 0 0 !important}

/* 玩法说明：分组目录 + 各彩种玩法条目 */
.rules-page .rules-toc{top:50px;z-index:25;border-bottom:1px solid #eee;padding:9px 0}
.rules-page .rules-toc a{font-size:12px;padding:6px 12px}
.rules-sec2{padding:20px 16px 4px;border-top:1px solid #f0f0f0}
.rules-sec2>h2{font-size:18px;font-weight:800;margin:0 0 4px;color:#111}
.rules-sec2 .rules-lead{font-size:12px;line-height:1.7;color:#888;margin:0 0 8px}
.rule-item2{padding:13px 0;border-bottom:1px solid #f2f2f2}
.rule-item2:last-child{border-bottom:0}
.rule-item2 h3{display:flex;align-items:baseline;justify-content:space-between;gap:8px;font-size:15px;font-weight:800;margin:0 0 5px;color:#111}
.rule-odds{font-size:11px;font-weight:600;color:#EC2829;white-space:nowrap;flex:0 0 auto}
.rule-item2 p{font-size:14px;line-height:1.85;color:#333;margin:3px 0}
.rule-item2 p b{color:#111}
.rule-item2 p .rules-red,.rules-red{color:#EC2829}
.rule-item2 .rule-ex{font-size:13px;color:#777;margin-top:6px;padding-left:8px;border-left:2px solid #f0c4c4}
.rule-faq h3{font-size:14px;font-weight:800;margin:10px 0 3px}
.rule-faq p{font-size:13.5px;line-height:1.85;color:#444;margin:0 0 8px}
body.dark-theme .rule-item2 p,body.dark-theme .rule-faq p{color:#bbb}
body.dark-theme .rule-item2 h3,body.dark-theme .rule-item2 p b{color:#fff}

/* 赔率长文本换行，避免右侧被裁切 */
.rules-page .rule-item2 h3{display:block}
.rules-page .rule-odds{display:block;margin:2px 0 0;white-space:normal;word-break:break-word;text-align:left}

/* 首次进入站点级骨架（无加载文案） */
.boot-skel{padding:12px 0 24px;background:#fff}
.bsk-line{height:14px;background:#eee;border-radius:3px;margin:12px 16px;}
.bsk-line.w40{width:40%}
.bsk-hero{height:150px;margin:12px 16px;border-radius:6px;background:#f0f0f0;}
.bsk-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;padding:12px 16px;}
.bsk-card{height:86px;border:1px solid #f0f0f0;border-radius:6px;padding:10px;box-sizing:border-box;}
.bsk-card i{display:block;width:34px;height:34px;border-radius:50%;background:#eee;margin-bottom:8px;}
.bsk-card b{display:block;height:10px;width:60%;background:#eee;border-radius:2px;margin-bottom:6px;}
.bsk-card em{display:block;height:8px;width:40%;background:#f2f2f2;border-radius:2px;}

/* 盈利榜 */
.rank-tabs{display:flex;gap:8px;padding:12px 16px 4px;background:#fff}
.rank-tabs button{flex:1;height:36px;border:1px solid #eee;border-radius:4px;background:#fff;color:#333;font-size:14px;font-weight:600}
.rank-tabs button.on{background:#EC2829;border-color:#EC2829;color:#fff}
.rank-row.rank-profit{align-items:center;padding:12px 16px;gap:8px}
.rank-profit .rank-info{min-width:0;flex:1}
.rank-profit .rank-info b{display:block;font-size:15px;font-weight:800;color:#111;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rank-profit .rank-info span{display:block;font-size:11px;color:#999;margin-top:2px}
.rank-profit .rank-info em{font-style:normal;color:#555}
.rank-profit .rank-val{flex:0 0 auto;text-align:right;min-width:82px}
.rank-profit .rank-val b{display:block;font-size:16px;font-weight:800;color:#EC2829;line-height:1.2}
.rank-profit .rank-val span{display:block;font-size:10px;color:#999;margin-top:2px}
body.dark-theme .rank-tabs{background:#151515}
body.dark-theme .rank-tabs button{background:#222;border-color:#333;color:#ddd}
body.dark-theme .rank-tabs button.on{background:#EC2829;border-color:#EC2829;color:#fff}
body.dark-theme .rank-profit .rank-info b{color:#fff}
body.dark-theme .rank-profit .rank-info span{color:#999}
