/* Scoped to the five refreshed families. Legacy/快乐8 markup is untouched. */
body:has(.af-page){background:#f3f5f8}
html:not(.mobile-results) #main .mr-view-tabs.af-history-nav{display:flex;align-items:center;gap:0;height:auto;margin:16px 0 0;padding:0 12px;border:1px solid #e0e7ef;background:#fff}
html:not(.mobile-results) #main .mr-view-tabs.af-history-nav>a{display:flex;align-items:center;justify-content:center;padding:14px 28px;border-bottom:3px solid transparent;font-size:15px;color:#60738b}
html:not(.mobile-results) #main .mr-view-tabs.af-history-nav>a.active{color:#247fbb;border-bottom-color:#247fbb}
.af-history-more{padding:8px 12px;background:#fff;border:1px solid #e0e7ef;border-top:0;color:#72859a;font-size:12px}
.af-history-more>summary{cursor:pointer;padding:4px 0}
.af-history-more .detail-tabs{margin:8px 0 0}
.af-page{--sa-ink:#263d56;--sa-muted:#6b7e92;--sa-line:#e0e7ef;--sa-cream:#f5f8fb;--sa-gold:#247fbb;color:#263d56;font:14px/1.55 -apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;max-width:1248px;padding:8px 0 28px}
.af-page *{box-sizing:border-box}
.af-page button,.af-page select,.af-page input{font:inherit;color:inherit}
.af-page button,.af-page summary,.af-page a{cursor:pointer}
.af-page button:disabled{opacity:.4;cursor:default}
.af-page :is(button,a,select,input,summary):focus-visible{outline:2px solid #197fbc;outline-offset:3px}
.af-page [hidden]{display:none!important}
.af-page .af-header{display:flex;align-items:center;justify-content:space-between;gap:20px;background:#fff;padding:22px 24px;border:1px solid #e0e7ef;border-bottom:0}
.af-page .af-brand{display:flex;gap:14px;align-items:center}
.af-page .af-brand>img,.af-page .af-brand>.game-icon{width:48px;height:48px;object-fit:contain}
.af-page .af-brand h1{margin:0 0 5px;font-size:21px;color:#263d56}
.af-page .sa-latest{font-size:12px;color:#718195}
.af-page .af-header label{display:flex;align-items:center;gap:10px;color:#64778c;font-size:13px}
.af-page select,.af-page input[type=date]{min-height:36px;max-width:220px;border:1px solid #d7e1ec;background:#fff;border-radius:4px;padding:6px 10px}
.af-page .af-primary{display:flex;gap:0;height:auto;min-height:0;padding:0 24px;border:1px solid #e0e7ef;background:#fff}
.af-page .af-primary a{padding:14px 28px;border-bottom:3px solid transparent;color:#60738b;font-size:15px;white-space:nowrap}
.af-page .af-primary a.active{border-color:#247fbb;color:#247fbb;font-weight:600}
.af-page .af-panel{margin:12px 0 0;padding:18px 24px 24px;border:1px solid #e0e7ef;background:#fff}
.af-page .af-control-row{display:flex;gap:14px;align-items:flex-start;margin:0 0 12px;min-width:0}
.af-page .af-control-label{flex:0 0 36px;padding-top:8px;font-size:13px;color:#7b899b}
.af-page .af-chips{display:flex;flex-wrap:wrap;align-items:center;gap:6px;min-width:0}
.af-page .af-chips button{display:inline-flex;align-items:center;justify-content:center;padding:7px 14px;min-height:36px;border:1px solid #e1e8f0;border-radius:4px;background:#f7f9fc;color:#52677e;white-space:nowrap;font-size:13px;line-height:20px}
.af-page .af-chips button:hover{border-color:#94c3df;background:#f0f7fc}
.af-page .af-chips button.active{background:#247fbb;border-color:#247fbb;color:#fff}
.af-page .af-check{display:flex;gap:6px;align-items:center;width:max-content;margin:1px 0 10px 50px;font-size:12px;color:#6c7d91}
.af-page .af-check input{width:16px;height:16px;min-height:0;accent-color:#247fbb;margin:0}
.af-page .af-display-options{display:flex;gap:16px;padding-left:50px}.af-page .af-display-options .af-check{margin-left:0}
.af-page .sa-line-chart{background:#fafcff;border-color:#e1e9f2}.af-page .sa-grid{stroke:#e1e9f2}.af-page .sa-line{stroke:#247fbb}.af-page .sa-point{fill:#247fbb}.af-page .sa-line-chart text{fill:#72869d}
.af-page .af-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:10px 0 18px;padding:12px 0;border-top:1px solid #edf1f6;border-bottom:1px solid #edf1f6;font-size:12px}
.af-page .af-toolbar label{display:flex;gap:8px;align-items:center;color:#6c7d91}
.af-page .af-toolbar select{font-size:13px}
.af-page .af-toolbar button,.af-page .af-pager button{min-height:34px;padding:5px 12px;border:1px solid #d7e1ec;background:#fff;border-radius:4px;font-size:12px}
.af-page .af-toolbar button:hover{color:#247fbb;border-color:#94c3df}
.af-page .af-date{position:relative}
.af-page .af-date summary{padding:7px 8px;color:#60758a}
.af-page .af-date label{position:absolute;top:100%;left:0;z-index:5;padding:12px;background:#fff;border:1px solid #d7e1ec;border-radius:4px;box-shadow:0 5px 18px #203c5614}
.af-page .af-date label button[type=submit]{background:#247fbb;color:#fff;border-color:#247fbb}
.af-page [data-sa-status]{margin-left:auto;color:#7b8b9f;font-size:12px}
.af-page .sa-content h3{display:flex;justify-content:space-between;gap:10px;align-items:center;margin:0 0 12px;color:#304a64;font-size:15px;font-weight:600}
.af-page .sa-content h3 small{font-size:12px;color:#7b899b;font-weight:400}
.af-page .sa-table-scroll{max-width:100%;overflow:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
.af-page .sa-table{width:100%;font-size:14px;color:#344e68;border-collapse:collapse}
.af-page .sa-table th{font-size:12px;background:#f0f6fb;color:#526e89;padding:10px 12px;border:1px solid #e1e9f2;white-space:nowrap}
.af-page .sa-table td{font-size:14px;color:#344e68;padding:10px 12px;border:1px solid #e7edf4;white-space:nowrap}
.af-page .sa-table tr:nth-child(even) td{background:#f8fafd}
.af-page .sa-table tr:hover td{background:#eff7fc}
.af-page .sa-table .sa-red,.af-page .sa-red{color:#d33942}
.af-page .sa-table .sa-blue,.af-page .sa-blue{color:#246cb3}
.af-page .sa-table .sa-green,.af-page .sa-green{color:#21844c}
.af-page .sa-table .sa-neutral,.af-page .sa-neutral{color:#8491a0}
.af-page .sa-number{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:50%;background:#e8f3fb;color:#1e6fa6;font-size:14px;font-weight:600;font-variant-numeric:tabular-nums}
.af-page .af-race{border-radius:4px;color:#fff;text-shadow:0 1px 1px #0002}
.af-page .af-race-1{background:#c6a900}.af-page .af-race-2{background:#247cc3}.af-page .af-race-3{background:#41434d}.af-page .af-race-4{background:#ed7b21}.af-page .af-race-5{background:#2a9ca5}.af-page .af-race-6{background:#6554c8}.af-page .af-race-7{background:#8c929c}.af-page .af-race-8{background:#d42b3f}.af-page .af-race-9{background:#7e2942}.af-page .af-race-10{background:#3e922e}
.af-page .af-dice{display:inline-grid;grid-template-columns:repeat(3,5px);grid-template-rows:repeat(3,5px);gap:2px;padding:5px;border:1px solid #dce4ed;border-radius:5px;background:#fff;vertical-align:middle}
.af-page .af-dice i{width:5px;height:5px;border-radius:50%}.af-page .af-dice i.on{background:#d9353f}
.af-page .af-bar-track{display:inline-block;width:180px;height:8px;background:#eaf0f6;border-radius:3px;vertical-align:middle;overflow:hidden}
.af-page .af-bar-track i{display:block;height:100%;background:#3991c7;border-radius:3px}
.af-page .af-details{margin-top:18px;border-top:1px solid #e7edf4;padding-top:10px}
.af-page .af-details summary{color:#607a94;font-size:13px;padding:5px 0 12px}
.af-page .af-attribute{display:inline-flex;align-items:center;justify-content:center;min-width:30px;min-height:28px;border-radius:4px;padding:3px 7px;background:#eef3f8;font-size:13px}
.af-page .af-attribute.sa-red{background:#fff0f1}.af-page .af-attribute.sa-blue{background:#eaf4ff}.af-page .af-attribute.sa-green{background:#eaf8ee}
.af-page .af-compare-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
.af-page .af-compare-grid>section{min-width:0}
.af-page .sa-road-panel{padding:0;border:0;min-width:0}
.af-page .sa-road-scroll{overflow:auto;max-width:100%;padding:0;background:#fff;border:1px solid #dfe7ef;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
.af-page .sa-road{border-collapse:collapse}
.af-page .sa-road td{width:34px;min-width:34px;height:34px;padding:2px;border:1px solid #e7edf4;text-align:center}
.af-page .sa-bead{display:inline-flex;align-items:center;justify-content:center;min-width:27px;min-height:27px;line-height:19px;padding:2px;border:1px solid currentColor;border-radius:50%;background:#fff;font-size:12px}
.af-page .af-point-detail{min-height:29px;padding:6px 0 0;font-size:11px;color:#8191a4}
.af-page .af-trend-meta{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:12px;font-size:12px;color:#6f8398}
.af-page .af-trend-meta strong{font-size:14px;color:#304a64;font-weight:600}
.af-page .af-trend-table th,.af-page .af-trend-table td{padding:6px 3px;min-width:37px}
.af-page .af-trend-table :is(th,td):first-child{position:sticky;left:0;z-index:1;min-width:116px;background:#f3f7fb;color:#435f7b;border-right:2px solid #d8e4f0;padding:6px 8px;font-size:12px}
.af-page .af-trend-table th:first-child{background:#e9f2fa}
.af-page .sa-dot{color:#c7d3df}
.af-page .af-pager{display:flex;justify-content:center;align-items:center;gap:16px;margin:16px 0;color:#70869a;font-size:12px}
.af-page .af-more{padding:12px 4px;color:#72859a;font-size:12px}
.af-page .af-more a{display:inline-block;padding:12px 18px 0 0;color:#5680a1}
.af-page .sa-empty{color:#8192a4;padding:34px 16px}
.mobile-results #mr-analysis .af-page .af-header,.mobile-results #mr-analysis .af-page .af-primary{display:none}
.mobile-results #mr-analysis .af-page .af-panel{border:0;margin:0;padding:14px 12px;min-width:0}
.mobile-results #mr-analysis .af-page .af-control-row{display:block;margin-bottom:12px}
.mobile-results #mr-analysis .af-page .af-control-label{display:none}
.mobile-results #mr-analysis .af-page .af-chips{flex-wrap:nowrap;overflow-x:auto;gap:6px;scrollbar-width:none;overscroll-behavior-x:contain;padding:1px 0 3px}
.mobile-results #mr-analysis .af-page .af-chips button{flex:none;font-size:13px;min-height:36px;padding:7px 12px}
.mobile-results #mr-analysis .af-page .af-check{margin:0 0 10px;font-size:12px}
.mobile-results #mr-analysis .af-page .af-display-options{padding-left:0}
.mobile-results #mr-analysis .af-page .af-check input{min-height:0;width:16px;height:16px}
.mobile-results #mr-analysis .af-page .af-toolbar{gap:8px;margin:8px 0 16px;padding:10px 0}
.mobile-results #mr-analysis .af-page .af-toolbar input,.mobile-results #mr-analysis .af-page .af-toolbar select{font-size:16px;min-height:36px;max-width:160px}
.mobile-results #mr-analysis .af-page .af-toolbar label{font-size:12px}
.mobile-results #mr-analysis .af-page .af-toolbar button{min-height:36px;font-size:12px;padding:5px 10px}
.mobile-results #mr-analysis .af-page .af-date label{left:-125px;padding:10px;gap:6px}
.mobile-results #mr-analysis .af-page [data-sa-status]{flex-basis:100%;margin-left:0;font-size:12px}
.mobile-results #mr-analysis .af-page .sa-content h3{margin:0 0 10px;font-size:14px;flex-wrap:wrap;gap:4px}
.mobile-results #mr-analysis .af-page .sa-content h3 small{font-size:11px}
.mobile-results #mr-analysis .af-page .af-compare-grid{grid-template-columns:minmax(0,1fr);gap:20px}
.mobile-results #mr-analysis .af-page .sa-road-panel{padding:0;margin:0}
.mobile-results #mr-analysis .af-page .sa-bead{min-height:27px;font-size:12px}
.mobile-results #mr-analysis .af-page .sa-table th{font-size:12px;padding:9px 6px}
.mobile-results #mr-analysis .af-page .sa-table td{font-size:14px;padding:9px 6px}
.mobile-results #mr-analysis .af-page .af-bar-track{width:74px}
.mobile-results #mr-analysis .af-page .af-trend-table td,.mobile-results #mr-analysis .af-page .af-trend-table th{padding:6px 3px;min-width:35px}
.mobile-results #mr-analysis .af-page .af-trend-table :is(th,td):first-child{min-width:102px;font-size:11px;padding:6px}
.mobile-results #mr-analysis .af-page .af-more{padding:5px 12px 18px}
@media(max-width:760px){.af-page .af-header{padding:16px}.af-page .af-primary{padding:0}.af-page .af-primary a{padding:12px 14px}.af-page .af-panel{padding:16px 12px}.af-page .af-compare-grid{grid-template-columns:minmax(0,1fr)}}
