:root{--red:#c72539;--red-dark:#9f1629;--ink:#17171c;--muted:#777982;--line:#ece8e5;--paper:#fff;--soft:#f7f5f3;--gold:#c79148;--shadow:0 14px 38px rgba(57,33,27,.08)}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body.new-site{margin:0;background:#f4f2f0;color:var(--ink);font-family:"PingFang SC","Microsoft YaHei",Arial,sans-serif;padding-bottom:0}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
.new-header{height:82px;background:rgba(255,255,255,.96);border-bottom:1px solid #eee9e6;display:flex;align-items:center;gap:28px;padding:0 max(28px,calc((100vw - 1220px)/2));position:sticky;top:0;z-index:50;backdrop-filter:blur(16px)}
.new-brand{width:190px;display:flex;align-items:center;flex:0 0 auto}.new-brand img{display:block;max-width:100%;height:50px;object-fit:contain}
.new-search{height:46px;max-width:520px;flex:1;background:#f4f2f0;border:1px solid transparent;border-radius:24px;display:flex;align-items:center;padding:0 18px;transition:.2s}.new-search:focus-within{background:#fff;border-color:#d9b6bc;box-shadow:0 0 0 4px rgba(199,37,57,.08)}.new-search svg{width:21px;fill:none;stroke:#777;stroke-width:1.8}.new-search input{width:100%;border:0;outline:0;background:transparent;padding:0 10px;font-size:14px}
.new-account-nav{display:flex;align-items:center;gap:20px;margin-left:auto}.new-account-nav a{min-width:38px;text-align:center;color:#555}.new-account-nav span{display:block;font-size:22px;line-height:22px}.new-account-nav small{display:block;margin-top:5px;font-size:11px;max-width:64px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.new-main{width:min(1180px,calc(100% - 40px));margin:24px auto 60px}
.new-banner{height:250px;border-radius:10px;overflow:hidden;position:relative;background:#271312;box-shadow:var(--shadow)}.new-banner-slide{display:none;width:100%;height:100%}.new-banner-slide.is-active{display:block}.new-banner-slide img{width:100%;height:100%;object-fit:cover}.new-banner-fallback{height:100%;padding:50px 8%;color:#fff;display:flex;flex-direction:column;justify-content:center;background:radial-gradient(circle at 80% 20%,rgba(255,221,168,.26),transparent 24%),linear-gradient(115deg,#38120f,#a51f2d 60%,#c45e4d)}.new-banner-fallback span{font-size:14px;letter-spacing:.32em;color:#eac9a6}.new-banner-fallback strong{font-size:36px;margin:12px 0}.new-banner-fallback small{color:#f1dcd6}.new-banner-dots{position:absolute;bottom:16px;left:0;right:0;text-align:center}.new-banner-dots button{width:7px;height:7px;border:0;border-radius:8px;padding:0;margin:0 4px;background:rgba(255,255,255,.5)}.new-banner-dots button.is-active{width:22px;background:#fff}
.new-lottery-switch{display:grid;grid-template-columns:repeat(3,1fr);background:#fff;border:1px solid var(--line);border-radius:8px;margin:18px 0;padding:5px;box-shadow:0 8px 24px rgba(42,28,25,.04)}.new-lottery-switch button{height:48px;border:0;background:transparent;color:#686568;font-weight:700;border-radius:6px}.new-lottery-switch button.is-active{background:var(--red);color:#fff;box-shadow:0 7px 16px rgba(199,37,57,.2)}
.new-section{background:#fff;border:1px solid var(--line);border-radius:10px;padding:28px;margin-top:18px;box-shadow:0 10px 30px rgba(64,42,35,.04)}.new-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:22px}.new-section-head h1,.new-section-head h2{font-family:Georgia,"Songti SC",serif;margin:4px 0 0;font-size:26px}.new-section-head h2 em{font-family:inherit;font-size:13px;font-style:normal;color:#fff;background:var(--red);border-radius:14px;padding:4px 9px;vertical-align:5px}.new-section-head>a{font-size:13px;color:var(--red)}.new-section-head>p{font-size:13px;color:#999;margin:0}.new-kicker{font-size:10px;letter-spacing:.22em;color:var(--red);font-weight:800}.new-lottery-panel{display:none}.new-lottery-panel.is-active{display:block}
.new-draw-section{background:linear-gradient(145deg,#fff,#fbf7f5)}.new-draw-meta{display:flex;gap:14px;align-items:center;margin-top:-8px;margin-bottom:20px}.new-draw-meta strong{color:var(--red);font-size:17px}.new-draw-meta span{font-size:13px;color:#999}.new-balls{display:flex;align-items:flex-start;justify-content:center;gap:18px;padding:16px 0}.new-ball-wrap{text-align:center}.new-ball-wrap small{display:block;margin-top:8px;font-size:11px;color:#777}.new-ball{width:58px;height:58px;display:grid;place-items:center;border:4px solid;border-radius:50%;background:#fff;font-size:22px;font-family:Arial,sans-serif;box-shadow:0 4px 8px rgba(0,0,0,.06)}.new-ball-red{color:#e64549;border-color:#e64549}.new-ball-blue{color:#248ad0;border-color:#248ad0}.new-ball-green{color:#18a766;border-color:#18a766}.new-plus{font-size:28px;color:#888;margin-top:14px}.new-empty{text-align:center;color:#999;padding:30px}
.new-formula-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.new-formula-card{border:1px solid #e8e2df;border-radius:8px;background:#fff;overflow:hidden;position:relative;transition:.22s}.new-formula-card:hover{transform:translateY(-3px);box-shadow:0 15px 28px rgba(70,42,36,.1);border-color:#d9b6bc}.new-formula-card.is-exclusion{border-style:dashed}.new-card-top{height:42px;display:flex;align-items:center;gap:7px;padding:0 10px;background:#faf8f7;font-size:11px;color:#888}.new-rank{font-family:Georgia,serif;font-size:20px;color:#c6b09d}.new-card-issue{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.new-streak{margin-left:auto;color:var(--red);font-weight:800}.new-card-media{height:158px;background:#eee;position:relative;overflow:hidden}.new-card-media img{width:100%;height:100%;object-fit:cover;transition:.3s}.new-formula-card:hover .new-card-media img{transform:scale(1.025)}.new-card-media.is-pending{background:linear-gradient(135deg,#f9f5f2,#eee7e3)}.new-image-pending{height:100%;display:flex;align-items:center;justify-content:center;flex-direction:column;color:#8c7e78}.new-image-pending i{width:32px;height:27px;border:2px solid #c2b5af;border-radius:3px;position:relative;margin-bottom:10px}.new-image-pending i:after{content:"";position:absolute;width:14px;height:9px;border-left:2px solid #c2b5af;border-top:2px solid #c2b5af;transform:rotate(45deg);left:7px;top:9px}.new-image-pending strong{font-size:14px}.new-image-pending small{font-size:10px;margin-top:5px;color:#aaa}.new-exclusion-badge{position:absolute;right:8px;top:8px;background:#fff;color:#d73747;border:1px dashed #d73747;border-radius:4px;padding:3px 6px;font-size:10px;font-weight:800}.new-card-copy{padding:14px 12px 52px}.new-card-copy h3{font-family:Georgia,"Songti SC",serif;margin:0;font-size:18px}.new-card-copy p{font-size:11px;color:#999;margin:7px 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.new-card-copy>strong{display:block;color:var(--red);font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.new-follow-button{position:absolute;bottom:12px;right:12px;left:12px;height:30px;border:1px solid #d9b7bc;background:#fff;color:var(--red);border-radius:4px;font-size:12px;font-weight:700}.new-follow-button.is-active{background:var(--red);border-color:var(--red);color:#fff}
.new-period-input{font-size:12px;color:#777}.new-period-input input{width:72px;height:34px;border:1px solid #ddd;border-radius:4px;padding:0 8px;margin-left:7px}.new-trend-tabs{display:flex;width:280px;border:1px solid #dfd6d2;margin-bottom:24px}.new-trend-tabs button{flex:1;height:38px;border:0;background:#fff;color:#777}.new-trend-tabs button.is-active{background:var(--red);color:#fff}.new-trend-layout{display:grid;grid-template-columns:380px 1fr;gap:45px;align-items:center}.new-donut-wrap{display:grid;place-items:center;min-height:330px}.new-donut{width:280px;height:280px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(#eee 0 100%);position:relative}.new-donut:after{content:"";position:absolute;width:135px;height:135px;border-radius:50%;background:#fff;box-shadow:inset 0 0 0 1px #eee}.new-donut span{position:relative;z-index:1;text-align:center}.new-donut strong{display:block;font-size:30px;font-family:Georgia,serif}.new-donut small{color:#999}.new-zodiac-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.new-zodiac-stat{padding:12px;border-bottom:1px solid #eee;display:flex;align-items:center;gap:8px}.new-zodiac-stat i{width:9px;height:9px;border-radius:50%;background:var(--zodiac-color)}.new-zodiac-stat strong{font-size:14px}.new-zodiac-stat span{margin-left:auto;color:#999;font-size:11px}.new-ranking-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:26px}.new-ranking-card{border:1px solid var(--line);padding:16px;border-radius:6px;background:#fcfbfa}.new-ranking-card h3{font-size:13px;margin:0 0 14px}.new-rank-row{display:flex;align-items:center;gap:8px;margin:9px 0;font-size:11px;color:#777}.new-rank-row strong{width:24px;color:var(--red)}.new-rank-row i{height:4px;background:#d9c4bd;border-radius:4px;flex:1;position:relative;overflow:hidden}.new-rank-row i:after{content:"";position:absolute;inset:0 auto 0 0;width:var(--bar);background:var(--red)}.new-skeleton{height:100px;border-radius:4px;background:linear-gradient(90deg,#f2efed,#faf9f8,#f2efed);background-size:200% 100%;animation:newShimmer 1.5s infinite}@keyframes newShimmer{to{background-position:-200% 0}}
.new-announcements{margin-top:18px;background:#2b2624;color:#fff;display:flex;align-items:flex-start;border-radius:8px;padding:16px 20px;gap:22px}.new-announcements>strong{color:#e2b980;font-size:13px}.new-announcements>div{display:flex;flex-wrap:wrap;gap:10px 26px;font-size:12px;color:#d4ceca}.new-announcements a:hover{color:#fff}
.new-footer{text-align:center;padding:40px 20px 92px;color:#999;font-size:11px}.new-footer img{width:140px;filter:grayscale(1);opacity:.45}.new-footer p{margin:12px}.new-footer div{display:flex;justify-content:center;gap:20px}.new-mobile-nav{display:none}
.new-toast{position:fixed;z-index:200;left:50%;bottom:70px;transform:translateX(-50%);background:#262322;color:#fff;padding:10px 18px;border-radius:4px;font-size:12px;box-shadow:0 8px 24px rgba(0,0,0,.22)}
@media(max-width:900px),(min-width:901px){.new-header{padding:0 20px;gap:14px}.new-brand{width:145px}.new-account-nav{gap:10px}.new-account-nav a:nth-child(-n+3){display:none}.new-main{width:calc(100% - 24px)}.new-formula-grid{grid-template-columns:repeat(3,1fr)}.new-trend-layout{grid-template-columns:300px 1fr;gap:15px}.new-donut{width:240px;height:240px}.new-ranking-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:640px),(min-width:641px){body.new-site{padding-bottom:70px}.new-header{height:62px;padding:0 12px;gap:8px}.new-brand{width:92px}.new-brand img{height:38px}.new-search{height:38px;padding:0 11px}.new-search input{font-size:12px}.new-account-nav{display:none}.new-main{width:100%;margin:0 auto 30px}.new-banner{height:150px;border-radius:0}.new-banner-fallback{padding:25px 22px}.new-banner-fallback span{font-size:9px}.new-banner-fallback strong{font-size:21px;margin:7px 0}.new-banner-fallback small{font-size:9px}.new-lottery-switch{margin:10px 12px;padding:4px}.new-lottery-switch button{height:40px;font-size:13px}.new-section{border-left:0;border-right:0;border-radius:0;padding:20px 12px;margin-top:10px}.new-section-head{margin-bottom:16px;align-items:center}.new-section-head h1,.new-section-head h2{font-size:20px}.new-section-head>p{display:none}.new-draw-meta{margin:0 0 8px}.new-balls{gap:5px;justify-content:space-between;padding:10px 0}.new-ball{width:39px;height:39px;border-width:3px;font-size:15px}.new-ball-wrap small{font-size:8px;margin-top:5px}.new-plus{font-size:18px;margin-top:9px}.new-formula-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.new-card-top{height:34px;padding:0 7px;gap:4px}.new-rank{font-size:15px}.new-card-issue{font-size:8px}.new-streak{font-size:9px}.new-card-media{height:102px}.new-image-pending strong{font-size:12px}.new-image-pending small{font-size:8px}.new-image-pending i{transform:scale(.75);margin-bottom:4px}.new-card-copy{padding:10px 8px 45px}.new-card-copy h3{font-size:15px}.new-card-copy p{font-size:9px}.new-card-copy>strong{font-size:11px}.new-follow-button{height:27px;bottom:9px;left:8px;right:8px}.new-period-input{font-size:10px}.new-period-input input{width:55px;height:30px}.new-trend-tabs{width:100%;margin-bottom:12px}.new-trend-layout{grid-template-columns:1fr;gap:5px}.new-donut-wrap{min-height:250px}.new-donut{width:220px;height:220px}.new-zodiac-stats{grid-template-columns:repeat(3,1fr)}.new-zodiac-stat{padding:8px 3px;gap:4px}.new-zodiac-stat strong{font-size:11px}.new-zodiac-stat span{font-size:8px}.new-ranking-grid{grid-template-columns:repeat(2,1fr);gap:8px}.new-ranking-card{padding:12px 9px}.new-announcements{border-radius:0;margin-top:10px;padding:14px 12px}.new-announcements>div{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.new-announcements>div>*:not(:first-child){display:none}.new-footer{padding-bottom:30px}.new-mobile-nav{position:fixed;z-index:70;bottom:0;left:0;right:0;height:64px;background:rgba(255,255,255,.97);border-top:1px solid #e9e4e1;display:grid;grid-template-columns:repeat(5,1fr);padding-bottom:env(safe-area-inset-bottom)}.new-mobile-nav a{display:flex;align-items:center;justify-content:center;flex-direction:column;font-size:9px;color:#888}.new-mobile-nav span{font-size:20px;line-height:22px}.new-mobile-nav a.is-active{color:var(--red)}}
@media(max-width:360px){.new-ball{width:35px;height:35px;font-size:13px}.new-balls{gap:3px}.new-card-media{height:92px}}

/* 登录、搜索、详情与会员内页 */
.new-auth-page{min-height:100vh;background:radial-gradient(circle at 15% 10%,rgba(199,37,57,.13),transparent 28%),linear-gradient(145deg,#f4efec,#fff)}
.new-auth-shell{width:min(430px,calc(100% - 28px));margin:0 auto;padding:55px 0}.new-auth-brand{display:block;text-align:center;margin-bottom:24px}.new-auth-brand img{width:190px;max-height:62px;object-fit:contain}.new-auth-card{background:#fff;border:1px solid var(--line);border-radius:12px;padding:36px;box-shadow:0 24px 60px rgba(67,39,32,.12)}.new-auth-card h1{font-family:Georgia,"Songti SC",serif;font-size:29px;margin:8px 0}.new-auth-card>p{font-size:12px;color:#999;margin:0 0 25px}.new-auth-card form>label:not(.new-check-field){display:block;font-size:12px;font-weight:700;margin:16px 0 7px}.new-auth-card input,.new-auth-card select{height:46px;border:1px solid #ddd4d0;border-radius:5px;background:#fff;padding:0 13px;outline:0}.new-auth-card input:focus,.new-auth-card select:focus{border-color:#ca727e;box-shadow:0 0 0 3px rgba(199,37,57,.07)}.new-auth-card form>input{width:100%}.new-phone-field,.new-captcha-field{display:flex;gap:7px}.new-phone-field select{width:88px;flex:0 0 auto}.new-phone-field input,.new-captcha-field input{min-width:0;flex:1}.new-captcha-field img{height:46px;width:112px;border:1px solid #ddd4d0;border-radius:5px;cursor:pointer}.new-check-field{display:flex;gap:8px;align-items:flex-start;font-size:11px;color:#777;margin:16px 0}.new-check-field input{width:15px;height:15px;margin:1px 0}.new-check-field a{color:var(--red)}.new-form-message{min-height:18px;color:#c42b3e;font-size:11px}.new-primary-button{width:100%;height:48px;border:0;border-radius:5px;background:var(--red);color:#fff;font-weight:800;box-shadow:0 8px 18px rgba(199,37,57,.22)}.new-primary-button:disabled{opacity:.55}.new-auth-links{display:flex;justify-content:space-between;margin-top:20px;font-size:12px;color:#777}.new-auth-links a:first-child{color:var(--red)}
.new-simple-header{height:60px;background:#fff;border-bottom:1px solid var(--line);display:grid;grid-template-columns:100px 1fr 100px;align-items:center;padding:0 max(16px,calc((100vw - 1100px)/2));position:sticky;top:0;z-index:50}.new-simple-header strong{text-align:center;font-family:Georgia,"Songti SC",serif}.new-simple-header>a:last-child{text-align:right;color:var(--red)}
.new-document{width:min(800px,calc(100% - 28px));margin:25px auto 70px;background:#fff;border:1px solid var(--line);border-radius:8px;padding:40px;line-height:2;color:#4e4b49}.new-document h1{font-family:Georgia,"Songti SC",serif;margin:0;color:#17171c}.new-document-time{font-size:11px;color:#aaa;border-bottom:1px solid #eee;padding-bottom:18px;margin-bottom:22px}
.new-search-page,.new-detail-page,.new-member-page{width:min(1080px,calc(100% - 28px));margin:24px auto 70px}.new-search-large{max-width:none;width:100%;height:54px;background:#fff;border-color:#e1dad6;box-shadow:0 8px 25px rgba(61,39,32,.05)}.new-search-large button{height:38px;width:76px;border:0;background:var(--red);color:#fff;border-radius:4px}.new-filter-tabs{display:flex;gap:8px;margin:16px 0 28px}.new-filter-tabs a{padding:8px 18px;background:#fff;border:1px solid var(--line);border-radius:4px;font-size:12px}.new-filter-tabs a.is-active{background:var(--red);border-color:var(--red);color:#fff}.new-result-section{margin:22px 0}.new-result-head{display:flex;align-items:center;gap:12px;border-bottom:1px solid #ded8d5;padding-bottom:12px}.new-result-head h1{font-family:Georgia,"Songti SC",serif;font-size:21px;margin:0}.new-result-head span{font-size:11px;color:#999}.new-result-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-top:12px}.new-result-card{display:grid;grid-template-columns:145px 1fr;gap:14px;background:#fff;border:1px solid var(--line);border-radius:7px;padding:10px;min-width:0}.new-result-thumb{height:102px;border-radius:4px;overflow:hidden;background:#eee}.new-result-thumb img{width:100%;height:100%;object-fit:cover}.new-result-thumb.is-pending{display:grid;place-items:center;background:linear-gradient(135deg,#f4eeea,#eae0db);color:#927d75;font-size:11px}.new-result-card>div:last-child{min-width:0}.new-result-card small{font-size:9px;color:#999}.new-result-card h2{font-size:17px;margin:7px 0}.new-result-card p{font-size:10px;color:#999;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:5px 0}.new-result-card>div>strong{color:var(--red);font-size:12px}.new-old-result-list{background:#fff;border:1px solid var(--line);border-radius:7px;margin-top:12px}.new-old-result-list>a{display:grid;grid-template-columns:64px 1fr auto 18px;align-items:center;gap:12px;padding:15px;border-bottom:1px solid #eee}.new-old-result-list>a:last-child{border-bottom:0}.new-result-lottery{font-size:10px;color:var(--red);border:1px solid #e8c5ca;text-align:center;padding:5px 3px;border-radius:3px}.new-old-result-list h2{font-size:14px;margin:0}.new-old-result-list p{font-size:10px;color:#999;margin:5px 0 0}.new-old-result-list>a>strong{font-size:11px;color:var(--red)}.new-old-result-list>a>i{font-style:normal;color:#aaa}.new-no-results{grid-column:1/-1;background:#fff;padding:35px;text-align:center;color:#aaa;font-size:12px}
.new-detail-page{width:min(900px,calc(100% - 28px))}.new-detail-title{background:#fff;border:1px solid var(--line);border-radius:9px;padding:28px;position:relative}.new-detail-title>div:first-child{display:flex;align-items:center;gap:12px}.new-detail-title>div:first-child span{background:var(--red);color:#fff;font-size:11px;padding:5px 10px;border-radius:3px}.new-detail-title>div:first-child small{color:#888}.new-detail-title h1{font-family:Georgia,"Songti SC",serif;font-size:31px;margin:16px 0 6px}.new-detail-title>p{font-size:10px;color:#aaa}.new-detail-actions{position:absolute;right:28px;bottom:28px;display:flex;align-items:center;gap:10px}.new-detail-actions button{height:34px;border:1px solid var(--red);color:var(--red);background:#fff;border-radius:4px;padding:0 14px}.new-detail-actions button.is-active{background:var(--red);color:#fff}.new-detail-actions span{font-size:10px;color:#999}.new-detail-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:#e8e0dc;border:1px solid #e8e0dc;margin-top:12px;border-radius:7px;overflow:hidden}.new-detail-stats>div{background:#fff;padding:18px;text-align:center}.new-detail-stats span{display:block;font-size:10px;color:#999}.new-detail-stats strong{display:block;margin-top:6px;font-family:Georgia,serif;font-size:22px;color:var(--red)}.new-detail-block{background:#fff;border:1px solid var(--line);border-radius:9px;padding:26px;margin-top:12px}.new-detail-block>h2{font-family:Georgia,"Songti SC",serif;margin:7px 0 18px}.new-detail-block-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.new-detail-block-head h2{font-family:Georgia,"Songti SC",serif;margin:0}.new-detail-block-head a,.new-detail-block-head span{font-size:10px;color:#999}.new-rule-summary{display:flex;align-items:center;justify-content:space-between;border-left:3px solid var(--red);padding:10px 14px;background:#fbf7f5}.new-rule-summary strong{font-size:15px}.new-rule-summary span{font-size:10px;color:#fff;background:var(--red);padding:4px 8px;border-radius:3px}.new-rule-summary span.is-exclusion{background:#fff;color:var(--red);border:1px dashed var(--red)}.new-rule-analysis{line-height:1.9;color:#615b58;font-size:13px}.new-prediction-value{display:flex;align-items:center;gap:20px;border-top:1px solid #eee;padding-top:17px}.new-prediction-value small{color:#999}.new-prediction-value strong{color:var(--red);font-size:20px}.new-detail-image{min-height:340px;background:#f3efec;border:1px solid #e2d9d5;display:grid;place-items:center;position:relative;overflow:hidden}.new-detail-image img{display:block;width:100%;height:auto}.new-detail-image>b{position:absolute;right:12px;top:12px;background:rgba(40,32,29,.78);color:#fff;padding:6px 10px;font-size:10px}.new-detail-image .new-image-pending{min-height:340px}.new-like-row{text-align:right;margin-top:13px}.new-like-row button{border:1px solid #e1d7d3;background:#fff;border-radius:4px;height:34px;padding:0 14px;color:#777}.new-like-row button.is-active{color:var(--red);border-color:#dba3aa}.new-period-nav{display:grid;grid-template-columns:repeat(3,1fr);background:#fff;border:1px solid var(--line);border-radius:7px;margin-top:12px}.new-period-nav a{text-align:center;padding:14px;font-size:12px;border-right:1px solid #eee}.new-period-nav a:last-child{border:0}.new-period-nav a.is-disabled{color:#bbb;pointer-events:none}.new-history-thumbs{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.new-history-thumbs>a{border:1px solid #e2dad6;padding:7px;border-radius:5px;position:relative}.new-history-thumbs>a.is-active{border-color:var(--red)}.new-history-thumbs>a>div{height:95px;background:#f1ece9;display:grid;place-items:center;overflow:hidden;color:#9a8981;font-size:10px}.new-history-thumbs img{width:100%;height:100%;object-fit:cover}.new-history-thumbs strong{font-size:10px;display:block;margin-top:6px}.new-history-thumbs small{position:absolute;right:7px;bottom:7px;font-size:9px}.new-history-thumbs .is-hit{color:#7355d8}.new-history-thumbs .is-miss{color:#e54c57}
.new-member-head{background:#2b2422;color:#fff;padding:28px;border-radius:8px;display:flex;align-items:center;gap:16px}.new-member-avatar{width:58px;height:58px;border-radius:50%;display:grid;place-items:center;background:#fff;color:var(--red);font-size:22px;font-weight:800}.new-member-head h1{font-size:20px;margin:0 0 5px}.new-member-head p{font-size:11px;color:#c6bbb6;margin:0}.new-member-head button{margin-left:auto;border:1px solid #776a65;background:transparent;color:#fff;border-radius:4px;height:34px;padding:0 14px}.new-member-tabs{display:grid;grid-template-columns:repeat(4,1fr);margin:12px 0;background:#fff;border:1px solid var(--line);border-radius:7px}.new-member-tabs a{text-align:center;padding:14px;font-size:12px}.new-member-tabs a.is-active{background:var(--red);color:#fff}.new-member-list{background:#fff;border:1px solid var(--line);border-radius:7px}.new-member-item{display:grid;grid-template-columns:72px 1fr auto;align-items:center;gap:15px;padding:16px;border-bottom:1px solid #eee}.new-member-item:last-child{border-bottom:0}.new-member-item>span{font-size:10px;color:var(--red);border:1px solid #ebcdd1;text-align:center;padding:6px 3px}.new-member-item h2{font-size:15px;margin:0}.new-member-item p{font-size:10px;color:#999;margin:6px 0 0}.new-member-item>strong{font-size:11px;color:var(--red)}
@media(max-width:640px),(min-width:641px){.new-auth-shell{padding:20px 0}.new-auth-card{padding:26px 20px}.new-simple-header{grid-template-columns:80px 1fr 80px;padding:0 12px;font-size:12px}.new-document{margin-top:12px;padding:24px 18px}.new-search-page,.new-detail-page,.new-member-page{width:100%;margin:10px auto 70px}.new-search-large{width:calc(100% - 24px);margin:0 12px}.new-filter-tabs{padding:0 12px;overflow:auto}.new-filter-tabs a{white-space:nowrap}.new-result-head{padding:0 12px 10px}.new-result-grid{grid-template-columns:1fr;padding:0 10px}.new-result-card{grid-template-columns:112px 1fr}.new-old-result-list{border-radius:0;border-left:0;border-right:0}.new-old-result-list>a{grid-template-columns:54px 1fr auto 10px;padding:13px 10px}.new-detail-title,.new-detail-block{border-radius:0;border-left:0;border-right:0;padding:20px 14px}.new-detail-title h1{font-size:24px}.new-detail-actions{position:static;margin-top:18px}.new-detail-stats{border-radius:0}.new-detail-stats>div{padding:13px 5px}.new-detail-stats strong{font-size:18px}.new-detail-image,.new-detail-image .new-image-pending{min-height:240px}.new-prediction-value{align-items:flex-start;flex-direction:column;gap:6px}.new-period-nav{border-radius:0;border-left:0;border-right:0}.new-history-thumbs{grid-template-columns:repeat(2,1fr)}.new-member-head{border-radius:0}.new-member-tabs{border-radius:0}.new-member-item{grid-template-columns:55px 1fr auto;padding:14px 10px;gap:9px}.new-member-item>strong{max-width:72px;text-align:right}}
.new-old-history{border:1px solid #e4deda;border-radius:6px;overflow:hidden}.new-old-history-head,.new-old-history-row{display:grid;grid-template-columns:88px repeat(6,minmax(34px,1fr)) 18px minmax(34px,1fr);align-items:start}.new-old-history-head{background:#f5f3f1;color:#666;font-size:9px;font-weight:700;text-align:center;padding:9px 4px}.new-old-history-row{position:relative;padding:12px 4px 32px;border-top:1px solid #eee;min-height:104px}.new-old-history-row:nth-child(odd){background:#fcfbfa}.new-old-issue{padding:6px 3px;position:relative}.new-old-issue strong{display:block;color:var(--red);font-size:13px}.new-old-issue small{display:block;color:#999;font-size:8px;margin-top:4px}.new-old-status{display:inline-block!important;margin-top:5px!important;border-radius:9px;padding:2px 6px;color:#fff!important;background:#7654db;font-size:8px!important}.new-old-status.is-miss{background:#ef5861}.new-old-ball{text-align:center;position:relative}.new-old-ball b{width:34px;height:34px;border:3px solid #e54a50;border-radius:50%;display:grid;place-items:center;background:#fff;font-size:12px;margin:auto}.new-old-ball.is-blue b{border-color:#288fd3}.new-old-ball.is-green b{border-color:#18a766}.new-old-ball small{font-size:8px;color:#777;display:block;margin-top:4px}.new-old-special b{box-shadow:0 0 0 2px #f6d7dc}.new-old-plus{display:grid;place-items:center;height:34px;color:#888}.new-old-derivation{position:absolute;left:92px;right:9px;bottom:7px;height:20px;color:var(--red);font-size:8px;text-align:center;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;padding:0 34px}.new-old-derivation:before{content:"";position:absolute;left:8px;right:10px;top:6px;border-top:1.5px solid var(--red);transform:skewY(-2deg)}.new-old-derivation:after{content:"";position:absolute;right:7px;top:2px;border-left:8px solid var(--red);border-top:5px solid transparent;border-bottom:5px solid transparent}.new-old-history.is-exclusion .new-old-derivation:before{border-top-style:dashed}.new-old-history.is-exclusion .new-old-derivation:after{border-left-color:#df3746}.new-old-history-error{padding:35px;text-align:center;color:#999}
@media(max-width:640px),(min-width:641px){.new-detail-actions{display:grid;grid-template-columns:1fr 1fr}.new-detail-actions button{padding:0 9px;font-size:11px}.new-old-history-head,.new-old-history-row{grid-template-columns:66px repeat(6,minmax(28px,1fr)) 13px minmax(28px,1fr)}.new-old-history-head{font-size:7px;padding:7px 2px}.new-old-history-row{padding:9px 2px 30px;min-height:93px}.new-old-issue{padding:4px 1px}.new-old-issue strong{font-size:10px}.new-old-issue small{font-size:7px}.new-old-status{font-size:7px!important;padding:1px 4px}.new-old-ball b{width:28px;height:28px;border-width:2px;font-size:10px}.new-old-ball small{font-size:7px}.new-old-plus{height:28px;font-size:11px}.new-old-derivation{left:69px;font-size:7px;padding:0 25px}}
@media(max-width:370px){.new-old-history-head,.new-old-history-row{grid-template-columns:60px repeat(6,minmax(25px,1fr)) 10px minmax(25px,1fr)}.new-old-ball b{width:25px;height:25px;font-size:9px}.new-old-derivation{left:62px}}
.new-history-page{width:min(980px,calc(100% - 28px));margin:20px auto 70px}.new-draw-history-list{background:#fff;border:1px solid var(--line);border-radius:8px;margin-top:12px;overflow:hidden}.new-draw-history-list article{display:grid;grid-template-columns:170px 1fr;align-items:center;padding:18px;border-bottom:1px solid #eee}.new-draw-history-list article:last-child{border-bottom:0}.new-draw-history-meta strong{display:block;color:var(--red)}.new-draw-history-meta span{display:block;color:#999;font-size:10px;margin-top:7px}.new-draw-history-list .new-ball{width:42px;height:42px;font-size:15px;border-width:3px}.new-draw-history-list .new-balls{justify-content:flex-end;padding:0;gap:9px}.new-draw-history-list .new-plus{font-size:18px;margin-top:10px}
@media(max-width:640px),(min-width:641px){.new-history-page{width:100%;margin-top:10px}.new-history-page>.new-filter-tabs{padding:0 12px}.new-history-page>.new-result-head{padding:0 12px 10px}.new-draw-history-list{border-left:0;border-right:0;border-radius:0}.new-draw-history-list article{display:block;padding:13px 10px}.new-draw-history-meta{display:flex;align-items:center;justify-content:space-between;margin-bottom:11px}.new-draw-history-meta span{margin:0}.new-draw-history-list .new-balls{justify-content:space-between;gap:3px}.new-draw-history-list .new-ball{width:35px;height:35px;font-size:12px}.new-draw-history-list .new-plus{font-size:14px;margin-top:8px}}

/* 2026-08 supplied-design fidelity pass */
:root{
  --red:#f1302d;
  --red-dark:#de0609;
  --ink:#17233d;
  --muted:#626989;
  --line:#e5e9f2;
  --paper:#fff;
  --soft:#f5f7fb;
  --gold:#cf8133;
  --blue:#5964d9;
  --shadow:0 10px 28px rgba(23,35,61,.08);
}
body.new-site{
  background:
    radial-gradient(circle at 12% 2%,rgba(89,100,217,.06),transparent 24rem),
    #f5f7fb;
  color:var(--ink);
}
.new-header{
  height:76px;
  border-bottom:1px solid #edf0f6;
  background:rgba(255,255,255,.97);
  box-shadow:0 3px 16px rgba(23,35,61,.05);
}
.new-brand{width:178px}
.new-brand img{height:58px;width:100%;object-fit:contain}
.new-search{
  height:44px;
  border:1px solid #e3e7f0;
  background:#f7f8fb;
  border-radius:8px;
  box-shadow:inset 0 1px 2px rgba(23,35,61,.02);
}
.new-search:focus-within{border-color:#b9bdeb;box-shadow:0 0 0 4px rgba(89,100,217,.09)}
.new-search>img{width:17px;height:17px;object-fit:contain;flex:0 0 auto}
.new-account-nav{gap:22px}
.new-account-nav a{color:#253657;transition:.18s}
.new-account-nav a:hover{color:var(--red);transform:translateY(-1px)}
.new-account-nav img{display:block;width:18px;height:18px;object-fit:contain;margin:0 auto}
.new-account-nav small{font-size:11px;color:inherit}
.new-main{width:min(1100px,calc(100% - 36px));margin-top:20px}
.new-banner{
  height:250px;
  border-radius:12px;
  background:linear-gradient(120deg,#ff6b71,#ff9691);
  box-shadow:0 12px 30px rgba(240,48,45,.14);
}
.new-banner-slide img{object-fit:cover}
.new-banner-fallback{display:grid;height:100%;place-items:center;background:linear-gradient(120deg,#ff7378,#ff9a95);padding:0}
.new-banner-fallback img{display:block;width:100%;height:100%;object-fit:contain}
.new-banner-dots button{background:rgba(23,35,61,.22)}
.new-banner-dots button.is-active{background:#fff}
.new-lottery-switch{
  border-color:#e6eaf2;
  border-radius:10px;
  padding:5px;
  box-shadow:0 6px 20px rgba(23,35,61,.05);
}
.new-lottery-switch button{color:#4b556f;border-radius:7px}
.new-lottery-switch button.is-active{
  background:linear-gradient(135deg,#f33a34,#de0609);
  box-shadow:0 7px 16px rgba(241,48,45,.22);
}
.new-section{
  border-color:#e6eaf2;
  border-radius:12px;
  box-shadow:0 8px 26px rgba(23,35,61,.055);
}
.new-section-head{align-items:center}
.new-section-head h1,.new-section-head h2{
  font-family:"PingFang SC","Microsoft YaHei",sans-serif;
  color:#17233d;
  font-weight:800;
  letter-spacing:.01em;
}
.new-section-head h2 em{background:var(--red);box-shadow:0 3px 8px rgba(241,48,45,.2)}
.new-kicker{color:#6667c8;letter-spacing:.16em}
.new-section-head>a{display:flex;align-items:center;gap:6px;color:#253657;font-weight:600}
.new-section-head>a:after{content:"";width:5px;height:9px;background:url('/assets/new-design/icon-chevron-right.svg') center/contain no-repeat}
.new-draw-section{
  position:relative;
  overflow:hidden;
  background:linear-gradient(135deg,#fff 0,#fbfcff 64%,#f0f3fb 100%);
}
.new-draw-section:after{
  content:"";
  position:absolute;
  right:-58px;
  bottom:-72px;
  width:220px;
  height:220px;
  border-radius:50%;
  border:42px solid rgba(89,100,217,.035);
  pointer-events:none;
}
.new-draw-section>*{position:relative;z-index:1}
.new-draw-meta strong{color:var(--red)}
.new-draw-meta span{color:#7d8297}
.new-ball{
  width:60px;
  height:60px;
  border:0;
  background-color:transparent;
  background-position:center;
  background-repeat:no-repeat;
  background-size:contain;
  box-shadow:none;
  font-weight:800;
}
.new-ball-red{color:#e63232;background-image:url('/assets/new-design/ball-red.png')}
.new-ball-blue{color:#2b76d9;background-image:url('/assets/new-design/ball-blue.png')}
.new-ball-green{color:#2fa34f;background-image:url('/assets/new-design/ball-green.png')}
.new-ball-wrap small{color:#4b556f}
.new-plus{color:#7b8397;font-weight:700}
.new-formula-section>.new-section-head h2{display:flex;align-items:center;gap:8px}
.new-formula-section>.new-section-head h2:before{
  content:"";
  width:19px;
  height:24px;
  background:url('/assets/new-design/icon-fire.png') center/contain no-repeat;
}
.new-formula-grid{gap:14px}
.new-formula-card{
  border-color:#e1e6ef;
  border-radius:10px;
  box-shadow:0 4px 15px rgba(23,35,61,.045);
}
.new-formula-card:hover{border-color:#cbd1ef;box-shadow:0 14px 28px rgba(23,35,61,.11)}
.new-card-top{background:#f8f9fc;color:#7d8297;border-bottom:1px solid #edf0f5}
.new-rank{color:#5964d9;font-family:Arial,sans-serif;font-weight:900}
.new-streak{color:var(--red)}
.new-card-media{background:#f3f5f9}
.new-card-media.is-pending{
  background:
    linear-gradient(135deg,rgba(89,100,217,.045),rgba(241,48,45,.035)),
    repeating-linear-gradient(135deg,#fbfcff 0,#fbfcff 12px,#f7f8fc 12px,#f7f8fc 24px);
}
.new-image-pending{color:#626989}
.new-image-pending i{border-color:#9da4c4;background:rgba(255,255,255,.68)}
.new-image-pending i:after{border-color:#9da4c4}
.new-image-pending strong{color:#253657}
.new-image-pending small{color:#9096ab}
.new-card-copy h3{font-family:"PingFang SC","Microsoft YaHei",sans-serif;color:#17233d}
.new-card-copy p{color:#7d8297}
.new-card-copy>strong{color:var(--red)}
.new-follow-button{
  border-color:#cfd4eb;
  color:#5964d9;
  background:#f9faff;
  border-radius:6px;
}
.new-follow-button:hover,.new-follow-button.is-active{background:#5964d9;border-color:#5964d9;color:#fff}
.new-exclusion-badge{border-color:#f1302d;color:#de0609;background:rgba(255,255,255,.94)}
.new-trend-tabs{border-color:#dfe3ee;border-radius:7px;overflow:hidden}
.new-trend-tabs button{color:#4b556f}
.new-trend-tabs button.is-active{background:linear-gradient(135deg,#f33a34,#de0609)}
.new-period-input input{border-color:#dfe3ee;color:#253657;background:#fbfcff}
.new-ranking-card{border-color:#e3e7ef;background:#fafbfe;border-radius:8px}
.new-ranking-card h3{color:#253657}
.new-rank-row strong{color:var(--red)}
.new-rank-row i{background:#e5e8f2}
.new-rank-row i:after{background:linear-gradient(90deg,#6667c8,#f1302d)}
.new-announcements{
  position:relative;
  align-items:center;
  min-height:48px;
  margin:10px 0 0;
  padding:10px 16px;
  gap:10px;
  background:#fff;
  color:#253657;
  border:1px solid #e5e9f2;
  box-shadow:0 6px 22px rgba(23,35,61,.045);
}
.new-announcements:before{
  content:"";
  width:18px;
  height:15px;
  flex:0 0 auto;
  background:url('/assets/new-design/icon-announcement.svg') center/contain no-repeat;
}
.new-announcements>strong{color:#f1302d}
.new-announcements>.new-announcement-viewport{display:block;min-width:0;flex:1;color:#111;white-space:nowrap;overflow:hidden}
.new-announcement-track{display:flex;align-items:center;gap:48px;width:max-content;max-width:none;white-space:nowrap;will-change:transform}
.new-announcement-track.is-marquee{animation:newAnnouncementMarquee var(--announcement-duration,18s) linear infinite}
.new-announcement-viewport:hover .new-announcement-track.is-marquee,.new-announcement-viewport:active .new-announcement-track.is-marquee{animation-play-state:paused}
.new-announcement-item{display:block;flex:0 0 auto;max-width:none;overflow:visible;text-overflow:clip;white-space:nowrap;color:#111}
@keyframes newAnnouncementMarquee{from{transform:translate3d(0,0,0)}to{transform:translate3d(var(--announcement-distance,0),0,0)}}
.new-announcements a:hover{color:#f1302d}
.new-announcement-more{display:flex;flex:0 0 auto;align-items:center;gap:3px;margin-left:auto;color:#253657;font-size:12px;font-weight:700;white-space:nowrap}
.new-announcement-more span{font-size:20px;font-weight:400;line-height:1}
.new-announcements+.new-lottery-switch{margin-top:10px}
.new-footer img{width:155px;height:auto;object-fit:contain;filter:none;opacity:1}
.new-footer{color:#7d8297}
.new-mobile-nav img{width:19px;height:19px;object-fit:contain;margin-bottom:4px}
.new-back-to-top{
  position:fixed;
  z-index:65;
  right:20px;
  bottom:24px;
  width:46px;
  height:46px;
  padding:0;
  border:0;
  border-radius:12px;
  background:transparent;
  opacity:0;
  visibility:hidden;
  transform:translateY(8px);
  transition:.2s;
}
.new-back-to-top.is-visible{opacity:1;visibility:visible;transform:none}
.new-back-to-top img{display:block;width:100%;height:100%}

/* Login and registration */
body.new-site.new-auth-page{
  min-height:100vh;
  background-color:#fff8f5;
  background-image:url('/assets/new-design/login-background.png');
  background-position:center top;
  background-repeat:no-repeat;
  background-size:auto max(100vh,844px);
}
.new-auth-shell{width:min(430px,calc(100% - 28px));padding:30px 0 70px}
.new-auth-brand{margin-bottom:14px}
.new-auth-brand img{width:124px;height:124px;max-height:none;object-fit:contain;filter:drop-shadow(0 10px 16px rgba(241,48,45,.18))}
.new-auth-card{
  border-color:rgba(241,48,45,.12);
  border-radius:24px;
  background:rgba(255,255,255,.94);
  box-shadow:0 20px 55px rgba(157,59,36,.13);
  backdrop-filter:blur(8px);
}
.new-auth-card h1{font-family:"PingFang SC","Microsoft YaHei",sans-serif;color:#17233d}
.new-auth-card input,.new-auth-card select{border-color:#ffd5ce;background:#fffafa;border-radius:9px}
.new-auth-card input:focus,.new-auth-card select:focus{border-color:#f26c5e;box-shadow:0 0 0 3px rgba(241,48,45,.08)}
.new-field-with-icon{position:relative;display:flex;align-items:center;gap:0}
.new-field-with-icon>img{position:absolute;z-index:2;left:13px;width:18px;height:21px;object-fit:contain;pointer-events:none}
.new-phone-field.new-field-with-icon select{
  position:relative;
  z-index:1;
  width:112px;
  flex:0 0 112px;
  padding:0 30px 0 42px;
  border-radius:9px 0 0 9px;
  border-right:0;
  appearance:none;
  -webkit-appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2317233d' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 12px center;
  background-size:10px 6px;
}
.new-phone-field.new-field-with-icon input{border-radius:0 9px 9px 0}
.new-password-field input{width:100%;padding-left:43px}
.new-password-field.has-visibility-toggle input{min-width:0;padding-right:48px}
.new-password-toggle{position:absolute;right:2px;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;border-radius:7px;background:transparent;color:#a06560;cursor:pointer}
.new-password-toggle:hover,.new-password-toggle[aria-pressed="true"]{color:#e52620}
.new-password-toggle:focus-visible{outline:2px solid #e52620;outline-offset:-3px}
.new-password-toggle svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.new-password-eye-slash{display:none}
.new-password-toggle[aria-pressed="true"] .new-password-eye-slash{display:block}
.new-primary-button{border-radius:9px;background:linear-gradient(135deg,#ff5b47,#e52620);box-shadow:0 9px 18px rgba(241,48,45,.25)}
.new-auth-links a:first-child,.new-check-field a{color:#de0609}

/* Inner pages and formula details */
.new-inner-page{background:#f5f7fb}
.new-simple-header{
  height:62px;
  border-bottom-color:#e7eaf1;
  box-shadow:0 3px 14px rgba(23,35,61,.045);
  color:#17233d;
}
.new-simple-header strong{font-family:"PingFang SC","Microsoft YaHei",sans-serif;font-weight:800}
.new-simple-header>a:first-child{color:#253657}
.new-simple-header>a:last-child{color:#de0609}
.new-detail-title,.new-detail-block,.new-detail-stats,.new-period-nav,.new-member-list,.new-old-result-list,.new-draw-history-list{
  border-color:#e3e7ef;
  box-shadow:0 6px 20px rgba(23,35,61,.045);
}
.new-detail-title>div>span{background:linear-gradient(135deg,#f33a34,#de0609)}
.new-detail-title h1,.new-detail-block h2,.new-detail-block-head h2{font-family:"PingFang SC","Microsoft YaHei",sans-serif;color:#17233d}
.new-detail-meta-line{display:flex;align-items:center;gap:6px}
.new-detail-meta-line img{width:15px;height:15px;object-fit:contain}
.new-detail-actions button{display:inline-flex;align-items:center;justify-content:center;gap:6px}
.new-detail-actions button img{width:16px;height:16px;object-fit:contain}
.new-detail-actions>span{display:flex;align-items:center;justify-content:center;gap:5px}
.new-detail-actions>span img{width:16px;height:12px;object-fit:contain}
.new-detail-stats strong{color:var(--red)}
.new-detail-block-head h2{display:flex;align-items:center;gap:8px}
.new-detail-block-head h2:before{
  content:"";
  width:4px;
  height:21px;
  background:url('/assets/new-design/section-bar-red.svg') center/contain no-repeat;
}
.new-rule-summary{border-left-color:#f1302d;background:#fff7f5;border-radius:0 7px 7px 0}
.new-rule-summary span{background:#f1302d}
.new-prediction-value strong{color:#f1302d}
.new-detail-image{background:#f8f9fc;border-color:#dfe4ed;border-radius:8px}
.new-like-row button{display:inline-flex;align-items:center;gap:6px;border-color:#e1e5ee;color:#626989}
.new-like-row button img{width:17px;height:17px;object-fit:contain}
.new-like-row button.is-active{color:#de0609;border-color:#ffc1bb;background:#fff8f7}
.new-member-head{background:linear-gradient(135deg,#17233d,#35456a)}
.new-member-tabs a.is-active{background:#f1302d}

@media(max-width:900px),(min-width:901px){
  .new-brand{width:150px}
}
@media(max-width:640px),(min-width:641px){
  body.new-site{background:#f4f6fa}
  .new-header{height:66px;padding:0 14px}
  .new-brand{width:105px}
  .new-brand img{height:44px}
  .new-search{height:38px;border-radius:7px}
  .new-main{width:100%;background:#f4f6fa}
  .new-banner{height:174px;margin:0;background:linear-gradient(120deg,#ff7378,#ff9a95);border-radius:0;box-shadow:none}
  .new-banner-fallback{padding:6px 16px}
  .new-banner-fallback img{object-fit:contain}
  .new-lottery-switch{margin:10px 12px;border-radius:9px}
  .new-lottery-switch button{height:42px}
  .new-section{border-radius:10px;border-left:1px solid #e6eaf2;border-right:1px solid #e6eaf2;margin:10px 8px;padding:18px 12px}
  .new-section-head h1,.new-section-head h2{font-size:19px}
  .new-ball{width:41px;height:41px;font-size:14px}
  .new-balls{gap:4px}
  .new-plus{margin-top:10px}
  .new-formula-grid{gap:9px}
  .new-formula-card{border-radius:9px}
  .new-card-media{height:108px}
  .new-announcements{min-height:46px;margin:6px 8px 0;padding:9px 11px;gap:8px;border-radius:9px}
  .new-announcements:before{width:20px;height:17px}
  .new-announcements>strong{font-size:13px}
  .new-announcement-viewport{font-size:11px}
  .new-announcement-more{font-size:11px}
  .new-announcements+.new-lottery-switch{margin-top:8px}
  body.new-site[data-page="home"] .new-main{margin-bottom:0}
  body.new-site[data-page="home"] .new-footer{padding:14px 16px 15px}
  body.new-site[data-page="home"] .new-footer img{width:122px}
  body.new-site[data-page="home"] .new-footer p{margin:7px 0}
  body.new-site[data-page="home"] .new-footer div{gap:16px}
  .new-mobile-nav{height:66px;border-top-color:#e0e4ee;box-shadow:0 -5px 18px rgba(23,35,61,.07)}
  .new-mobile-nav a{color:#626989}
  .new-mobile-nav a.is-active{color:#de0609}
  .new-mobile-nav span{font-size:inherit}
  .new-back-to-top{right:12px;bottom:78px;width:44px;height:44px}
  body.new-site.new-auth-page{background-color:#fff8f5;background-image:url('/assets/new-design/login-background.png');background-position:center top;background-size:390px 844px}
  .new-auth-shell{width:min(350px,calc(100% - 40px));padding-top:22px}
  .new-auth-brand img{width:104px;height:104px}
  .new-auth-card{padding:26px 24px;border-radius:22px}
  .new-detail-title,.new-detail-block{border-left:1px solid #e3e7ef;border-right:1px solid #e3e7ef;border-radius:9px;margin-left:8px;margin-right:8px}
  .new-detail-stats,.new-period-nav{margin-left:8px;margin-right:8px;border-radius:8px}
  .new-detail-meta-line{align-items:flex-start}
  .new-draw-history-list{margin-left:8px;margin-right:8px;border:1px solid #e3e7ef;border-radius:9px}
  .new-draw-history-list .new-ball{width:37px;height:37px;font-size:12px}
}
@media(max-width:370px){
  .new-banner{height:164px}
  .new-banner-fallback{padding:6px 10px}
  .new-section{margin-left:5px;margin-right:5px;padding-left:9px;padding-right:9px}
  .new-ball{width:38px;height:38px}
}

/* Formula gallery: match the supplied two-column card design */
.new-formula-section{background:#f8f9fb}
.new-formula-heading{display:flex;align-items:center;gap:10px;margin-bottom:10px}
.new-formula-heading h2{display:flex;align-items:center;gap:5px;margin:0;color:#17233d;font-size:20px;line-height:1.25;font-weight:900;white-space:nowrap}
.new-formula-heading h2>img{width:19px;height:24px;object-fit:contain}
.new-formula-heading h2>span{font-size:.82em}
.new-formula-heading p{margin:1px 0 0;color:#9ca2b1;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.new-formula-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.new-formula-card{
  --card-accent:#f1302d;
  --card-soft:#ffe1df;
  min-width:0;
  padding:9px 10px 10px;
  border:1px solid var(--card-soft);
  border-radius:13px;
  background:#fff;
  box-shadow:0 2px 6px rgba(23,35,61,.1);
  overflow:hidden;
}
.new-formula-card.new-card-accent-1{--card-accent:#f1302d;--card-soft:#ffd8d6}
.new-formula-card.new-card-accent-2{--card-accent:#fb6b2d;--card-soft:#ffe0cf}
.new-formula-card.new-card-accent-3{--card-accent:#f3ad00;--card-soft:#ffe7ae}
.new-formula-card.new-card-accent-4{--card-accent:#4f86f7;--card-soft:#d9e6ff}
.new-formula-card.new-card-accent-5{--card-accent:#8654df;--card-soft:#e8dcff}
.new-formula-card.new-card-accent-6{--card-accent:#2ca154;--card-soft:#d7efdf}
.new-formula-card.is-exclusion{border-style:solid}
.new-formula-card:hover{border-color:var(--card-accent);box-shadow:0 7px 18px rgba(23,35,61,.13)}
.new-card-top{height:23px;display:flex;align-items:center;gap:5px;padding:0;background:transparent;border:0;color:#253657}
.new-rank{width:22px;height:22px;display:grid;place-items:center;flex:0 0 auto;border-radius:6px;background:var(--card-accent);color:#fff;font-family:Arial,sans-serif;font-size:14px;line-height:1;font-weight:900}
.new-card-title{min-width:0;flex:1;color:#253657;font-size:19px;line-height:1.15;font-weight:900;letter-spacing:-.035em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.new-streak{display:flex;align-items:center;gap:3px;margin:0;color:#f1302d;font-size:12px;line-height:1;font-weight:900;white-space:nowrap}
.new-streak img{width:11px;height:14px;object-fit:contain}
.new-card-star{width:22px;height:22px;display:grid;place-items:center;margin-left:auto;flex:0 0 auto;padding:0;border:0;background:transparent}
.new-card-star img{display:block;width:19px;height:19px;object-fit:contain}
.new-formula-card-link{display:grid;grid-template-columns:minmax(0,1fr) min(42%,94px);align-items:center;gap:7px;margin-top:5px;min-width:0}
.new-card-copy{min-width:0;padding:0}
.new-card-copy .new-streak{margin:0 0 4px}
.new-formula-card .new-streak{display:none}
.new-card-copy p{margin:4px 0 0;color:#253657;font-size:12px;line-height:1.3;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.new-card-copy small{display:block;margin-top:7px;color:#253657;font-size:9px;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.new-card-media{height:68px;border-radius:8px;background:#fff1df;overflow:hidden;position:relative}
.new-card-media.is-pending{background:#fff1df}
.new-card-media img{display:block;width:100%;height:100%;object-fit:cover;object-position:center top;transform:none!important}
.new-card-pending-label{position:absolute;right:3px;bottom:3px;padding:2px 4px;border-radius:3px;background:rgba(222,6,9,.82);color:#fff;font-size:7px;line-height:1;box-shadow:0 1px 3px rgba(0,0,0,.12)}
.new-card-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.72fr);gap:8px;margin-top:8px}
.new-card-detail-button,.new-follow-button{position:static;inset:auto;width:100%;height:29px;display:flex;align-items:center;justify-content:center;border-radius:7px;background:#fff;font-size:11px;line-height:1;font-weight:800;white-space:nowrap}
.new-card-detail-button{gap:4px;border:1px solid var(--card-accent);color:var(--card-accent)}
.new-card-detail-button span{font-size:17px;line-height:10px;font-weight:400;transform:translateY(-1px)}
.new-follow-button{border:1px solid #17254f;color:#17254f}
.new-follow-button:hover{background:#f5f7fb;color:#17254f;border-color:#17254f}
.new-follow-button.is-active{border-color:#cdd2df;background:#f1f3f7;color:#7d8496}
@media(max-width:900px),(min-width:901px){
  .new-formula-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:640px),(min-width:641px){
  .new-formula-section{border:0;box-shadow:none;background:transparent;padding:12px;margin:6px 14px 0}
  .new-formula-heading{gap:6px;margin-bottom:8px}
  .new-formula-heading h2{font-size:17px}
  .new-formula-heading h2>img{width:16px;height:20px}
  .new-formula-heading p{font-size:9px}
  .new-formula-grid{gap:7px}
  .new-formula-card{min-height:151px;padding:9px 8px;border-radius:12px}
  .new-card-top{height:22px;gap:4px}
  .new-rank{width:21px;height:21px;border-radius:6px;font-size:13px}
  .new-card-title{font-size:clamp(16px,4.3vw,18px)}
  .new-streak{font-size:11px}
  .new-streak img{width:10px;height:13px}
  .new-card-star{width:20px;height:20px}
  .new-card-star img{width:18px;height:18px}
  .new-formula-card-link{grid-template-columns:minmax(0,1fr) min(46%,78px);gap:4px;min-height:70px;margin-top:5px}
  .new-card-copy p{font-size:11px;margin-top:3px}
  .new-card-copy small{font-size:8px;margin-top:6px}
  .new-card-media{height:60px;border-radius:7px}
  .new-card-actions{gap:6px;margin-top:8px}
  .new-card-detail-button,.new-follow-button{height:27px;border-radius:6px;font-size:10px}
}
@media(max-width:370px){
  .new-formula-section{padding-left:7px;padding-right:7px}
  .new-formula-grid{gap:5px}
  .new-formula-card{padding:7px 6px}
  .new-formula-card-link{grid-template-columns:minmax(0,1fr) 66px}
  .new-card-title{font-size:16px}
}

/* Trend statistics: supplied chart and number-ball layout */
.new-trend-section{border:0;background:transparent;box-shadow:none;padding:0}
.new-trend-heading{width:min(760px,100%);display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 auto 11px}
.new-trend-heading h2{display:flex;align-items:center;gap:8px;margin:0;color:#17233d;font-size:22px;line-height:1;font-weight:900}
.new-trend-heading h2 img{width:27px;height:23px;object-fit:contain}
.new-trend-tools{display:flex;align-items:center;gap:8px}
.new-trend-tools input{width:108px;height:38px;border:1px solid #dfe3ec;border-radius:10px;background:#fff;padding:0 12px;color:#253657;font-size:12px;outline:0;box-shadow:0 1px 3px rgba(23,35,61,.04)}
.new-trend-tools input:focus{border-color:#aeb7d3;box-shadow:0 0 0 3px rgba(89,100,217,.08)}
.new-trend-tools input::-webkit-inner-spin-button{display:none}
.new-trend-tools button{width:38px;height:38px;display:grid;place-items:center;padding:0;border:1px solid #dfe3ec;border-radius:10px;background:#fff;box-shadow:0 1px 3px rgba(23,35,61,.04)}
.new-trend-tools button img{width:14px;height:14px;object-fit:contain}
.new-trend-card{width:min(760px,100%);margin:0 auto;padding:18px 20px 15px;border:1px solid #e2e6ee;border-radius:17px;background:#fff;box-shadow:0 2px 8px rgba(23,35,61,.035)}
.new-trend-tabs{width:min(300px,100%);height:41px;margin:0 auto 13px;border:1px solid #dfe3ec;border-radius:10px;overflow:hidden}
.new-trend-tabs button{height:100%;font-size:15px;font-weight:800;color:#17233d}
.new-trend-tabs button.is-active{background:#f52f31;color:#fff}
.new-trend-count{margin:0 0 2px;text-align:center;color:#253657;font-size:12px;font-weight:700}
.new-trend-count strong{margin:0 5px;color:#f1302d;font-size:14px}
.new-trend-layout{display:block}
.new-donut-wrap{width:100%;min-height:0;display:block}
.new-donut{width:min(520px,100%);height:auto;margin:0 auto;border-radius:0;display:block;background:none!important}
.new-donut:after{content:none}
.new-donut svg{display:block;width:100%;height:auto;overflow:visible}
.new-zodiac-stats{width:min(570px,100%);display:flex;flex-wrap:wrap;justify-content:flex-start;gap:9px 15px;margin:1px auto 2px}
.new-zodiac-stat{display:flex;align-items:center;gap:4px;min-width:72px;padding:0;border:0;color:#253657}
.new-zodiac-stat i{width:10px;height:10px;flex:0 0 auto;border-radius:2px;background:var(--zodiac-color)}
.new-zodiac-stat strong{font-size:10px;line-height:1;font-weight:700}
.new-zodiac-stat span{margin:0;color:#253657;font-size:10px;line-height:1}
.new-number-ranking-panel{width:min(760px,100%);margin:18px auto 0;padding:11px 14px 3px;border:1px solid #e2e6ee;border-radius:15px;background:#fff;box-shadow:0 2px 8px rgba(23,35,61,.035)}
.new-number-ranking-row{padding:9px 0 11px;border-bottom:1px solid #e7eaf1}
.new-number-ranking-row:last-child{border-bottom:0}
.new-number-ranking-row h3{display:flex;align-items:center;gap:6px;margin:0 0 9px;color:#17233d;font-size:14px;line-height:1.2;font-weight:900}
.new-number-ranking-row h3 img{width:15px;height:19px;object-fit:contain}
.new-stat-balls{display:flex;align-items:center;justify-content:space-between;gap:6px;overflow:hidden}
.new-stat-ball{width:28px;height:28px;display:grid;place-items:center;flex:0 0 auto;border:2px solid;border-radius:50%;background:#fff;font-family:Arial,sans-serif;font-size:10px;line-height:1;font-weight:700}
.new-stat-ball-red{border-color:#ff3138;color:#ff3138}
.new-stat-ball-blue{border-color:#2d82e8;color:#2d82e8}
.new-stat-ball-green{border-color:#21a653;color:#21a653}
@media(max-width:640px),(min-width:641px){
  .new-trend-section{margin:15px 14px 0;padding:0}
  .new-trend-heading{margin-bottom:10px}
  .new-trend-heading h2{gap:7px;font-size:19px}
  .new-trend-heading h2 img{width:24px;height:21px}
  .new-trend-tools{gap:6px}
  .new-trend-tools input{width:106px;height:36px;border-radius:9px;font-size:11px}
  .new-trend-tools button{width:36px;height:36px;border-radius:9px}
  .new-trend-card{padding:14px 10px 13px;border-radius:15px}
  .new-trend-tabs{height:40px;margin-bottom:12px}
  .new-trend-tabs button{font-size:14px}
  .new-trend-count{font-size:11px}
  .new-trend-count strong{font-size:13px}
  .new-donut{width:100%}
  .new-zodiac-stats{gap:9px 10px;padding:0 4px}
  .new-zodiac-stat{min-width:45px;flex:1 0 calc(16.666% - 10px)}
  .new-zodiac-stat i{width:9px;height:9px}
  .new-zodiac-stat strong,.new-zodiac-stat span{font-size:9px}
  .new-number-ranking-panel{margin-top:16px;padding:9px 12px 2px;border-radius:14px}
  .new-number-ranking-row{padding:9px 0 10px}
  .new-number-ranking-row h3{font-size:12px;margin-bottom:8px}
  .new-number-ranking-row h3 img{width:14px;height:18px}
  .new-stat-balls{gap:4px}
  .new-stat-ball{width:26px;height:26px;border-width:1.5px;font-size:9px}
}
@media(max-width:370px){
  .new-trend-section{margin-left:8px;margin-right:8px}
  .new-trend-heading h2{font-size:18px}
  .new-trend-tools input{width:92px}
  .new-trend-card{padding-left:7px;padding-right:7px}
  .new-number-ranking-panel{padding-left:8px;padding-right:8px}
  .new-stat-balls{gap:3px}
  .new-stat-ball{width:24px;height:24px;font-size:8px}
}

/* Authentication background: scale the supplied 390×844 artwork to the full stage. */
body.new-site.new-auth-page{
  position:relative;
  min-height:100vh;
  min-height:100dvh;
  overflow-x:hidden;
  background:#f2e7e5;
  isolation:isolate;
}
body.new-site.new-auth-page:before{
  content:"";
  position:absolute;
  z-index:0;
  top:0;
  bottom:0;
  left:50%;
  width:min(430px,100vw);
  min-height:100vh;
  min-height:100dvh;
  transform:translateX(-50%);
  background:#fff8f5 url('/assets/new-design/login-background.png') center center/cover no-repeat;
  box-shadow:0 0 24px rgba(86,53,46,.08);
  pointer-events:none;
}
body.new-site.new-auth-page .new-auth-shell{position:relative;z-index:1}
@media(max-width:640px),(min-width:641px){
  body.new-site.new-auth-page:before{width:100vw;box-shadow:none}
}

/* Zodiac trend rows shown below the hot/cold number rankings. */
.new-zodiac-ranking-panel{width:min(760px,100%);margin:16px auto 0;padding:7px 14px 0;border:1px solid #e1e5ee;border-radius:15px;background:#fff;box-shadow:0 2px 8px rgba(23,35,61,.035);overflow:hidden}
.new-zodiac-ranking-row{min-height:50px;display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid #e7eaf1}
.new-zodiac-ranking-row h3{min-width:0;display:flex;align-items:center;gap:7px;margin:0;color:#253657;font-size:12px;line-height:1.2;font-weight:800;white-space:nowrap}
.new-zodiac-ranking-row h3 img{width:20px;height:12px;flex:0 0 auto;object-fit:contain}
.new-zodiac-pills{display:flex;align-items:center;justify-content:flex-end;gap:4px;flex:0 0 auto}
.new-zodiac-pills span{width:29px;height:31px;display:grid;place-items:center;border:1px solid #e2e5ef;border-radius:9px;background:#f8f8fd;color:#253657;font-size:11px;font-weight:700;box-shadow:inset 0 1px 1px rgba(89,100,217,.02)}
.new-zodiac-ranking-note{height:31px;display:flex;align-items:center;justify-content:center;gap:6px;margin:0 -14px;padding:0;border-radius:12px 12px 0 0;background:#f5f3ff;color:#6667c8;font-size:11px;font-weight:700}
.new-zodiac-ranking-note img{width:13px;height:13px;object-fit:contain}
@media(max-width:640px),(min-width:641px){
  .new-zodiac-ranking-panel{margin-top:16px;padding:5px 12px 0;border-radius:14px}
  .new-zodiac-ranking-row{min-height:48px;gap:6px}
  .new-zodiac-ranking-row h3{gap:5px;font-size:10px}
  .new-zodiac-ranking-row h3 img{width:17px;height:11px}
  .new-zodiac-pills{gap:3px}
  .new-zodiac-pills span{width:25px;height:29px;border-radius:8px;font-size:10px}
  .new-zodiac-ranking-note{height:30px;margin-left:-12px;margin-right:-12px;font-size:10px}
}
@media(max-width:370px){
  .new-zodiac-ranking-panel{padding-left:8px;padding-right:8px}
  .new-zodiac-ranking-row h3{font-size:9px}
  .new-zodiac-pills span{width:23px;height:27px;font-size:9px}
  .new-zodiac-ranking-note{margin-left:-8px;margin-right:-8px}
}

/* Figma 2026-08 trend dashboard: eight compact statistics cards. */
.new-trend-stat-tabs{width:min(760px,100%);display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0 auto 12px}
.new-trend-stat-tabs button{height:43px;border:1px solid #d8dde7;border-radius:8px;background:#fff;color:#17233d;font-size:15px;font-weight:900;box-shadow:0 2px 3px rgba(23,35,61,.09);transition:border-color .18s,background .18s,color .18s,box-shadow .18s}
.new-trend-stat-tabs button.is-active{border-color:#f1302d;background:#f1302d;color:#fff;box-shadow:0 3px 8px rgba(241,48,45,.2)}
.new-trend-stat-tabs button:focus-visible{outline:3px solid rgba(241,48,45,.18);outline-offset:2px}
.new-trend-stat-list{width:min(760px,100%);display:flex;flex-direction:column;gap:13px;margin:0 auto}
.new-trend-stat-card[hidden]{display:none!important}
.new-trend-stat-card{overflow:hidden;padding:14px 16px 13px;border:1px solid #e2e6ef;border-radius:15px;background:#fff;box-shadow:0 2px 8px rgba(23,35,61,.035)}
.new-trend-stat-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}
.new-trend-stat-head h3{position:relative;margin:0;padding-left:11px;color:#17233d;font-size:17px;line-height:1.2;font-weight:900}
.new-trend-stat-head h3:before{content:"";position:absolute;left:0;top:2px;bottom:2px;width:3px;border-radius:3px;background:#f43136}
.new-trend-stat-head>span{color:#a0a8b7;font-size:10px}
.new-trend-stat-head>span strong{font-weight:500}
.new-trend-stat-body>.new-skeleton{height:180px;border-radius:10px}
.new-trend-extremes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:12px}
.new-trend-extreme{min-width:0;height:45px;display:grid;grid-template-columns:25px minmax(0,1fr) auto;align-items:center;gap:6px;padding:5px 8px;border:1px solid;border-radius:8px;background:#fff}
.new-trend-extreme.is-hot{border-color:#ffd7d4;background:#fffafa;color:#ef3c36}
.new-trend-extreme.is-cold{border-color:#d9e5ff;background:#fafcff;color:#376ccc}
.new-trend-extreme>img{width:24px;height:29px;object-fit:contain}
.new-trend-extreme>span{min-width:0;display:flex;flex-direction:column;gap:2px}
.new-trend-extreme small{color:#9ca4b3;font-size:8px;line-height:1}
.new-trend-extreme b{overflow:hidden;color:inherit;font-size:11px;line-height:1.15;white-space:nowrap;text-overflow:ellipsis}
.new-trend-extreme b em{font-style:normal}
.new-trend-extreme>strong{font-size:11px;line-height:1;white-space:nowrap}
.new-trend-chart-table{display:grid;grid-template-columns:minmax(0,48%) minmax(0,52%);align-items:center;gap:4px}
.new-trend-donut{min-width:0}
.new-trend-donut svg{display:block;width:100%;height:auto}
.new-trend-table{min-width:0;color:#253657;font-size:9px}
.new-trend-table-head,.new-trend-table-row{display:grid;grid-template-columns:minmax(0,1.25fr) .8fr .8fr;align-items:center;column-gap:4px}
.new-trend-table-head{height:20px;color:#8f98a9;font-size:8px}
.new-trend-table-row{min-height:17px;border-top:1px solid #f0f2f6}
.new-trend-table-row>span{display:flex;align-items:center;min-width:0;gap:5px;font-weight:700}
.new-trend-table-row i{width:7px;height:7px;flex:0 0 auto;border-radius:2px;background:var(--trend-color)}
.new-trend-table-row b{text-align:center;font-size:9px}
.new-trend-table-row em{text-align:right;color:#7d8798;font-size:8px;font-style:normal}
.new-trend-podium{height:126px;display:flex;align-items:flex-end;justify-content:center;gap:8px;padding:0 15% 4px}
.new-trend-podium-item{width:82px;display:flex;flex-direction:column;align-items:center;color:#53617d}
.new-trend-podium-item>.new-trend-number-ball{margin-bottom:4px}
.new-trend-podium-item>span{margin-bottom:4px;font-size:10px}
.new-trend-podium-item>i{width:100%;height:28px;display:grid;place-items:center;border-radius:5px 5px 0 0;background:#51a84f;color:#fff;font-size:13px;font-style:normal;font-weight:800}
.new-trend-podium-item.is-rank-1>i{height:46px;background:#d64d46}
.new-trend-podium-item.is-rank-2>i{height:34px;background:#396cc6}
.new-trend-number-ball{width:32px;height:32px;display:grid;place-items:center;border:2px solid;border-radius:50%;background:#fff;font-family:Arial,sans-serif;font-size:11px;line-height:1}
.new-trend-top-ten{padding-top:10px;border-top:1px solid #eaedf3}
.new-trend-top-ten h4{margin:0 0 8px;color:#17233d;font-size:12px}
.new-trend-top-ten>div{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:4px}
.new-trend-top-ten>div>span{min-width:0;display:flex;flex-direction:column;align-items:center;gap:4px}
.new-trend-top-ten .new-trend-number-ball{width:27px;height:27px;font-size:9px}
.new-trend-top-ten small{color:#8892a3;font-size:8px;white-space:nowrap}
.new-trend-bars{height:158px;display:flex;align-items:flex-end;justify-content:space-around;gap:7px;padding:19px 6px 0;border-left:1px solid #dfe4ec;border-bottom:1px solid #dfe4ec;background:repeating-linear-gradient(to top,transparent 0,transparent 31px,#eef1f5 32px)}
.new-trend-bar{height:100%;min-width:0;display:flex;flex:1;flex-direction:column;align-items:center;justify-content:flex-end;position:relative}
.new-trend-bar>b{margin-bottom:3px;color:#56627a;font-size:8px;line-height:1;white-space:nowrap}
.new-trend-bar>i{width:min(25px,78%);height:var(--bar-height);min-height:4px;border-radius:2px 2px 0 0;background:#90b3e9}
.new-trend-bar.is-hot>i{background:#db5148}.new-trend-bar.is-cold>i{background:#5f8fd8}
.new-trend-bar>span{position:absolute;top:calc(100% + 5px);color:#667186;font-size:8px;white-space:nowrap}
.new-trend-bar-summary{display:grid;grid-template-columns:repeat(2,1fr);gap:9px;margin:20px 0 0}
.new-trend-bar-summary span{height:24px;display:flex;align-items:center;justify-content:center;border-radius:6px;background:#fff4f3;color:#df443e;font-size:9px}
.new-trend-bar-summary span+span{background:#f2f6ff;color:#376ccc}
.new-trend-head-chart{position:relative;padding:18px 8px 0 31px}
.new-trend-head-chart>strong{position:absolute;top:0;left:0;color:#17233d;font-size:10px;line-height:1;font-weight:800}
.new-trend-head-plot{position:relative;height:132px;margin-bottom:22px;border-left:1px solid #cfd5df;border-bottom:1px solid #cfd5df}
.new-trend-head-axis{position:absolute;z-index:0;inset:0;pointer-events:none}
.new-trend-head-axis>span{position:absolute;left:0;right:0;bottom:var(--tick-bottom);height:1px}
.new-trend-head-axis b{position:absolute;right:calc(100% + 7px);top:0;min-width:20px;transform:translateY(-50%);color:#606b7e;font-size:9px;line-height:1;text-align:right;font-weight:500}
.new-trend-head-axis i{position:absolute;left:-4px;right:0;top:0;height:1px;background:#edf0f4}
.new-trend-head-axis>span:first-child i,.new-trend-head-axis>span:last-child i{background:#dfe3e9}
.new-trend-head-bars{position:absolute;z-index:1;inset:0 5px 0 6px;display:flex;align-items:flex-end;justify-content:space-around;gap:13px}
.new-trend-head-bar{position:relative;height:100%;min-width:0;display:flex;flex:1;flex-direction:column;align-items:center;justify-content:flex-end}
.new-trend-head-bar>b{margin-bottom:4px;color:#17233d;font-size:10px;line-height:1;font-weight:800;white-space:nowrap}
.new-trend-head-bar>i{width:min(30px,82%);height:var(--head-height);min-height:3px;background:#7da5e3}
.new-trend-head-bar.is-hot>i{background:#ee5a42}
.new-trend-head-bar>span{position:absolute;top:calc(100% + 6px);color:#35415a;font-size:9px;line-height:1;white-space:nowrap}
.new-trend-head-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:hidden;margin-top:8px;border:1px solid #ffc4c0;border-radius:6px;background:#fffafa}
.new-trend-head-summary span{height:25px;display:flex;align-items:center;justify-content:center;color:#ef4c43;font-size:9px;font-weight:700}
.new-trend-head-summary span+span{color:#3972d4}
.new-trend-split{height:43px;display:flex;overflow:hidden;margin-top:17px;border-radius:7px}
.new-trend-split>div{min-width:0;display:flex;align-items:center;justify-content:space-around;padding:0 10px;background:var(--split-color);color:#fff}
.new-trend-split b,.new-trend-split strong{font-size:13px;white-space:nowrap}
.new-trend-split-values{display:grid;grid-template-columns:repeat(2,1fr);margin-top:8px;text-align:center;color:#56627a;font-size:11px}
.new-trend-stat-kind-size .new-trend-stat-body>p,.new-trend-stat-kind-parity .new-trend-stat-body>p{margin:11px 0 1px;text-align:center;color:#8c95a5;font-size:10px}
.new-trend-disclaimer{height:31px;display:flex;align-items:center;justify-content:center;gap:6px;margin:1px 0 0;border-radius:12px;background:#f5f3ff;color:#6667c8;font-size:11px;font-weight:700}
.new-trend-disclaimer img{width:13px;height:13px}

@media(max-width:640px),(min-width:641px){
  .new-trend-stat-tabs{gap:7px;margin-bottom:9px}
  .new-trend-stat-tabs button{height:39px;border-radius:7px;font-size:13px}
  .new-trend-stat-list{gap:10px}
  .new-trend-stat-card{padding:12px 11px 11px;border-radius:13px}
  .new-trend-stat-head{margin-bottom:10px}
  .new-trend-stat-head h3{font-size:15px}
  .new-trend-extremes{gap:6px;margin-bottom:9px}
  .new-trend-extreme{height:41px;grid-template-columns:21px minmax(0,1fr) auto;gap:4px;padding:4px 6px}
  .new-trend-extreme>img{width:20px;height:25px}
  .new-trend-extreme small{font-size:7px}
  .new-trend-extreme b,.new-trend-extreme>strong{font-size:9px}
  .new-trend-chart-table{grid-template-columns:minmax(0,47%) minmax(0,53%);gap:2px}
  .new-trend-table{font-size:8px}
  .new-trend-table-head{font-size:7px}
  .new-trend-table-row{min-height:15px}
  .new-trend-table-row b{font-size:8px}
  .new-trend-table-row em{font-size:7px}
  .new-trend-podium{padding-left:7%;padding-right:7%}
  .new-trend-top-ten>div{gap:2px}
  .new-trend-top-ten .new-trend-number-ball{width:25px;height:25px}
  .new-trend-bars{height:142px;gap:3px;padding-left:3px;padding-right:3px}
  .new-trend-bar>i{width:min(22px,82%)}
}
@media(max-width:370px){
  .new-trend-stat-card{padding-left:8px;padding-right:8px}
  .new-trend-extreme{grid-template-columns:18px minmax(0,1fr) auto;padding-left:4px;padding-right:4px}
  .new-trend-extreme>img{width:17px}
  .new-trend-extreme b,.new-trend-extreme>strong{font-size:8px}
  .new-trend-table-head,.new-trend-table-row{column-gap:2px}
  .new-trend-table-row>span{gap:3px}
  .new-trend-table-row i{width:6px;height:6px}
  .new-trend-top-ten .new-trend-number-ball{width:22px;height:22px;font-size:8px}
  .new-trend-top-ten small{font-size:7px}
  .new-trend-bars{height:132px}
  .new-trend-bar>b,.new-trend-bar>span{font-size:7px}
  .new-trend-split>div{padding:0 5px}
  .new-trend-split b,.new-trend-split strong{font-size:11px}
  .new-trend-head-bars{gap:7px}
  .new-trend-head-bar>i{width:min(26px,82%)}
  .new-trend-head-summary span{font-size:8px}
}

/* Default homepage banner: use the page grey and scale the supplied artwork up. */
.new-banner.is-default-banner{height:auto;min-height:0;background:#f5f7fb;box-shadow:none}
.new-banner.is-default-banner .new-banner-fallback{height:auto;display:flex;flex-direction:row;align-items:center;justify-content:center;padding:10px;background:#f5f7fb}
.new-banner.is-default-banner .new-banner-fallback img{width:100%;max-width:760px;height:auto;max-height:none;aspect-ratio:744/294;flex:0 1 760px;object-fit:contain;border-radius:11px}
@media(max-width:640px),(min-width:641px){
  .new-main{margin-top:0}
  .new-banner.is-default-banner{height:auto;margin:0;background:#f4f6fa;border-radius:0}
  .new-banner.is-default-banner .new-banner-fallback{height:auto;padding:2px 8px;background:#f4f6fa}
  .new-banner.is-default-banner .new-banner-fallback img{width:100%;height:auto;max-height:none;border-radius:9px}
  .new-banner.is-default-banner + .new-announcements{margin-top:2px}
}

/* Smooth cross-period derivation curves for legacy algorithm details. */
.new-old-history{position:relative}
.new-old-history-arrows{position:absolute;z-index:3;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}
.new-old-history-arrow-path{fill:none;stroke:#f1302d;stroke-width:1.45;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke;opacity:.92}
.new-old-history-arrow-path.is-exclusion{stroke-dasharray:5 4}
.new-old-history-arrows marker path{fill:#f1302d}
.new-old-history-arrow-label{fill:#f1302d;stroke:#fff;stroke-width:3px;paint-order:stroke fill;font-size:8px;font-weight:700;letter-spacing:.01em}
.new-old-history-arrow-label.is-exclusion{fill:#dc3545}
.new-old-derivation{display:none}
.new-old-history-row{align-items:center;padding-top:15px;padding-bottom:15px;min-height:90px}
.new-old-status{display:block!important;min-width:36px;width:max-content;margin:8px auto 0!important;padding:3px 8px!important;border-radius:10px;font-size:10px!important;line-height:1.2;text-align:center;font-weight:800}
.new-old-ball .new-ball{width:min(42px,calc(100% - 2px));height:auto;aspect-ratio:1;margin:0 auto;border:0;background-color:transparent;background-position:center;background-repeat:no-repeat;background-size:contain;box-shadow:none;font-size:13px;font-weight:800}
.new-old-ball .new-ball-red{background-image:url('/assets/new-design/ball-red.png')}
.new-old-ball .new-ball-blue{background-image:url('/assets/new-design/ball-blue.png')}
.new-old-ball .new-ball-green{background-image:url('/assets/new-design/ball-green.png')}
.new-old-special .new-ball{box-shadow:none}
.new-old-ball small{min-height:11px;margin-top:3px;color:#4b556f;white-space:nowrap}
@media(max-width:640px),(min-width:641px){
  .new-old-history-row{padding-top:12px;padding-bottom:12px;min-height:80px}
  .new-old-status{min-width:34px;padding:3px 7px!important;font-size:9px!important}
  .new-old-ball .new-ball{width:min(37px,calc(100% - 2px));height:auto;border:0;font-size:11px}
  .new-old-ball small{font-size:7px}
}
@media(max-width:370px){.new-old-ball .new-ball{width:min(32px,calc(100% - 1px));font-size:10px}}

/* Keep long legacy-detail section titles on one line on phones. */
@media(max-width:640px),(min-width:641px){
  .new-detail-page .new-detail-block-head{gap:8px}
  .new-detail-page .new-detail-block-head h2{flex:0 0 auto;font-size:clamp(17px,4.4vw,19px);line-height:1.2;white-space:nowrap}
  .new-detail-page .new-detail-block-head>span{min-width:0;font-size:8px;line-height:1.25;text-align:right}
}

/* Pending next issue shown above completed legacy prediction history. */
.new-old-pending-row{background:#fffdfd!important}
.new-old-pending-row .new-old-issue small{color:#8791a6;font-weight:700}
.new-old-pending-ball .new-ball{border:2px solid #ccd5e4!important;border-radius:50%;background:#f8fafc!important;color:#9aa6bb!important;box-shadow:inset 0 0 0 2px #fff!important;font-size:15px!important}
.new-old-pending-ball small{color:#9aa3b5}
.new-old-pending-special .new-ball{border:2px solid #f1302d!important;border-radius:50%;background:#fff!important;color:#f1302d!important;box-shadow:0 0 0 2px rgba(241,48,45,.1)!important;font-size:13px!important;line-height:1;white-space:nowrap}
.new-old-pending-special .new-ball.is-medium{font-size:9px!important;letter-spacing:-.4px}
.new-old-pending-special .new-ball.is-long{font-size:7px!important;letter-spacing:-.65px}
.new-old-pending-special small{color:#f1302d;font-weight:700}
.new-old-history.is-exclusion .new-old-pending-special .new-ball{border-style:dashed!important}
@media(max-width:640px),(min-width:641px){
  .new-old-pending-ball .new-ball{font-size:13px!important}
  .new-old-pending-special .new-ball{font-size:12px!important}
  .new-old-pending-special .new-ball.is-medium{font-size:8px!important}
  .new-old-pending-special .new-ball.is-long{font-size:6px!important}
}

/* Formula-image detail page: supplied compact mobile hierarchy. */
body.new-site.new-formula-detail-body{background:#f4f5f7;color:#17233d;padding-bottom:30px}
.new-header-search-form{min-width:0;max-width:470px;flex:1;display:block}
.new-header-search-field{min-width:0;height:44px;display:flex;align-items:center;padding:0 14px;border:1px solid #e3e7f0;border-radius:22px;background:#f7f8fb;box-shadow:inset 0 1px 2px rgba(23,35,61,.02)}
.new-header-search-field:focus-within{border-color:#b9bdeb;box-shadow:0 0 0 4px rgba(89,100,217,.09);background:#fff}
.new-header-search-submit{width:24px;height:32px;display:grid;place-items:center;flex:0 0 auto;padding:0;border:0;background:transparent;cursor:pointer}
.new-header-search-submit>img{width:17px;height:17px;object-fit:contain}
.new-header-search-field>input{min-width:0;width:100%;height:100%;padding:0 9px;border:0;outline:0;background:transparent;color:#17233d;font-size:13px}
.new-header .new-account-nav a{display:block}
.new-member-tabs{grid-template-columns:repeat(2,1fr)}
.new-member-profile-stats{grid-template-columns:1fr}
.new-member-tabs a[hidden],.new-member-profile-stats>div[hidden]{display:none!important}
@media(max-width:640px),(min-width:641px){
  body.new-site[data-page="home"]{padding-bottom:0}
  body.new-site[data-page="home"] .new-header{height:66px;padding:0 9px;gap:6px}
  body.new-site[data-page="home"] .new-brand{width:94px}
  body.new-site[data-page="home"] .new-brand img{height:42px}
  body.new-site[data-page="home"] .new-header-search-form{max-width:none}
  body.new-site[data-page="home"] .new-header-search-field{height:38px;padding:0 7px;border-radius:20px}
  body.new-site[data-page="home"] .new-header-search-submit{width:22px;height:30px}
  body.new-site[data-page="home"] .new-header-search-submit>img{width:15px;height:15px}
  body.new-site[data-page="home"] .new-header-search-field>input{padding:0 5px;font-size:10px;text-overflow:ellipsis}
  body.new-site[data-page="home"] .new-account-nav{display:flex;gap:5px;margin-left:0}
  body.new-site[data-page="home"] .new-account-nav a{min-width:39px}
  body.new-site[data-page="home"] .new-account-nav img{width:19px;height:19px}
  body.new-site[data-page="home"] .new-account-nav small{max-width:none;margin-top:3px;font-size:9px;font-weight:700}
  body.new-site[data-page="home"] .new-back-to-top{bottom:14px}
}
@media(max-width:360px){
  body.new-site[data-page="home"] .new-header{padding-left:6px;padding-right:6px;gap:4px}
  body.new-site[data-page="home"] .new-brand{width:84px}
  body.new-site[data-page="home"] .new-account-nav{gap:2px}
  body.new-site[data-page="home"] .new-account-nav a{min-width:35px}
  body.new-site[data-page="home"] .new-account-nav small{font-size:8px}
}
.new-search-form{width:100%;display:grid;grid-template-columns:minmax(0,1fr) 76px;align-items:center;gap:10px}
.new-search-input-shell{min-width:0;height:54px;display:flex;align-items:center;padding:0 16px;border:1px solid #e1e5ee;border-radius:8px;background:#fff;box-shadow:0 6px 18px rgba(23,35,61,.045)}
.new-search-input-shell:focus-within{border-color:#f1302d;box-shadow:0 0 0 3px rgba(241,48,45,.08)}
.new-search-input-shell svg{width:18px;height:18px;flex:0 0 auto;fill:none;stroke:#626989;stroke-width:1.8}
.new-search-input-shell input{min-width:0;width:100%;height:100%;padding:0 10px;border:0;outline:0;background:transparent;color:#17233d;font-size:13px}
.new-search-form>button{height:46px;padding:0;border:0;border-radius:7px;background:#f1302d;color:#fff;font-size:13px;font-weight:800;box-shadow:0 6px 14px rgba(241,48,45,.2)}
@media(max-width:640px),(min-width:641px){
  .new-search-form{width:calc(100% - 24px);grid-template-columns:minmax(0,1fr) 64px;gap:8px;margin:0 12px}
  .new-search-input-shell{height:44px;padding:0 11px}
  .new-search-input-shell input{padding:0 8px;font-size:12px}
  .new-search-form>button{height:44px;font-size:12px}
}
.new-detail-stats strong{font-family:"SimSun","宋体","Songti SC",serif}
.new-formula-detail-header{width:min(430px,100%);height:55px;display:grid;grid-template-columns:80px minmax(0,1fr) 82px;align-items:center;margin:0 auto;padding:0 12px;border-bottom:1px solid #e4e7ec;background:rgba(255,255,255,.97);position:sticky;top:0;z-index:60;box-shadow:0 2px 8px rgba(23,35,61,.04)}
.new-formula-detail-header>a{display:flex;align-items:center;gap:3px;color:#253657;font-size:12px}
.new-formula-detail-header>a span{font-size:22px;line-height:1;transform:translateY(-1px)}
.new-formula-detail-header>strong{display:block;min-width:0;text-align:center;color:#17233d;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.new-formula-detail-header>strong i{margin:0 6px;color:#7d8496;font-style:normal}
.new-detail-favorite-toggle{min-width:0;display:flex;align-items:center;justify-content:flex-end;gap:4px;padding:0;border:0;background:transparent;color:#f1302d;font-size:11px;font-weight:800;white-space:nowrap}
.new-detail-favorite-toggle img{width:17px;height:17px;object-fit:contain}
.new-formula-detail-page{width:min(430px,100%);margin:0 auto;padding:10px 12px 24px}
.new-detail-filter-card{border:1px solid #e1e5eb;border-radius:10px;background:#fff;box-shadow:0 2px 8px rgba(23,35,61,.045);overflow:hidden}
.new-detail-filter-row{min-height:45px;display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:5px;padding:4px 9px;border-bottom:1px solid #eceef2}
.new-detail-filter-row:last-child{border-bottom:0}
.new-detail-filter-row>strong{color:#17233d;font-size:11px}
.new-detail-filter-options{min-width:0;display:flex;align-items:center;gap:4px;overflow:hidden}
.new-detail-filter-options a,.new-detail-filter-options span{min-width:46px;height:25px;display:grid;place-items:center;padding:0 6px;border-radius:13px;color:#253657;font-size:9px;white-space:nowrap}
.new-detail-filter-options .is-active{background:#f1302d;color:#fff;font-weight:800;box-shadow:0 3px 8px rgba(241,48,45,.18)}
.new-detail-filter-row>button{padding:0;border:0;background:transparent;color:#f1302d;font-size:9px;white-space:nowrap}
.new-detail-period-card .new-detail-filter-options>a:nth-child(n+5){display:none}
.new-detail-period-card .new-detail-filter-row.is-expanded{align-items:start}
.new-detail-period-card .new-detail-filter-row.is-expanded .new-detail-filter-options{flex-wrap:wrap;overflow:visible;padding:6px 0}
.new-detail-period-card .new-detail-filter-row.is-expanded .new-detail-filter-options>a:nth-child(n+5){display:grid}
.new-detail-period-card .new-detail-filter-row.is-expanded>strong,.new-detail-period-card .new-detail-filter-row.is-expanded>button{margin-top:8px}
.new-detail-action-row{display:flex;align-items:center;justify-content:space-between;gap:7px;margin:9px 0}
.new-detail-follow-button.new-follow-button{flex:0 0 auto;min-width:112px;width:auto;height:31px;padding:0 12px;border:1px solid #f1302d;border-radius:7px;background:#fff;color:#f1302d;font-size:14px;font-weight:800;box-shadow:none}
.new-detail-follow-button.new-follow-button.is-active{border-color:#f1302d;background:#fff7f6;color:#f1302d}
.new-detail-update-time{min-width:0;display:flex;align-items:center;justify-content:center;gap:4px;color:#7d8496;font-size:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.new-detail-update-time img{width:13px;height:13px;object-fit:contain}
.new-detail-follower-pill{flex:0 0 auto;width:max-content;min-width:100px;max-width:none;height:30px;display:flex;align-items:center;justify-content:center;gap:3px;padding:0 10px;box-sizing:border-box;border:1px solid #ffd0cb;border-radius:7px;background:#fff8f7;color:#f1302d;font-size:14px;font-weight:800;white-space:nowrap}
.new-detail-follower-pill img{width:14px;height:11px;object-fit:contain}
.new-detail-draw-card{min-height:142px;display:flex;flex-direction:column;justify-content:center;padding:17px 18px 14px;border:1px solid #e1e5eb;border-radius:11px;background:#fff;box-shadow:0 3px 11px rgba(23,35,61,.07)}
.new-detail-card-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}
.new-detail-card-heading h2{margin:0;color:#17233d;font-size:17px;line-height:1.2;font-weight:900}
.new-detail-card-heading a{color:#253657;font-size:10px;white-space:nowrap}
.new-detail-draw-issue{display:flex;align-items:center;gap:7px;margin:8px 0 3px;color:#253657;font-size:10px}
.new-detail-card-heading .new-detail-draw-issue{margin:0}
.new-detail-draw-issue strong{font-size:14px}
.new-detail-pending-meta{width:100%;display:flex;align-items:center;justify-content:center;gap:15px;margin:6px 0 0;color:#253657;font-size:14px;font-weight:800;line-height:1.3;white-space:nowrap}
.new-detail-pending-meta strong{color:#f1302d;font-family:Arial,sans-serif;font-size:15px;font-weight:900;font-variant-numeric:tabular-nums}
.new-detail-pending-balls .new-ball-wrap{flex:0 1 42px;min-width:0}
.new-detail-pending-ball{display:grid;place-items:center;width:42px;height:42px;margin:0 auto;background:url('/assets/new-design/pending-draw-ball.png?v=20260919-1') center/contain no-repeat;color:#52627a;font-size:14px;font-weight:900;line-height:1}
.new-detail-draw-card .new-balls{justify-content:space-between;gap:6px;padding:13px 0 0}
.new-detail-draw-card .new-ball{width:42px;height:42px;font-size:14px}
.new-detail-draw-card .new-ball-wrap small{margin-top:5px;font-size:14px;font-weight:800;color:#253657;white-space:nowrap}
.new-detail-draw-card .new-plus{font-size:20px;margin-top:11px}
.new-detail-analysis-card{margin-top:10px;padding:9px 11px;border:1px solid #ffd1a5;border-radius:8px;background:#fffaf4}
.new-detail-analysis-card h2{display:flex;align-items:center;gap:5px;margin:0 0 6px;color:#17233d;font-size:12px;font-weight:900}
.new-detail-analysis-card h2 img{width:12px;height:12px;object-fit:contain}
.new-detail-analysis-card p{display:block;height:auto;margin:0;color:#253657;font-size:9px;line-height:1.55;white-space:normal;overflow:visible;overflow-wrap:anywhere;word-break:break-word}
.new-detail-analysis-card>strong{display:block;margin-top:4px;color:#f1302d;font-size:9px;line-height:1.4}
.new-detail-formula-section{margin-top:9px}
.new-detail-formula-heading{height:28px;display:flex;align-items:center;justify-content:space-between;padding-left:10px;position:relative}
.new-detail-formula-heading:before{content:"";position:absolute;left:0;width:3px;height:21px;border-radius:2px;background:#f1302d}
.new-detail-formula-heading h2{margin:0;color:#17233d;font-size:14px;font-weight:900}
.new-detail-formula-heading>span{display:flex;align-items:center;gap:3px;color:#f1302d;font-size:9px;font-weight:800}
.new-detail-formula-heading>span img{width:10px;height:13px;object-fit:contain}
.new-detail-formula-frame{padding:12px 9px 0;border:1px solid #e1e5eb;border-radius:9px;background:#fff;box-shadow:0 2px 8px rgba(23,35,61,.045)}
.new-detail-formula-image{display:block;text-align:center;position:relative;border-radius:8px;background:#fff7eb;overflow:hidden}
.new-detail-formula-image>img{display:block;width:100%;max-width:none;height:auto;margin:0;object-fit:contain}
.new-detail-formula-image>b{position:absolute;right:8px;top:8px;padding:4px 7px;border-radius:4px;background:rgba(241,48,45,.88);color:#fff;font-size:8px}
.new-detail-image-caption{min-height:27px;display:flex;align-items:center;justify-content:center;position:relative;color:#7d8496;font-size:8px}
.new-detail-image-caption>span{display:flex;align-items:center;justify-content:center;gap:6px;font-size:20px;line-height:1.5}
.new-detail-image-caption>span>img{flex:0 0 22px;width:22px;height:22px;object-fit:contain}
.new-detail-image-caption>button{position:absolute;right:0;display:flex;align-items:center;gap:3px;padding:3px 5px;border:0;background:transparent;color:#7d8496;font-size:8px}
.new-detail-image-caption>button.is-active{color:#f1302d}
.new-detail-image-caption>button img{width:12px;height:12px;object-fit:contain}
@media(max-width:640px),(min-width:641px){
  .new-formula-detail-header{grid-template-columns:72px minmax(0,1fr) 72px;height:44px;padding:0 10px}
  .new-formula-detail-header>a{font-size:14px;white-space:nowrap}
  .new-formula-detail-header>a span{font-size:23px}
  .new-formula-detail-header>strong{font-size:17px}
  .new-formula-detail-header>strong i{margin:0 4px}
  .new-detail-favorite-toggle{font-size:14px}
  .new-detail-favorite-toggle img{width:18px;height:18px}
  .new-formula-detail-page{padding:8px 10px 20px}
  .new-detail-filter-row{min-height:37px;grid-template-columns:32px minmax(0,1fr) auto;padding:3px 7px}
  .new-detail-filter-options{gap:2px}
  .new-detail-filter-options a,.new-detail-filter-options span{min-width:40px;height:22px;padding:0 4px;font-size:8px}
  .new-detail-action-row{gap:5px;margin:7px 0}
  .new-detail-follow-button.new-follow-button{min-width:102px;font-size:14px;font-weight:800}
  .new-detail-draw-card{min-height:132px;padding:15px 14px 12px}
  .new-detail-card-heading h2{font-size:15px}
  .new-detail-draw-issue{margin-top:5px}
  .new-detail-draw-card .new-balls{justify-content:space-between;gap:4px;padding-top:11px}
  .new-detail-draw-card .new-ball{width:40px;height:40px;font-size:13px}
  .new-detail-pending-ball{width:40px;height:40px;font-size:13px}
  .new-detail-analysis-card{margin-top:8px;padding-top:8px;padding-bottom:8px}
  .new-detail-formula-frame{padding-left:7px;padding-right:7px}
}
@media(max-width:370px){
  .new-detail-filter-options a,.new-detail-filter-options span{min-width:36px}
  .new-detail-filter-row>button{font-size:8px}
  .new-detail-action-row{gap:4px}
  .new-detail-follow-button.new-follow-button{min-width:94px}
  .new-detail-draw-card{min-height:118px;padding:12px 8px 10px}
  .new-detail-draw-card .new-ball{width:31px;height:31px;font-size:10px}
  .new-detail-pending-meta{gap:8px}
  .new-detail-pending-ball{width:31px;height:31px;font-size:10px}
  .new-detail-draw-card .new-plus{margin-top:7px}
  .new-detail-image-caption>button{position:static;margin-left:auto}
}

/* Keep the member logout action compact and on one line on narrow screens. */
.new-member-head button{
  flex:0 0 auto;
  min-width:76px;
  padding:0 10px;
  font-size:12px;
  line-height:1;
  white-space:nowrap;
}

/* The site now exposes two lottery types: Macau and Hong Kong. */
.new-lottery-switch{grid-template-columns:repeat(2,minmax(0,1fr))}

@media(max-width:370px){
  /* Seven draw balls plus the separator must remain fully visible at 320px. */
  .new-draw-section .new-balls{gap:2px}
  .new-draw-section .new-ball{width:34px;height:34px;font-size:12px}
  .new-draw-section .new-plus{margin-top:8px;font-size:14px}
  .new-draw-section .new-ball-wrap small{font-size:7px}

  .new-draw-history-list .new-balls{gap:2px}
  .new-draw-history-list .new-ball{width:33px;height:33px;font-size:11px}
  .new-draw-history-list .new-plus{margin-top:7px;font-size:13px}

  /* Give two-column formula cards enough copy width for four-character titles. */
  .new-formula-section{margin-left:5px;margin-right:5px;padding-left:5px;padding-right:5px}
  .new-formula-heading p{font-size:8px}
  .new-formula-grid{gap:5px}
  .new-formula-card{padding:7px 6px}
  .new-formula-card-link{grid-template-columns:minmax(0,1fr) 64px}

  /* Keep the member identity line compact instead of wrapping on narrow phones. */
  .new-member-head{padding:22px 14px;gap:10px}
  .new-member-avatar{width:52px;height:52px;font-size:20px}
  .new-member-head p{font-size:9px;white-space:nowrap}
}
.new-card-manual-mark{display:inline-flex;align-items:center;justify-content:center;margin-right:auto;padding:2px 6px;border-radius:999px;background:#fff0ed;color:#f32f36;font-size:9px;font-weight:800;white-space:nowrap}.new-formula-card.is-pinned{box-shadow:0 4px 14px rgba(243,47,54,.13)}

/* Figma-style latest-draw card on the new homepage. */
.new-lottery-switch{
  width:min(800px,100%);
  margin:14px auto 4px;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
.new-lottery-switch button{
  height:62px;
  position:relative;
  border-radius:0;
  background:transparent;
  color:#7b7f92;
  font-size:24px;
  font-weight:800;
}
.new-lottery-switch button.is-active{
  background:transparent;
  color:#f1302d;
  box-shadow:none;
}
.new-lottery-switch button.is-active:after{
  content:"";
  position:absolute;
  left:50%;
  bottom:0;
  width:92px;
  height:4px;
  border-radius:4px;
  background:#f34a46;
  transform:translateX(-50%);
  box-shadow:0 2px 5px rgba(241,48,45,.2);
}
.new-home-draw-section{width:min(800px,100%);margin:0 auto 18px}
.new-home-draw-card{
  overflow:hidden;
  border:1px solid #e7eaf0;
  border-radius:18px;
  background:#fff;
  padding:26px 28px 0;
  box-shadow:0 7px 22px rgba(23,35,61,.14);
}
.new-home-draw-top{display:flex;align-items:flex-start;justify-content:space-between;gap:24px}
.new-home-draw-info{min-width:0}
.new-home-draw-title{display:flex;align-items:center;gap:14px;white-space:nowrap}
.new-home-lottery-pill{
  display:inline-flex;
  min-width:76px;
  height:48px;
  align-items:center;
  justify-content:center;
  border-radius:26px;
  background:#f1302d;
  color:#fff;
  font-size:23px;
  font-weight:800;
}
.new-home-draw-title>strong{color:#17233d;font-size:29px;font-weight:900;letter-spacing:.01em}
.new-home-official{
  display:inline-flex;
  height:40px;
  align-items:center;
  padding:0 18px;
  border:2px solid #ffc0c2;
  border-radius:9px;
  background:#fff7f7;
  color:#f1302d;
  font-size:18px;
  font-weight:800;
}
.new-home-draw-info time{display:block;margin:18px 0 0 2px;color:#7e91b1;font-size:19px;font-style:normal;white-space:nowrap}
.new-home-countdown{display:flex;flex:0 0 auto;align-items:center;flex-direction:column;color:#253657}
.new-home-countdown>span{font-size:18px;font-weight:800;white-space:nowrap}
.new-home-countdown>span b{font-weight:inherit}
.new-home-countdown>strong{margin:3px 0 7px;color:#f1302d;font-family:Arial,sans-serif;font-size:31px;line-height:1.1;letter-spacing:.02em}
.new-home-countdown>button{
  display:flex;
  height:36px;
  align-items:center;
  gap:7px;
  padding:0 16px;
  border:2px solid #f1302d;
  border-radius:20px;
  background:#fff;
  color:#f1302d;
  font-weight:800;
}
.new-home-reminder-icon{display:block;width:14px;height:14px;flex:0 0 auto}
.new-home-reminder-icon path{transition:stroke .2s ease}
.new-home-countdown>button em{font-style:normal}
.new-home-countdown>button.is-enabled{background:#f1302d;color:#fff}
.new-home-countdown>button.is-enabled .new-home-reminder-icon path[stroke]{stroke:#fff}
.new-home-draw-card [data-home-balls]>.new-balls{
  justify-content:space-between;
  gap:10px;
  padding:28px 8px 24px;
}
.new-home-draw-card .new-ball{width:68px;height:68px;font-size:24px}
.new-home-draw-card .new-ball-wrap small{margin-top:8px;color:#253657;font-size:14px;font-weight:800;white-space:nowrap}
.new-home-draw-card .new-plus{align-self:flex-start;margin-top:20px;color:#253657;font-size:28px;font-weight:900}
.new-home-draw-links{
  display:flex;
  justify-content:flex-end;
  min-height:68px;
  align-items:center;
  border-top:1px solid #e6e9ef;
}
.new-home-draw-links>a{display:flex;align-items:center;gap:10px;color:#253657;font-size:20px;font-weight:800}
.new-home-draw-links>a>b{margin-left:4px;font-size:28px;line-height:1}
.new-home-history-icon{width:25px;height:25px;position:relative;border:3px solid #253657;border-radius:50%}
.new-home-history-icon:before{content:"";position:absolute;left:10px;top:4px;width:3px;height:8px;border-radius:2px;background:#253657}
.new-home-history-icon:after{content:"";position:absolute;left:10px;top:10px;width:7px;height:3px;border-radius:2px;background:#253657}
.new-home-chart-icon{display:flex;width:29px;height:27px;align-items:flex-end;gap:3px;border-bottom:3px solid #253657}
.new-home-chart-icon:before,.new-home-chart-icon:after,.new-home-chart-icon u{content:"";display:block;width:6px;border:3px solid #253657;border-bottom:0;text-decoration:none}
.new-home-chart-icon:before{height:13px}.new-home-chart-icon u{height:24px}.new-home-chart-icon:after{height:18px}

@media(max-width:640px),(min-width:641px){
  .new-announcements+.new-lottery-switch{margin-top:4px}
  .new-lottery-switch{width:calc(100% - 24px);margin-bottom:3px}
  .new-lottery-switch button{height:55px;font-size:20px}
  .new-lottery-switch button.is-active:after{width:74px;height:3px}
  .new-home-draw-section{width:calc(100% - 16px);margin-bottom:12px}
  .new-home-draw-card{border-radius:13px;padding:14px 14px 0;box-shadow:0 4px 14px rgba(23,35,61,.14)}
  .new-home-draw-top{gap:8px}
  .new-home-draw-title{gap:7px}
  .new-home-lottery-pill{min-width:52px;height:32px;border-radius:18px;font-size:16px}
  .new-home-draw-title>strong{font-size:20px}
  .new-home-official{height:29px;padding:0 9px;border-width:1px;border-radius:6px;font-size:13px}
  .new-home-draw-info time{margin:10px 0 0 1px;font-size:13px}
  .new-home-countdown>span{font-size:13px}
  .new-home-countdown>strong{margin:2px 0 5px;font-size:24px}
  .new-home-countdown>button{height:27px;gap:5px;padding:0 10px;border-width:1px;font-size:11px}
  .new-home-reminder-icon{width:11px;height:11px}
  .new-home-draw-card [data-home-balls]>.new-balls{gap:3px;padding:18px 0 16px}
  .new-home-draw-card .new-ball{width:43px;height:43px;font-size:15px}
  .new-home-draw-card .new-ball-wrap small{margin-top:5px;font-size:14px}
  .new-home-draw-card .new-plus{margin-top:10px;font-size:20px}
  .new-home-draw-links{min-height:48px}
  .new-home-draw-links>a{gap:7px;font-size:14px}
  .new-home-draw-links>a>b{font-size:21px}
  .new-home-history-icon{width:19px;height:19px;border-width:2px}
  .new-home-history-icon:before{left:8px;top:3px;width:2px;height:6px}
  .new-home-history-icon:after{left:8px;top:8px;width:5px;height:2px}
  .new-home-chart-icon{width:22px;height:21px;gap:2px;border-bottom-width:2px}
  .new-home-chart-icon:before,.new-home-chart-icon:after,.new-home-chart-icon u{width:5px;border-width:2px;border-bottom:0}
  .new-home-chart-icon:before{height:10px}.new-home-chart-icon u{height:19px}.new-home-chart-icon:after{height:14px}
}
@media(max-width:370px){
  .new-lottery-switch{width:calc(100% - 12px)}
  .new-home-draw-section{width:calc(100% - 10px)}
  .new-home-draw-card{padding-left:9px;padding-right:9px}
  .new-home-draw-title{gap:4px}
  .new-home-lottery-pill{min-width:43px;height:28px;font-size:13px}
  .new-home-draw-title>strong{font-size:16px}
  .new-home-official{height:25px;padding:0 5px;font-size:10px}
  .new-home-draw-info time{font-size:10px}
  .new-home-countdown>span{font-size:10px}
  .new-home-countdown>strong{font-size:20px}
  .new-home-countdown>button{height:24px;padding:0 7px;font-size:9px}
  .new-home-draw-card [data-home-balls]>.new-balls{gap:2px;padding-top:15px}
  .new-home-draw-card .new-ball{width:34px;height:34px;font-size:12px}
  .new-home-draw-card .new-ball-wrap small{font-size:14px}
  .new-home-draw-card .new-plus{margin-top:8px;font-size:15px}
  .new-home-draw-links>a{gap:5px;font-size:12px}
}

/* Historical draws: year selection plus incremental loading. */
.new-history-search-toggle{justify-self:end;border:0;background:transparent;color:#de0609;font:inherit;cursor:pointer}
.new-history-issue-search{
  display:flex;
  align-items:flex-end;
  gap:10px;
  margin:0 0 12px;
  padding:14px 16px;
  border:1px solid #e4e8ef;
  border-radius:10px;
  background:#fff;
  box-shadow:0 5px 16px rgba(23,35,61,.05);
}
.new-history-issue-search[hidden]{display:none}
.new-history-issue-search label{display:block;min-width:0;flex:1}
.new-history-issue-search label>span{display:block;margin-bottom:7px;color:#253657;font-size:12px;font-weight:800}
.new-history-issue-search input{width:100%;height:40px;border:1px solid #dfe3ec;border-radius:7px;padding:0 12px;color:#17233d;font-size:13px;outline:0}
.new-history-issue-search input:focus{border-color:#f1302d;box-shadow:0 0 0 3px rgba(241,48,45,.08)}
.new-history-issue-search button{height:40px;padding:0 22px;border:0;border-radius:7px;background:#f1302d;color:#fff;font-size:13px;font-weight:800;cursor:pointer}
.new-history-issue-search>a{display:inline-flex;height:40px;align-items:center;padding:0 6px;color:#777;font-size:12px}
.new-history-lottery-tabs{margin-bottom:12px}
.new-history-year-filter{
  display:flex;
  min-height:58px;
  align-items:center;
  gap:12px;
  padding:8px 16px;
  border:1px solid #e4e8ef;
  border-radius:10px;
  background:#fff;
  box-shadow:0 5px 16px rgba(23,35,61,.05);
}
.new-history-year-filter>strong{margin-right:4px;color:#17233d;font-size:14px}
.new-history-year-filter>a{
  display:inline-flex;
  height:34px;
  align-items:center;
  justify-content:center;
  padding:0 16px;
  border-radius:18px;
  color:#4b556f;
  font-size:13px;
  font-weight:700;
  transition:.18s ease;
}
.new-history-year-filter>a:hover{background:#fff1f0;color:#f1302d}
.new-history-year-filter>a.is-active{background:#f1302d;color:#fff;box-shadow:0 4px 10px rgba(241,48,45,.2)}
.new-history-heading{margin-top:18px}
.new-history-scroll-sentinel{display:grid;height:46px;place-items:center}
.new-history-scroll-sentinel[hidden]{display:none}
.new-history-scroll-sentinel i{display:none;width:22px;height:22px;border:2px solid #f5b5b4;border-top-color:#f1302d;border-radius:50%;animation:newHistorySpin .7s linear infinite}
.new-history-scroll-sentinel.is-loading i{display:block}
@keyframes newHistorySpin{to{transform:rotate(360deg)}}

@media(max-width:640px),(min-width:641px){
  .new-history-issue-search{margin:0 8px 8px;padding:10px;gap:7px;border-radius:9px}
  .new-history-issue-search label>span{font-size:11px}
  .new-history-issue-search input{height:36px;font-size:11px}
  .new-history-issue-search button{height:36px;padding:0 15px;font-size:11px}
  .new-history-issue-search>a{height:36px;font-size:10px}
  .new-history-lottery-tabs{margin-bottom:8px}
  .new-history-year-filter{margin:0 8px;min-height:52px;gap:5px;padding:7px 9px;border-radius:9px;overflow-x:auto}
  .new-history-year-filter>strong{flex:0 0 auto;margin-right:2px;font-size:12px}
  .new-history-year-filter>a{flex:0 0 auto;height:30px;padding:0 11px;font-size:11px}
  .new-history-heading{margin-top:14px}
}
@media(max-width:370px){
  .new-history-year-filter{gap:2px;padding-left:6px;padding-right:6px}
  .new-history-year-filter>a{padding:0 8px;font-size:10px}
}

/* New frontend: keep the mobile composition on wide screens as well. */
html{background:#efe6e4}
body.new-site{
  width:100%;
  max-width:430px;
  min-height:100vh;
  margin-left:auto;
  margin-right:auto;
  overflow-x:hidden;
  background:#f4f6fa;
  box-shadow:0 0 0 1px rgba(23,35,61,.035),0 12px 42px rgba(23,35,61,.08);
}
body.new-site .new-header,
body.new-site .new-simple-header,
body.new-site .new-formula-detail-header{width:100%;max-width:430px}
body.new-site .new-back-to-top{right:max(12px,calc((100vw - 430px)/2 + 12px))}
@media(max-width:430px){
  body.new-site{max-width:none;box-shadow:none}
  body.new-site .new-back-to-top{right:12px}
}

/* Formula detail: keep the year, period and analysis copy legible on mobile. */
.new-formula-detail-body .new-detail-filter-row{
  min-height:50px;
  grid-template-columns:44px minmax(0,1fr) auto;
}
.new-formula-detail-body .new-detail-filter-row>strong{
  font-size:14px;
  font-weight:800;
}
.new-formula-detail-body .new-detail-filter-options a,
.new-formula-detail-body .new-detail-filter-options span{
  min-width:46px;
  height:28px;
  font-size:12px;
  font-weight:700;
}
.new-formula-detail-body .new-detail-period-card .new-detail-filter-options>a{font-size:14px}
.new-formula-detail-body .new-detail-period-card .new-detail-filter-row:last-child .new-detail-filter-options{flex-wrap:wrap}
.new-formula-detail-body .new-detail-filter-row>button{font-size:11px}
.new-formula-detail-body .new-detail-analysis-card h2{font-size:16px}
.new-formula-detail-body .new-detail-analysis-card h2 img{width:15px;height:15px}
.new-formula-detail-body .new-detail-analysis-card p{font-size:16px;line-height:1.7}
.new-formula-detail-body .new-detail-analysis-card>strong{
  font-size:18px;
  line-height:1.55;
}

/* Formula image lightbox. The dialog scrolls independently for tall posters. */
body.new-formula-detail-body.is-detail-image-modal-open{overflow:hidden}
.new-detail-image-modal{
  width:100%;
  height:100vh;
  height:100dvh;
  max-width:none;
  max-height:none;
  margin:0;
  padding:max(58px,calc(env(safe-area-inset-top) + 50px)) 10px 24px;
  border:0;
  background:transparent;
  overflow-x:hidden;
  overflow-y:auto;
  overscroll-behavior:contain;
}
.new-detail-image-modal:not([open]){display:none}
.new-detail-image-modal[open]{display:flex;align-items:flex-start;justify-content:center}
.new-detail-image-modal::backdrop{
  background:rgba(12,18,31,.88);
  backdrop-filter:blur(3px);
}
.new-detail-image-modal-content{
  width:min(760px,100%);
  flex:0 0 auto;
  border-radius:12px;
  background:#fff;
  overflow:hidden;
  box-shadow:0 18px 60px rgba(0,0,0,.4);
}
.new-detail-image-modal-content img{display:block;width:100%;height:auto;object-fit:contain}
.new-detail-image-modal-close{
  width:42px;
  height:42px;
  position:fixed;
  z-index:2;
  top:max(9px,env(safe-area-inset-top));
  right:max(12px,env(safe-area-inset-right));
  display:grid;
  place-items:center;
  padding:0 0 3px;
  border:1px solid rgba(255,255,255,.55);
  border-radius:50%;
  background:rgba(18,24,38,.8);
  color:#fff;
  font:300 32px/1 Arial,sans-serif;
  box-shadow:0 5px 18px rgba(0,0,0,.28);
  cursor:pointer;
}
.new-detail-image-modal-close:focus-visible{outline:3px solid #fff;outline-offset:2px}

/* Homepage previews fill the existing card with the upper portion of the picture. */
.new-home-card-media{background:#fffaf3}
.new-home-card-media img{position:relative;z-index:1;object-fit:cover;object-position:center top;opacity:0;transition:opacity .14s ease-out,transform .3s ease}
.new-home-card-media img[hidden]{display:none}
.new-home-card-media.is-loaded img{opacity:1}
.new-home-image-placeholder{position:absolute;inset:0;display:grid;place-items:center;color:#d2c6b7;font-size:24px;line-height:1;opacity:1;visibility:visible;transition:opacity .14s ease-out,visibility 0s linear .14s}
.new-home-card-media.is-loaded .new-home-image-placeholder{opacity:0;visibility:hidden}

/* Readable zodiac and element labels in the draw history. */
.new-draw-history-list .new-ball-wrap small{font-size:14px;font-weight:800;line-height:1.4;white-space:nowrap}

/* Homepage card period and lottery labels: 8px to 10px, wrapping when needed. */
#formula-gallery .new-card-copy small{font-size:10px;line-height:1.3;white-space:normal;word-break:keep-all}

/* Fit seven 14px labels and the separator on narrow phones. */
@media(max-width:370px){
  .new-detail-draw-card .new-balls,.new-home-draw-card [data-home-balls]>.new-balls{gap:1px}
  .new-detail-draw-card .new-plus,.new-home-draw-card .new-plus{font-size:14px}
  .new-detail-draw-card .new-ball,.new-home-draw-card .new-ball{margin-inline:auto}
}

/* Trend statistics: readable data and comfortable spacing on phone screens. */
.new-trend-tools input{font-size:16px}
.new-trend-stat-tabs button{height:44px;padding:0 2px;font-size:14px;line-height:1.3}
.new-trend-stat-head h3{font-size:16px}
.new-trend-stat-head>span{font-size:12px;color:#53617d}
.new-trend-stat-head>span strong{font-weight:700}
.new-trend-extremes{gap:8px;margin-bottom:14px}
.new-trend-extreme{height:auto;min-height:60px;grid-template-columns:18px minmax(0,1fr) auto;grid-template-rows:auto auto;gap:4px;padding:8px 6px}
.new-trend-extreme>img{grid-column:1;grid-row:1 / span 2;width:18px;height:27px;align-self:center}
.new-trend-extreme>span{display:contents}
.new-trend-extreme small{grid-column:2 / 4;grid-row:1;font-size:12px;line-height:1.35;color:#53617d}
.new-trend-extreme b{grid-column:2;grid-row:2;font-size:12px;line-height:1.4;font-weight:800;white-space:nowrap;overflow:visible;text-overflow:clip}
.new-trend-extreme>strong{grid-column:3;grid-row:2;justify-self:end;font-size:12px;line-height:1.4;font-weight:800}
.new-trend-chart-table{grid-template-columns:minmax(0,1fr);gap:12px}
.new-trend-donut{width:190px;max-width:100%;justify-self:center}
.new-trend-table{font-size:14px;line-height:1.4}
.new-trend-table-head,.new-trend-table-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1fr);column-gap:8px}
.new-trend-table-head{height:auto;min-height:32px;color:#53617d;font-size:12px;font-weight:700}
.new-trend-table-head>span:nth-child(2){text-align:center}
.new-trend-table-head>span:last-child{text-align:right}
.new-trend-table-row{min-height:32px}
.new-trend-table-row>span{gap:7px}
.new-trend-table-row i{width:9px;height:9px}
.new-trend-table-row b{font-size:14px;font-weight:800}
.new-trend-table-row em{font-size:14px;font-weight:600;color:#53617d;white-space:nowrap}
.new-trend-podium{height:156px;padding-left:5%;padding-right:5%;gap:10px}
.new-trend-podium-item>span{font-size:14px;line-height:1.4;color:#53617d;font-weight:600}
.new-trend-podium-item>i{font-size:16px}
.new-trend-number-ball{width:36px;height:36px;font-size:14px;font-weight:700}
.new-trend-top-ten h4{font-size:14px;line-height:1.4;margin-bottom:12px}
.new-trend-top-ten>div{grid-template-columns:repeat(5,minmax(0,1fr));gap:14px 8px}
.new-trend-top-ten .new-trend-number-ball{width:34px;height:34px;font-size:14px}
.new-trend-top-ten small{font-size:14px;line-height:1.4;color:#53617d;font-weight:600}
.new-trend-bar>b{font-size:10px;line-height:1.3;font-weight:800;color:#35415a}
.new-trend-bar>span{font-size:10px;line-height:1.3;font-weight:800;color:#35415a}
.new-trend-bar-summary{margin-top:24px}
.new-trend-bar-summary span{height:auto;min-height:30px;padding:5px;font-size:11px;line-height:1.4;font-weight:800}
.new-trend-head-chart{padding-top:24px;padding-left:36px}
.new-trend-head-chart>strong{font-size:13px}
.new-trend-head-plot{height:170px;margin-bottom:30px}
.new-trend-head-axis b{font-size:12px;font-weight:600}
.new-trend-head-bar>b{font-size:13px;line-height:1.3}
.new-trend-head-bar>span{font-size:14px;line-height:1.3}
.new-trend-head-summary span{height:auto;min-height:38px;padding:6px 3px;font-size:13px;line-height:1.4;text-align:center}
.new-trend-split{height:50px}
.new-trend-split b,.new-trend-split strong{font-size:14px}
.new-trend-split-values{font-size:14px;line-height:1.5}
.new-trend-stat-kind-size .new-trend-stat-body>p,.new-trend-stat-kind-parity .new-trend-stat-body>p{font-size:14px;line-height:1.5;color:#53617d}
.new-trend-disclaimer{height:auto;min-height:36px;padding:6px;font-size:12px;line-height:1.5}

@media(max-width:370px){
  .new-trend-extreme{grid-template-columns:14px minmax(0,1fr) auto;column-gap:3px;padding-left:4px;padding-right:4px}
  .new-trend-extreme>img{width:14px}
}

/* Keep every tail visible; labels are two pixels above their original sizes. */
@media(max-width:370px){
  .new-trend-bar>b,.new-trend-bar>span{font-size:9px}
}

/* Visually separate the special number from its occurrence count. */
.new-trend-stat-kind-special .new-trend-extreme b{display:flex;align-items:center;gap:6px}
.new-trend-extreme-number{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;min-width:22px;height:20px;padding:0 3px;border-radius:4px;background:#ffe4e1;line-height:1;font-variant-numeric:tabular-nums}
.new-trend-extreme.is-cold .new-trend-extreme-number{background:#e4edff}
.new-trend-stat-kind-special .new-trend-extreme b em{flex:0 0 auto}
@media(max-width:370px){
  .new-trend-stat-kind-special .new-trend-extreme b{gap:4px}
}

/* Readable supporting text throughout the audited mobile pages. */
body.new-site[data-page="home"] .new-header-search-field>input{font-size:12px}
body.new-site[data-page="home"] .new-account-nav small{font-size:12px;line-height:1.3;white-space:nowrap}
body.new-site[data-page="home"] .new-account-nav a{min-width:36px}
body.new-site[data-page="home"] .new-account-nav a:first-child{min-width:48px}
body.new-site[data-page="home"] .new-announcements>strong,
body.new-site[data-page="home"] .new-announcement-more{font-size:15px;font-weight:700;line-height:1.4;white-space:nowrap;flex:0 0 auto}
body.new-site[data-page="home"] .new-announcement-more{min-height:28px}
body.new-site[data-page="home"] .new-home-draw-title{flex-wrap:nowrap;gap:4px}
body.new-site[data-page="home"] .new-home-countdown>button{font-size:12px;min-height:28px}
body.new-site[data-page="home"] .new-home-draw-info time{color:#53617d}
body.new-site[data-page="home"] .new-footer{font-size:12px;line-height:1.5;color:#53617d}
body.new-site[data-page="home"] .new-footer p{font-size:12px}
#formula-gallery .new-card-copy p{font-size:12px;line-height:1.4;white-space:nowrap;overflow:visible;text-overflow:clip}
#formula-gallery .new-card-copy small{font-size:12px;line-height:1.4;white-space:nowrap;overflow:visible;text-overflow:clip}
#formula-gallery .new-card-actions{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:5px}
#formula-gallery .new-card-detail-button,#formula-gallery .new-follow-button{font-size:12px;line-height:1.3;min-height:32px;height:auto;padding:5px 2px}
#formula-gallery .new-card-detail-button{gap:2px}
.new-detail-draw-card .new-ball,.new-draw-history-list .new-ball{font-size:14px;font-weight:800}
.new-formula-detail-body .new-detail-filter-row>button{font-size:14px;font-weight:700;line-height:1.4;min-height:28px}
.new-detail-draw-issue{font-size:16px;line-height:1.4}
.new-detail-draw-issue strong{font-size:17px}
.new-detail-draw-issue-number{color:var(--red);font-style:normal}
.new-detail-card-heading{flex-wrap:nowrap;gap:10px}
.new-detail-card-heading a{font-size:16px;line-height:1.4}
.new-detail-image-caption{gap:8px;flex-wrap:nowrap;padding:3px 0 7px}
.new-detail-image-caption>span{flex:1 1 0;min-width:0;white-space:nowrap;text-align:center}
.new-detail-image-caption>button{position:static;flex:0 0 auto;margin-left:auto;font-size:12px;line-height:1.4;min-height:28px;color:#53617d}
.new-history-body .new-simple-header{font-size:14px}
.new-history-body .new-simple-header>strong{font-size:20px}
.new-history-lottery-tabs a,.new-history-year-filter>strong,.new-history-year-filter>a{font-size:14px}
.new-history-year-filter>a{height:34px}
.new-history-issue-search label>span,.new-history-issue-search input,.new-history-issue-search button,.new-history-issue-search>a{font-size:14px;line-height:1.4}
.new-history-issue-search input,.new-history-issue-search button{height:40px}
.new-history-issue-search{flex-wrap:nowrap}
.new-history-issue-search label{flex:1 1 0;min-width:0}
.new-draw-history-meta{flex-wrap:nowrap;gap:8px;white-space:nowrap}
.new-draw-history-meta span{font-size:12px;line-height:1.4;color:#53617d}
@media(max-width:370px){
  body.new-site[data-page="home"] .new-home-official{font-size:12px}
  body.new-site[data-page="home"] .new-home-draw-info time,body.new-site[data-page="home"] .new-home-countdown>span{font-size:12px}
  body.new-site[data-page="home"] .new-home-draw-card .new-ball{font-size:14px}
  #formula-gallery .new-formula-card-link{grid-template-columns:minmax(0,1fr) min(44%,58px)}
}

@media(max-width:370px){
  .new-draw-history-list .new-balls{gap:1px}
  .new-draw-history-list .new-ball{margin-inline:auto}
}

/* Preserve single-line layouts; the text-fit helper uses available width. */
body.new-site[data-page="home"] .new-home-draw-info{flex:1;min-width:0}
body.new-site[data-page="home"] .new-home-draw-title{width:100%}
body.new-site[data-page="home"] .new-home-draw-title>*{flex:0 0 auto;min-width:0}
body.new-site[data-page="home"] .new-home-lottery-pill{padding-inline:7px}
body.new-site[data-page="home"] .new-home-official{padding-inline:4px}
.new-detail-image-caption>button{white-space:nowrap}
.new-detail-draw-issue{white-space:nowrap}
.new-formula-detail-body .new-detail-period-card .new-detail-filter-row:not(.is-expanded) .new-detail-filter-options{flex-wrap:nowrap}
.new-detail-period-card .new-detail-filter-row:not(.is-expanded) .new-detail-filter-options>a{min-width:0;flex:1 1 0;padding-inline:2px}
.new-history-issue-search label>span,.new-history-issue-search button,.new-history-issue-search>a{white-space:nowrap}
@media(max-width:370px){
  .new-draw-history-meta strong{font-size:clamp(14px,5vw,16px)}
  .new-draw-history-meta span{font-size:clamp(10px,3.75vw,12px)}
  .new-history-issue-search input{font-size:clamp(12px,4vw,14px)}
}

/* Keep history controls below the persistent page header while results scroll. */
.new-history-body{--history-header-height:62px}
.new-history-body>.new-simple-header{height:var(--history-header-height)}
.new-history-body .new-history-page{margin-top:0}
.new-history-sticky-filters{position:sticky;top:var(--history-header-height);z-index:40;display:flow-root;padding:0 0 12px;background:#f4f6fa}
.new-history-sticky-filters>.new-history-lottery-tabs{margin:0 0 8px;padding:0 12px}
.new-history-body .new-draw-history-list{margin-top:0}


/* Login branding and direct password sign-in */
.new-login-page .new-login-navigation,.new-register-page .new-register-navigation{position:absolute;top:8px;left:50%;transform:translateX(-50%);width:min(430px,100%);padding:0 16px;z-index:3}
.new-login-home{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:0 14px;border:1px solid rgba(255,255,255,.85);border-radius:22px;background:rgba(255,250,247,.82);box-shadow:0 3px 12px rgba(196,73,43,.09);color:#d73b2c;font-size:18px;font-weight:700;line-height:1;white-space:nowrap;transition:background .15s,box-shadow .15s}
.new-login-home:hover{background:#fffaf7;box-shadow:0 4px 14px rgba(196,73,43,.14)}
.new-login-home:active{background:#ffece4}
.new-login-home svg{flex:0 0 17px;width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.new-login-home:focus-visible{outline:2px solid #e52620;outline-offset:1px}
.new-login-page .new-auth-shell{width:min(380px,calc(100% - 32px));padding:62px 0 40px}
.new-login-page .new-auth-brand{display:flex;flex-direction:column;align-items:center;margin-bottom:20px}
.new-login-page .new-auth-brand img{display:block;width:92px;height:92px;margin-bottom:10px}
.new-login-brand-name{color:#eb100a;font-size:34px;font-weight:900;line-height:1.25;letter-spacing:1px;white-space:nowrap}
.new-login-brand-tagline{display:block;margin-top:7px;color:#d6442d;font-size:clamp(12px,3.85vw,16px);font-weight:700;line-height:1.5;white-space:nowrap}
.new-login-page .new-auth-card{padding:24px;border-radius:24px}
.new-login-page .new-auth-card .new-login-title{position:relative;margin:0 0 22px;padding-bottom:13px;text-align:center;color:#e52620;font-size:20px;font-weight:800;line-height:1.4;white-space:nowrap}
.new-login-title:after{content:"";position:absolute;bottom:0;left:50%;transform:translateX(-50%);width:100px;height:3px;border-radius:3px;background:#f1302d}
.new-login-page .new-auth-card form>label{font-size:14px;margin-top:16px}
.new-login-page .new-auth-card form>label:first-of-type{margin-top:0}
.new-login-page .new-auth-card input,.new-login-page .new-auth-card select{font-size:16px}
.new-login-page .new-primary-button{height:48px;font-size:17px}
.new-login-page .new-auth-links{font-size:14px}
@media(max-width:350px){
  .new-login-page .new-auth-card{padding:22px 18px}
  .new-login-brand-name{font-size:30px}
  .new-login-page .new-phone-field.new-field-with-icon select{width:98px;flex-basis:98px;padding-left:37px;padding-right:22px;background-position:right 8px center}
  .new-login-page .new-auth-links{font-size:13px}
}

/* Member center: keep text readable and consistent on mobile. */
.new-member-body .new-simple-header,
.new-member-body .new-simple-header>strong,
.new-member-body .new-simple-header>a{font-size:18px;line-height:1.35}
.new-member-body .new-member-avatar{flex:0 0 auto;aspect-ratio:1}
.new-member-body .new-member-head>div:nth-child(2){min-width:0;flex:1}
.new-member-body .new-member-head h1{font-size:22px;line-height:1.3}
.new-member-body .new-member-head p{font-size:14px;line-height:1.4}
.new-member-body .new-member-head button{min-width:90px;height:40px;font-size:16px;line-height:1;white-space:nowrap}
.new-member-body .new-member-tabs a{padding:16px 12px;font-size:16px;font-weight:700;line-height:1.3}
.new-member-body .new-no-results{padding:38px 20px;font-size:16px;line-height:1.6}
.new-member-body .new-member-item>span{font-size:13px}
.new-member-body .new-member-item h2{font-size:17px;line-height:1.4}
.new-member-body .new-member-item p{font-size:14px;line-height:1.4}
.new-member-body .new-member-item>strong{font-size:14px;line-height:1.4}
.new-member-body .new-member-profile-stats span{font-size:15px;font-weight:700;line-height:1.4}
.new-member-body .new-member-profile-stats strong{font-size:22px;font-weight:800;line-height:1.25}
.new-member-body .new-detail-block>h2{font-size:22px;font-weight:800;line-height:1.35}
.new-member-body .new-detail-block .new-rule-analysis{font-size:15px;font-weight:600;line-height:1.9}

/* Search results: match the readable type scale used by other mobile pages. */
.new-search-body .new-simple-header,
.new-search-body .new-simple-header>strong,
.new-search-body .new-simple-header>a{font-size:18px;line-height:1.35}
.new-search-body .new-search-input-shell input{font-size:16px;line-height:1.4}
.new-search-body .new-search-form>button{font-size:16px}
.new-search-body .new-filter-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:0 12px;overflow:visible}
.new-search-body .new-filter-tabs a{display:flex;align-items:center;justify-content:center;min-width:0;height:46px;padding:0 8px;font-size:17px;font-weight:700;line-height:1.2}
.new-search-body .new-result-head h1{font-size:22px;line-height:1.35}
.new-search-body .new-result-head span{font-size:14px}
.new-search-body .new-result-thumb.is-pending{font-size:14px}
.new-search-body .new-result-card small{font-size:15px;font-weight:600;line-height:1.3}
.new-search-body .new-result-card h2{font-size:19px;font-weight:800;line-height:1.25}
.new-search-body .new-result-card p{font-size:15px;font-weight:600;line-height:1.3}
.new-search-body .new-result-card>div>strong{font-size:17px;font-weight:800;line-height:1.2}
.new-search-body .new-no-results{font-size:16px;line-height:1.6}

/* Member center and favorites: compact card layout based on the supplied mobile design. */
body.new-site.new-member-body{
  min-height:100vh;
  min-height:100dvh;
  display:flex;
  flex-direction:column;
  padding-bottom:0;
  background:#f5f6fa;
  color:#17233d;
}
.new-member-body .new-simple-header{
  flex:0 0 auto;
  height:64px;
  grid-template-columns:92px minmax(0,1fr) 92px;
  padding:0 18px;
  border-bottom:1px solid #eef0f4;
  box-shadow:none;
}
.new-member-body .new-simple-header>a,
.new-member-body .new-simple-header>strong{
  font-size:18px;
  font-weight:800;
}
.new-member-body .new-simple-header>a:first-child{display:flex;align-items:center;gap:2px;color:#17233d}
.new-member-body .new-simple-header>a:last-child{font-weight:700;color:#f1302d}
.new-member-body .new-member-page{
  width:100%;
  flex:1 0 auto;
  margin:0 auto;
  padding:14px 12px 0;
}
.new-member-body .new-member-head{
  min-height:96px;
  display:flex;
  align-items:center;
  gap:13px;
  padding:14px;
  border:1px solid #ede4e0;
  border-radius:12px;
  background:#fff url('/assets/new-design/member-profile-bg.svg') center/100% 100% no-repeat;
  color:#17233d;
  box-shadow:0 3px 12px rgba(23,35,61,.025);
}
.new-member-body .new-member-avatar{
  width:64px;
  height:64px;
  flex:0 0 64px;
  border-radius:50%;
  background:linear-gradient(145deg,#f59b51 0,#f05d3e 55%,#e91225 100%);
  color:#fff;
  font-size:34px;
  font-weight:500;
  line-height:1;
}
.new-member-body .new-member-avatar>span{
  display:block;
  line-height:1;
  transform:translateY(-2px);
}
.new-member-body .new-member-identity{min-width:0;flex:1}
.new-member-body .new-member-head h1{
  max-width:100%;
  margin:0 0 3px;
  overflow:hidden;
  color:#090b0f;
  font-size:23px;
  font-weight:800;
  line-height:1.25;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.new-member-body .new-member-head p{
  max-width:100%;
  margin:0;
  overflow:hidden;
  color:#7c849e;
  font-size:14px;
  font-weight:600;
  line-height:1.3;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.new-member-body .new-member-head button{
  min-width:112px;
  height:48px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  flex:0 0 auto;
  margin-left:auto;
  padding:0 13px;
  border:1.5px solid #ed3832;
  border-radius:12px;
  background:rgba(255,255,255,.76);
  color:#e73531;
  font-size:16px;
  font-weight:500;
  line-height:1;
  white-space:nowrap;
}
.new-member-body .new-member-head button img{width:19px;height:21px;flex:0 0 auto;object-fit:contain}
.new-member-body .new-member-tabs{
  position:relative;
  height:62px;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  margin:14px 0;
  overflow:visible;
  border:1px solid #e7e9ee;
  border-radius:12px;
  background:#fff;
  box-shadow:0 3px 10px rgba(23,35,61,.05);
}
.new-member-body .new-member-tabs:after{
  content:"";
  position:absolute;
  top:20px;
  bottom:20px;
  left:50%;
  width:2px;
  transform:translateX(-1px);
  border-radius:2px;
  background:#d7d8dc;
}
.new-member-body .new-member-tabs a{
  position:relative;
  z-index:1;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0;
  background:transparent;
  color:#0d0e12;
  font-size:18px;
  font-weight:800;
  line-height:1;
}
.new-member-body .new-member-tabs a.is-active{background:transparent;color:#ef3c38}
.new-member-body .new-member-tabs a.is-active:after{
  content:"";
  position:absolute;
  left:50%;
  bottom:5px;
  width:44px;
  height:4px;
  transform:translateX(-50%);
  border-radius:4px;
  background:#ef3c38;
}
.new-member-account-card{
  margin:0;
  padding:20px 20px 17px;
  border:1px solid #e7e9ee;
  border-radius:12px;
  background:#fff;
  box-shadow:0 3px 10px rgba(23,35,61,.05);
}
.new-member-account-card h1{
  display:flex;
  align-items:center;
  gap:11px;
  margin:0 0 15px;
  color:#17233d;
  font-size:22px;
  font-weight:800;
  line-height:1.3;
}
.new-member-account-shield{
  width:30px;
  height:34px;
  display:block;
  flex:0 0 auto;
  object-fit:contain;
}
.new-member-account-copy{
  margin:0;
  color:#555961;
  font-size:15px;
  font-weight:500;
  line-height:1.9;
}
.new-member-account-times{
  display:grid;
  gap:13px;
  margin:17px 0 0;
  padding:17px 0 0;
  border-top:1px solid #d9dadd;
}
.new-member-account-times>div{display:grid;grid-template-columns:32px 76px minmax(0,1fr);align-items:center;gap:10px}
.new-member-time-icon{width:27px;height:27px;display:block;object-fit:contain}
.new-member-account-times dt{color:#8990a3;font-size:15px;font-weight:600;white-space:nowrap}
.new-member-account-times dd{min-width:0;margin:0;color:#101217;font-size:15px;font-weight:600;white-space:nowrap}
.new-member-body .new-member-list{
  margin:0;
  overflow:hidden;
  border:1px solid #e7e9ee;
  border-radius:12px;
  background:#fff;
  box-shadow:0 3px 10px rgba(23,35,61,.05);
}
.new-member-body .new-member-item{
  min-height:81px;
  display:grid;
  grid-template-columns:56px minmax(0,1fr) auto 8px;
  align-items:center;
  gap:10px;
  padding:13px 13px;
  border-bottom:1px solid #dddfe4;
  background:#fff;
}
.new-member-body .new-member-item:last-child{border-bottom:0}
.new-member-body .new-member-item>.new-member-lottery-tag{
  width:56px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:7px 3px;
  border:1px solid #ff3b37;
  border-radius:5px;
  color:#f1302d;
  font-size:13px;
  font-weight:500;
  line-height:1;
  white-space:nowrap;
}
.new-member-body .new-member-item>div{min-width:0}
.new-member-body .new-member-item h2{
  margin:0;
  overflow:hidden;
  color:#17233d;
  font-size:16px;
  font-weight:800;
  line-height:1.35;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.new-member-body .new-member-item p{
  margin:4px 0 0;
  overflow:hidden;
  color:#7d859d;
  font-size:15px;
  font-weight:500;
  line-height:1.35;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.new-member-body .new-member-item>strong{
  max-width:none;
  color:#f1302d;
  font-size:14px;
  font-weight:700;
  line-height:1;
  text-align:right;
  white-space:nowrap;
}
.new-member-body .new-member-item>i{
  width:8px;
  height:14px;
  display:block;
  border-top:2px solid #77809e;
  border-right:2px solid #77809e;
  transform:rotate(45deg);
}
.new-member-body .new-no-results{border-radius:12px;background:#fff}
.new-member-body [data-member-panel][hidden]{display:none!important}
.new-member-footer{
  flex:0 0 auto;
  margin-top:auto;
  padding:42px 16px 25px;
  text-align:center;
  color:#85888f;
}
.new-member-footer img{display:block;width:145px;height:auto;margin:0 auto;object-fit:contain}
.new-member-footer p{margin:10px 0 8px;font-size:11px;line-height:1.55}
.new-member-footer nav{display:flex;align-items:center;justify-content:center;gap:18px;font-size:11px}

@media(max-width:370px){
  .new-member-body .new-simple-header{grid-template-columns:78px minmax(0,1fr) 78px;padding:0 12px}
  .new-member-body .new-member-page{padding-left:9px;padding-right:9px}
  .new-member-body .new-member-head{gap:9px;padding:12px 10px}
  .new-member-body .new-member-avatar{width:58px;height:58px;flex-basis:58px;font-size:30px}
  .new-member-body .new-member-head h1{font-size:20px}
  .new-member-body .new-member-head p{font-size:12px}
  .new-member-body .new-member-head button{min-width:98px;height:44px;gap:6px;padding:0 9px;font-size:14px}
  .new-member-body .new-member-head button img{width:17px;height:19px}
  .new-member-account-card{padding-left:16px;padding-right:16px}
  .new-member-account-times>div{grid-template-columns:29px 68px minmax(0,1fr);gap:7px}
  .new-member-account-times dt,.new-member-account-times dd{font-size:13px}
  .new-member-body .new-member-item{grid-template-columns:50px minmax(0,1fr) auto 7px;gap:7px;padding-left:10px;padding-right:10px}
  .new-member-body .new-member-item>.new-member-lottery-tag{width:50px;font-size:12px}
  .new-member-body .new-member-item h2{font-size:15px}
  .new-member-body .new-member-item p{font-size:14px}
  .new-member-body .new-member-item>strong{font-size:13px}
}

/* Keep phone typography stable; wider phones gain space, not smaller type. */
@media(max-width:640px){
  body.new-site[data-page="home"]{max-width:none;box-shadow:none}
  body.new-site[data-page="home"] .new-header{max-width:none}
  body.new-site[data-page="home"] .new-back-to-top{right:12px}
}
body.new-site[data-page="home"] .new-home-lottery-pill{font-size:16px}
body.new-site[data-page="home"] .new-home-draw-title>strong{font-size:20px}
body.new-site[data-page="home"] .new-home-official{font-size:13px}
body.new-site[data-page="home"] .new-home-draw-info time,
body.new-site[data-page="home"] .new-home-countdown>span{font-size:13px}
body.new-site[data-page="home"] .new-home-countdown>strong{font-size:24px;white-space:nowrap}
body.new-site[data-page="home"] .new-home-draw-card .new-ball{font-size:15px}
body.new-site[data-page="home"] .new-home-draw-links>a{font-size:14px;white-space:nowrap}
#formula-gallery .new-card-title{font-size:17px}

/* Match the 393px reference proportions on larger phones; cap growth at 12%. */
@media(min-width:394px) and (max-width:640px){
  body.new-site[data-page="home"]{--home-type-unit:clamp(1px,.254453vw,1.12px)}
  body.new-site[data-page="home"] .new-header-search-field>input,
  body.new-site[data-page="home"] .new-account-nav small{font-size:calc(12 * var(--home-type-unit))}
  body.new-site[data-page="home"] .new-announcements>strong,
  body.new-site[data-page="home"] .new-announcement-more{font-size:calc(15 * var(--home-type-unit))}
  body.new-site[data-page="home"] .new-lottery-switch button{font-size:calc(20 * var(--home-type-unit));height:calc(55 * var(--home-type-unit))}
  body.new-site[data-page="home"] .new-home-draw-card{padding:calc(14 * var(--home-type-unit)) calc(14 * var(--home-type-unit)) 0}
  body.new-site[data-page="home"] .new-home-lottery-pill{font-size:calc(16 * var(--home-type-unit));min-width:calc(52 * var(--home-type-unit));height:calc(32 * var(--home-type-unit))}
  body.new-site[data-page="home"] .new-home-draw-title>strong{font-size:calc(20 * var(--home-type-unit))}
  body.new-site[data-page="home"] .new-home-official{font-size:calc(13 * var(--home-type-unit));height:calc(29 * var(--home-type-unit))}
  body.new-site[data-page="home"] .new-home-draw-info time,
  body.new-site[data-page="home"] .new-home-countdown>span{font-size:calc(13 * var(--home-type-unit))}
  body.new-site[data-page="home"] .new-home-countdown>strong{font-size:calc(24 * var(--home-type-unit))}
  body.new-site[data-page="home"] .new-home-countdown>button{font-size:calc(12 * var(--home-type-unit));min-height:calc(28 * var(--home-type-unit))}
  body.new-site[data-page="home"] .new-home-draw-card [data-home-balls]>.new-balls{padding:calc(18 * var(--home-type-unit)) 0 calc(16 * var(--home-type-unit))}
  body.new-site[data-page="home"] .new-home-draw-card .new-ball{width:calc(43 * var(--home-type-unit));height:calc(43 * var(--home-type-unit));font-size:calc(15 * var(--home-type-unit))}
  body.new-site[data-page="home"] .new-home-draw-card .new-ball-wrap small{font-size:calc(14 * var(--home-type-unit));margin-top:calc(5 * var(--home-type-unit))}
  body.new-site[data-page="home"] .new-home-draw-links{min-height:calc(48 * var(--home-type-unit))}
  body.new-site[data-page="home"] .new-home-draw-links>a{font-size:calc(14 * var(--home-type-unit))}
  body.new-site[data-page="home"] .new-formula-heading h2{font-size:calc(17 * var(--home-type-unit))}
  body.new-site[data-page="home"] #formula-gallery .new-formula-grid{gap:calc(7 * var(--home-type-unit))}
  body.new-site[data-page="home"] #formula-gallery .new-formula-card{padding:calc(9 * var(--home-type-unit)) calc(8 * var(--home-type-unit))}
  body.new-site[data-page="home"] #formula-gallery .new-card-top{height:calc(22 * var(--home-type-unit))}
  body.new-site[data-page="home"] #formula-gallery .new-card-title{font-size:calc(17 * var(--home-type-unit))}
  body.new-site[data-page="home"] #formula-gallery .new-rank{width:calc(21 * var(--home-type-unit));height:calc(21 * var(--home-type-unit));font-size:calc(13 * var(--home-type-unit))}
  body.new-site[data-page="home"] #formula-gallery .new-formula-card-link{grid-template-columns:minmax(0,1fr) min(42%,calc(78 * var(--home-type-unit)));min-height:calc(70 * var(--home-type-unit));margin-top:calc(5 * var(--home-type-unit))}
  body.new-site[data-page="home"] #formula-gallery .new-card-media{height:calc(60 * var(--home-type-unit))}
  body.new-site[data-page="home"] #formula-gallery .new-card-copy p,
  body.new-site[data-page="home"] #formula-gallery .new-card-copy small,
  body.new-site[data-page="home"] #formula-gallery .new-card-detail-button,
  body.new-site[data-page="home"] #formula-gallery .new-follow-button{font-size:calc(12 * var(--home-type-unit))}
  body.new-site[data-page="home"] #formula-gallery .new-card-actions{margin-top:calc(8 * var(--home-type-unit));gap:calc(5 * var(--home-type-unit))}
  body.new-site[data-page="home"] #formula-gallery .new-card-detail-button,
  body.new-site[data-page="home"] #formula-gallery .new-follow-button{min-height:calc(32 * var(--home-type-unit))}
}

/* Shared return control: consistent chevron and readable single-line label. */
body.new-site .new-simple-header > [data-new-back],
body.new-site .new-formula-detail-header > [data-new-back]{display:inline-flex;align-items:center;justify-self:start;gap:5px;min-height:44px;padding:0 2px;font-size:18px;font-weight:600;line-height:1.2;white-space:nowrap}
body.new-site .new-return-icon{display:block;flex:0 0 22px;width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}

/* Keep the detail favorite action readable in both states. */
.new-formula-detail-header .new-detail-favorite-toggle{font-size:18px;min-height:44px;line-height:1.2;white-space:nowrap}
.new-formula-detail-header .new-detail-favorite-toggle img{flex:0 0 22px;width:22px;height:22px}

/* Reserve room for the three-character saved state; keep title centered. */
.new-formula-detail-header{grid-template-columns:82px minmax(0,1fr) 82px}

/* Prevent mobile text inflation on the wide scrolling announcement text. */
body.new-site[data-page="home"] .new-announcement-viewport,
body.new-site[data-page="home"] .new-announcement-track,
body.new-site[data-page="home"] .new-announcement-item{font-size:12px;font-weight:400;line-height:1.4;-webkit-text-size-adjust:100%;text-size-adjust:100%;white-space:nowrap}

.new-announcement-page .new-simple-header>strong{font-size:18px;font-weight:800;line-height:1.3;white-space:nowrap}

/* Homepage draw: three-part heading and compact result card from the current design. */
body.new-site[data-page="home"] .new-lottery-switch{
  display:grid;
  grid-template-columns:minmax(0,1fr) 190px minmax(0,1fr);
  align-items:end;
  width:min(800px,100%);
  margin:14px auto 0;
}
body.new-site[data-page="home"] .new-lottery-switch button{
  height:62px;
  padding:0;
  font-size:24px;
  white-space:nowrap;
}
body.new-site[data-page="home"] .new-home-official-tab{
  display:flex;
  height:44px;
  align-items:center;
  justify-content:center;
  align-self:end;
  clip-path:polygon(0 0,100% 0,86% 100%,14% 100%);
  background:#f72f32;
  color:#fff;
  font-size:24px;
  font-weight:800;
  line-height:1;
  white-space:nowrap;
}
body.new-site[data-page="home"] .new-home-draw-card{padding:18px 22px 0}
body.new-site[data-page="home"] .new-home-draw-summary{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto auto;
  align-items:center;
  gap:18px;
}
body.new-site[data-page="home"] .new-home-draw-result-title{
  color:#111;
  font-size:27px;
  font-weight:500;
  line-height:1.2;
  white-space:nowrap;
}
body.new-site[data-page="home"] .new-home-countdown{
  display:flex;
  flex-direction:row;
  align-items:baseline;
  gap:8px;
  color:#f1302d;
  white-space:nowrap;
}
body.new-site[data-page="home"] .new-home-countdown>span{color:#f1302d;font-size:22px;font-weight:500}
body.new-site[data-page="home"] .new-home-countdown>strong{margin:0;color:#f1302d;font-size:28px;font-weight:500;line-height:1;font-variant-numeric:tabular-nums}
body.new-site[data-page="home"] .new-home-reminder{
  display:flex;
  height:46px;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:0 18px;
  border:2px solid #f1302d;
  border-radius:24px;
  background:#fff;
  color:#f1302d;
  font-size:20px;
  font-weight:500;
  white-space:nowrap;
}
body.new-site[data-page="home"] .new-home-reminder em{font-style:normal}
body.new-site[data-page="home"] .new-home-reminder.is-enabled{background:#f1302d;color:#fff}
body.new-site[data-page="home"] .new-home-reminder.is-enabled .new-home-reminder-icon path[stroke]{stroke:#fff}
body.new-site[data-page="home"] .new-home-draw-card [data-home-balls]>.new-balls{gap:10px;padding:24px 8px 20px}
body.new-site[data-page="home"] .new-home-draw-card .new-ball{
  border:0;
  background-color:transparent;
  background-position:center;
  background-repeat:no-repeat;
  background-size:contain;
  box-shadow:none;
  font-weight:700;
}
body.new-site[data-page="home"] .new-home-draw-card .new-ball-red{color:#e63232;background-image:url('/assets/new-design/ball-red.png')}
body.new-site[data-page="home"] .new-home-draw-card .new-ball-blue{color:#2b76d9;background-image:url('/assets/new-design/ball-blue.png')}
body.new-site[data-page="home"] .new-home-draw-card .new-ball-green{color:#2fa34f;background-image:url('/assets/new-design/ball-green.png')}
body.new-site[data-page="home"] .new-home-draw-card .new-ball-wrap small{color:#111;font-weight:700}
body.new-site[data-page="home"] .new-home-draw-links{justify-content:space-between;gap:16px}
body.new-site[data-page="home"] .new-home-draw-links>p{
  display:flex;
  min-width:0;
  align-items:center;
  gap:7px;
  margin:0;
  color:#f1302d;
  font-size:18px;
  white-space:nowrap;
}
body.new-site[data-page="home"] .new-home-draw-links>p strong{font:inherit;font-weight:500}
body.new-site[data-page="home"] .new-home-draw-links>p time{font:inherit}
body.new-site[data-page="home"] .new-home-draw-links>a{gap:4px;color:#4c4c4c;font-size:18px;font-weight:500}

@media(max-width:640px){
  body.new-site[data-page="home"] .new-lottery-switch{
    grid-template-columns:minmax(0,1fr) 116px minmax(0,1fr);
    width:calc(100% - 16px);
    margin-top:4px;
  }
  body.new-site[data-page="home"] .new-lottery-switch button{height:55px;font-size:20px}
  body.new-site[data-page="home"] .new-home-official-tab{height:38px;font-size:20px}
  body.new-site[data-page="home"] .new-home-draw-card{padding:12px 12px 0}
  body.new-site[data-page="home"] .new-home-draw-summary{grid-template-columns:minmax(0,1fr) auto auto;gap:6px}
  body.new-site[data-page="home"] .new-home-draw-result-title{font-size:18px;font-weight:600}
  body.new-site[data-page="home"] .new-home-countdown{flex-direction:column;align-items:center;gap:1px}
  body.new-site[data-page="home"] .new-home-countdown>span{font-size:13px;font-weight:600}
  body.new-site[data-page="home"] .new-home-countdown>strong{font-size:24px;font-weight:600}
  body.new-site[data-page="home"] .new-home-reminder{height:30px;gap:5px;padding:0 8px;border-width:1px;border-radius:17px;font-size:12px;font-weight:600}
  body.new-site[data-page="home"] .new-home-reminder-icon{width:13px;height:13px}
  body.new-site[data-page="home"] .new-home-draw-card [data-home-balls]>.new-balls{gap:2px;padding:18px 0 15px}
  body.new-site[data-page="home"] .new-home-draw-card .new-ball{width:43px;height:43px;font-size:15px}
  body.new-site[data-page="home"] .new-home-draw-card .new-ball-wrap small{margin-top:5px;font-size:14px}
  body.new-site[data-page="home"] .new-home-draw-card .new-plus{margin-top:10px;font-size:20px}
  body.new-site[data-page="home"] .new-home-draw-links{min-height:48px;gap:7px}
  body.new-site[data-page="home"] .new-home-draw-links>p{gap:4px;font-size:14px}
  body.new-site[data-page="home"] .new-home-draw-links>a{font-size:14px}
  body.new-site[data-page="home"] .new-home-draw-links>a>b{font-size:21px}
}

@media(max-width:370px){
  body.new-site[data-page="home"] .new-lottery-switch{grid-template-columns:minmax(0,1fr) 104px minmax(0,1fr)}
  body.new-site[data-page="home"] .new-home-official-tab{font-size:16px}
  body.new-site[data-page="home"] .new-home-draw-card{padding-left:9px;padding-right:9px}
  body.new-site[data-page="home"] .new-home-draw-summary{gap:4px}
  body.new-site[data-page="home"] .new-home-draw-result-title{font-size:16px}
  body.new-site[data-page="home"] .new-home-countdown>span{font-size:11px}
  body.new-site[data-page="home"] .new-home-countdown>strong{font-size:20px}
  body.new-site[data-page="home"] .new-home-reminder{height:27px;padding:0 6px;font-size:11px}
  body.new-site[data-page="home"] .new-home-draw-card .new-ball{width:39px;height:39px;font-size:14px}
  body.new-site[data-page="home"] .new-home-draw-card .new-ball-wrap small{font-size:14px}
  body.new-site[data-page="home"] .new-home-draw-links>p{font-size:12px}
  body.new-site[data-page="home"] .new-home-draw-links>a{font-size:13px}
}

/* History page: use the same three-part lottery heading as the homepage. */
.new-history-body .new-history-home-tabs{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  align-items:end;
  width:calc(100% - 16px);
  margin:0 auto 8px;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
.new-history-body .new-history-home-tabs>a{
  position:relative;
  display:flex;
  height:44px;
  align-items:center;
  justify-content:center;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  color:#7b7f92;
  font-size:20px;
  font-weight:800;
  white-space:nowrap;
}
.new-history-body .new-history-home-tabs>a.is-active{background:transparent;color:#f1302d}
.new-history-body .new-history-home-tabs>a.is-active:after{
  content:"";
  position:absolute;
  left:50%;
  bottom:0;
  width:74px;
  height:3px;
  border-radius:3px;
  background:#f1302d;
  transform:translateX(-50%);
}
.new-history-body .new-history-home-tabs .new-home-official-tab{
  display:flex;
  height:38px;
  align-items:center;
  justify-content:center;
  align-self:end;
  clip-path:polygon(0 0,100% 0,86% 100%,14% 100%);
  background:#f72f32;
  color:#fff;
  font-size:16px;
  font-weight:800;
  line-height:1;
  white-space:nowrap;
}
.new-history-body .new-draw-history-meta span{font-size:14px;font-weight:700}
.new-history-body .new-draw-history-meta>strong{color:var(--ink)}
.new-history-body .new-draw-history-issue-number{color:var(--red);font-style:normal}
/* History page: compact four-year row with an expandable remainder. */
.new-history-body .new-history-year-filter{
  display:grid;
  grid-template-columns:44px minmax(0,1fr) auto;
  min-height:50px;
  align-items:center;
  gap:5px;
  margin:0 8px;
  padding:4px 9px;
  overflow:visible;
}
.new-history-body .new-history-year-filter>strong{margin:0;font-size:14px;font-weight:800;white-space:nowrap}
.new-history-body .new-history-year-options{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  min-width:0;
  gap:4px 2px;
}
.new-history-body .new-history-year-options>a{
  display:grid;
  min-width:0;
  height:28px;
  place-items:center;
  padding:0 2px;
  border-radius:14px;
  color:#253657;
  font-size:14px;
  font-weight:700;
  white-space:nowrap;
}
.new-history-body .new-history-year-options>a.is-active{background:#f1302d;color:#fff;box-shadow:0 3px 8px rgba(241,48,45,.18)}
.new-history-body .new-history-year-filter:not(.is-expanded) .new-history-year-options>a:nth-child(n+5){display:none}
.new-history-body .new-history-year-filter.has-year-window:not(.is-expanded) .new-history-year-options>a{display:none}
.new-history-body .new-history-year-filter.has-year-window:not(.is-expanded) .new-history-year-options>a.is-collapsed-visible{display:grid}
.new-history-body .new-history-year-filter.is-expanded{align-items:start}
.new-history-body .new-history-year-filter.is-expanded .new-history-year-options{padding:6px 0}
.new-history-body .new-history-year-filter.is-expanded>strong,
.new-history-body .new-history-year-filter.is-expanded>button{margin-top:6px}
.new-history-body .new-history-year-filter>button{
  min-height:28px;
  padding:0;
  border:0;
  background:transparent;
  color:#f1302d;
  font-size:14px;
  font-weight:700;
  line-height:1.4;
  white-space:nowrap;
}
@media(max-width:370px){
  .new-history-body .new-history-year-filter{grid-template-columns:40px minmax(0,1fr) auto;gap:3px;padding-inline:6px}
  .new-history-body .new-history-year-options{gap:3px 1px}
  .new-history-body .new-history-year-options>a{font-size:12px;letter-spacing:-.2px}
  .new-history-body .new-history-year-filter>button{font-size:12px}
}

/* Match the formula-card edges to the latest-draw card and share the added width equally. */
body.new-site[data-page="home"] #formula-gallery.new-formula-section{
  margin-left:0;
  margin-right:0;
  padding-left:8px;
  padding-right:8px;
}

body.new-site[data-page="home"] #formula-gallery .new-card-actions{
  grid-template-columns:repeat(2,minmax(0,1fr));
}

body.new-site[data-page="home"] .new-trend-section{
  width:calc(100% - 16px);
  margin-left:auto;
  margin-right:auto;
}

body.new-site[data-page="home"] .new-home-reminder{display:none}

.new-history-body .new-history-search-toggle{color:#111;font-size:18px;font-weight:600;line-height:1.2;min-height:44px;white-space:nowrap}
.new-history-body .new-history-issue-search input{font-size:16px;-webkit-text-size-adjust:100%;text-size-adjust:100%}
.new-history-body .new-history-issue-search>.new-history-search-clear{height:40px;padding:0 6px;border:0;background:transparent;color:#777;font-size:14px;font-weight:400;box-shadow:none;white-space:nowrap}

.new-formula-detail-header>strong{font-size:20px}

/* Keep four period cells per row in both collapsed and expanded states. */
.new-formula-detail-body .new-detail-period-card .new-detail-filter-row .new-detail-issue-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px 2px;-webkit-text-size-adjust:100%;text-size-adjust:100%}
.new-formula-detail-body .new-detail-period-card .new-detail-issue-options>a{min-width:0;width:100%;padding-inline:2px;white-space:nowrap}
.new-formula-detail-body .new-detail-period-card .new-detail-filter-row.has-period-window:not(.is-expanded) .new-detail-issue-options>a{display:none}
.new-formula-detail-body .new-detail-period-card .new-detail-filter-row.has-period-window:not(.is-expanded) .new-detail-issue-options>a.is-collapsed-visible{display:grid}

/* Prevent iOS from zooming the home page when its compact search field receives focus. */
@media(max-width:640px){
  body.new-site[data-page="home"] .new-header-search-field>input{font-size:16px;line-height:1.2;-webkit-text-size-adjust:100%;text-size-adjust:100%}
}

/* Managed carousel images keep the recommended ratio and remain fully visible. */
.new-banner.has-managed-banner{
  height:auto;
  aspect-ratio:744/294;
  background:#f4f6fa;
}
.new-banner.has-managed-banner .new-banner-slide{
  width:100%;
  height:100%;
}
.new-banner.has-managed-banner .new-banner-slide img{
  display:block;
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center;
}

/* The homepage remains a phone-width canvas on wide desktop windows. */
body.new-site[data-page="home"] .new-lottery-switch{
  grid-template-columns:minmax(0,1fr) 116px minmax(0,1fr);
  width:calc(100% - 16px);
  margin-top:4px;
}
body.new-site[data-page="home"] .new-lottery-switch button{height:55px;font-size:20px}
body.new-site[data-page="home"] .new-home-official-tab{height:38px;font-size:16px}
body.new-site[data-page="home"] .new-home-draw-card{padding:12px 12px 0;-webkit-text-size-adjust:100%;text-size-adjust:100%}
body.new-site[data-page="home"] .new-home-draw-summary{grid-template-columns:minmax(0,1fr) auto;gap:6px}
body.new-site[data-page="home"] .new-home-draw-summary>*{min-width:0}
body.new-site[data-page="home"] .new-home-draw-result-title{justify-self:start;font-size:18px;font-weight:600;letter-spacing:-.2px;white-space:nowrap}
body.new-site[data-page="home"] .new-home-draw-issue-number{color:#f1302d}
body.new-site[data-page="home"] .new-home-countdown{justify-self:end;flex-direction:row;align-items:center;gap:0;white-space:nowrap}
body.new-site[data-page="home"] .new-home-countdown>span{font-size:18px;font-weight:600;line-height:1}
body.new-site[data-page="home"] .new-home-countdown>strong{font-size:18px;font-weight:600;line-height:1}
body.new-site[data-page="home"] .new-home-reminder{justify-self:end;height:30px;gap:5px;padding:0 8px;border-width:1px;border-radius:17px;font-size:12px;font-weight:600}
body.new-site[data-page="home"] .new-home-reminder-icon{width:13px;height:13px}
body.new-site[data-page="home"] .new-home-draw-card [data-home-balls]>.new-balls{gap:2px;padding:13px 0 15px}
body.new-site[data-page="home"] .new-home-draw-card .new-ball{width:43px;height:43px;font-size:15px}
body.new-site[data-page="home"] .new-home-draw-card .new-ball-wrap small{margin-top:5px;font-size:14px}
body.new-site[data-page="home"] .new-home-draw-card .new-plus{margin-top:10px;font-size:20px}
body.new-site[data-page="home"] .new-home-draw-links{min-height:48px;gap:7px}
body.new-site[data-page="home"] .new-home-draw-links>p{gap:4px;font-size:14px;font-weight:700}
body.new-site[data-page="home"] .new-home-draw-links>p strong,
body.new-site[data-page="home"] .new-home-draw-links>p time{font-weight:700}
body.new-site[data-page="home"] .new-home-draw-links>a{font-size:14px;font-weight:700}
body.new-site[data-page="home"] .new-home-draw-links>a>b{font-size:21px}

@media(max-width:370px){
  body.new-site[data-page="home"] .new-lottery-switch{grid-template-columns:minmax(0,1fr) 104px minmax(0,1fr)}
  body.new-site[data-page="home"] .new-home-official-tab{font-size:16px}
  body.new-site[data-page="home"] .new-home-draw-card{padding-left:9px;padding-right:9px}
  body.new-site[data-page="home"] .new-home-draw-summary{gap:4px}
  body.new-site[data-page="home"] .new-home-draw-result-title{font-size:18px}
  body.new-site[data-page="home"] .new-home-countdown>span{font-size:18px}
  body.new-site[data-page="home"] .new-home-countdown>strong{font-size:18px}
  body.new-site[data-page="home"] .new-home-reminder{height:27px;padding:0 6px;font-size:11px}
  body.new-site[data-page="home"] .new-home-draw-card .new-ball{width:39px;height:39px;font-size:14px}
  body.new-site[data-page="home"] .new-home-draw-card .new-ball-wrap small{font-size:14px}
  body.new-site[data-page="home"] .new-home-draw-links>p{font-size:12px}
  body.new-site[data-page="home"] .new-home-draw-links>a{font-size:13px}
}
