.plan-first-tools,.plan-first-reveal{display:none}
@media(max-width:800px){
 html:has(body[data-home-workspace="true"]){scrollbar-gutter:auto}
 body[data-home-workspace="true"] .portal-shell main{padding:10px 12px 84px!important}
 #home-workspace{display:flex;flex-direction:column;gap:10px}
 #home-workspace>*,#home-workspace>.panel,#home-workspace>.draw-panel{margin:0}
 .plan-first-tools{display:grid;gap:7px;order:0}
 .plan-first-game{display:flex;align-items:center;gap:8px;border:0;background:white;border-radius:12px;padding:8px 12px;min-height:48px;color:#252630;text-align:left;cursor:pointer}
 .plan-first-game img{width:32px;height:32px}.plan-first-game strong{font-size:18px}.plan-first-game>span{margin-left:auto;font-size:12px;color:#b51b38}
 .plan-first-tools label{display:flex;align-items:center;gap:10px;font-size:12px;color:#77717a;padding:0 2px}
 .plan-first-tools select{flex:1;min-width:0;min-height:40px;border:1px solid #e5dfe5;border-radius:10px;background:white;color:#292732;padding:7px 10px;font:inherit;font-size:14px;font-weight:600}
 #home-workspace>.home-current-exterior{display:none!important}
 #home-workspace>.home-draw{order:1;display:flex!important;align-items:center!important;gap:6px!important;padding:8px 10px!important;min-height:48px!important;border-radius:12px;box-shadow:none}
 .home-draw>.home-current,.home-draw .desktop-draw-icon,.home-draw .section-head,.home-draw #draw-time,.home-draw .home-draw-actions,.home-draw .home-next-info,.home-draw #home-streaks-live,.home-draw #countdown-note{display:none!important}
 .home-draw .draw-main{flex:1;display:flex!important;align-items:center;gap:5px;min-width:0}
 .home-draw .draw-main:before{content:'上期开奖';font-size:10px;color:#85818a;flex-shrink:0;width:22px;line-height:1.4}
 .home-draw #numbers{display:flex!important;flex-wrap:wrap!important;gap:2px!important;margin:0!important;padding:0!important;min-height:0!important}
 .home-draw #numbers>span{width:18px!important;height:20px!important;min-width:0!important;font-size:10px!important;line-height:20px!important;border-radius:4px!important;padding:0!important;box-shadow:none!important}
 .home-draw .home-countdown{width:auto!important;min-width:70px!important;padding:0!important;margin:0!important;border:0!important;display:block!important;position:static!important}
 .home-draw #draw-clock-progress{width:auto!important;height:auto!important;background:none!important;border:0!important;box-shadow:none!important;padding:0!important}
 .home-draw #draw-clock-progress>svg{display:none!important}.home-draw .draw-clock-face{position:static!important;display:flex!important;flex-direction:column!important;gap:1px!important;padding:0!important}
 .home-draw #countdown-heading{font-size:9px!important}.home-draw #countdown{font-size:18px!important;line-height:1.2!important;padding:0!important}
 #home-workspace>.home-plan{order:2;padding:0!important;border:0;background:transparent;box-shadow:none}
 .home-plan>.home-plan-heading,.home-plan .home-plan-options,.home-plan [data-plan-expand]{display:none!important}
 .home-plan .home-plan-picker{margin:0;padding:0}.home-plan .home-plan-feedback:not([hidden]){padding:8px;background:#fff4df}
 #home-plan-live>.home-active-plan{padding:12px 14px!important;margin:0!important;border-radius:14px;background:#fffafa}
 .home-active-title{gap:6px!important}.home-active-title h3{font-size:15px!important}.mobile-plan-update{font-size:10px!important}
 .home-active-layout{display:block!important}.home-plan-summary{display:none!important}
 .home-active-content .home-target{margin:8px 0!important;font-size:11px!important}.home-active-content .home-target strong{display:inline!important;font-size:12px!important;margin-left:4px!important;overflow-wrap:anywhere;white-space:normal}
 .home-active-content .home-prediction{margin:8px 0!important;gap:6px!important}.home-active-content .home-prediction>span{min-width:37px!important;min-height:38px!important;padding:4px 8px!important;font-size:23px!important}
 .home-active-content>.muted{font-size:10px!important;line-height:1.6!important;margin:4px 0 0!important;overflow-wrap:anywhere}
 #home-workspace>.home-record-grid{order:3;display:block}.home-record-grid .mobile-record-tabs{display:flex;margin:0 0 10px;min-height:42px}
 .mobile-record-tabs button{min-height:40px!important;padding:8px!important;font-size:13px!important}
 .home-record-grid>.home-record-panel{padding:12px!important;border-radius:14px}
 #home-records-live>.section-head{display:flex;flex-direction:column;align-items:flex-start;gap:4px;margin:0 0 8px}
 #home-records-live>.section-head h2{font-size:17px}#home-records-live>.section-head>span{font-size:10px;text-align:left}
 #home-records-live .home-record-toolbar{display:none}
 .home-plan-records{overflow:visible!important}.home-plan-records table{display:block!important;min-width:0!important;width:100%!important}.home-plan-records thead{display:none}.home-plan-records tbody{display:block}
 .home-plan-records tbody tr{display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:5px 8px;height:auto!important;padding:10px 0!important;border-bottom:1px solid #eeeaf0}
 .home-plan-records tbody td{padding:0!important;border:0!important;min-width:0;white-space:normal!important;text-align:left!important}
 .home-plan-records tbody td:nth-child(1){grid-column:1;grid-row:1;font-size:11px!important;color:#77717a;display:flex;gap:3px;flex-wrap:wrap}
 .home-plan-records tbody td:nth-child(1) small{display:inline!important;font-size:inherit!important;line-height:inherit!important}
 .home-plan-records tbody td:nth-child(2){grid-column:1;grid-row:2;font-size:17px!important;font-weight:700;color:#29242d;line-height:1.5!important;overflow-wrap:anywhere}
 .home-plan-records tbody td:nth-child(2):before{content:'计划内容 ';font-size:10px;font-weight:400;color:#89818a;margin-right:5px}
 .home-plan-records tbody td:nth-child(3){grid-column:1;grid-row:3;font-size:10px!important;color:#938a92}
 .home-plan-records tbody td:nth-child(3):before{content:'发布于 '}
 .home-plan-records tbody td:nth-child(4){grid-column:2;grid-row:1 / 4;align-self:center}
 .home-plan-records tbody td[colspan]{grid-column:1 / -1!important;grid-row:auto!important}
 #plan-records:not(.plan-first-expanded) tbody tr:nth-child(n+11),#plan-records:not(.plan-first-expanded) .home-load-row{display:none!important}
 .plan-first-reveal{display:block;width:100%;min-height:44px;border:0;border-radius:9px;background:#f7f4f6;color:#b51b38;margin-top:10px}.plan-first-reveal[hidden]{display:none}
 #home-workspace>.home-carousel{order:5;margin-top:8px}#home-workspace>.notice-ticker{display:none!important}
 .home-history{margin-top:0!important}.home-record-grid[data-record-view="draws"]>#plan-records{display:none!important}
}
@media(max-width:800px){
 .home-draw .home-countdown{flex:0 0 72px!important;width:72px!important;min-width:72px!important}
 .home-draw .draw-main{flex:1 1 0%!important;width:auto!important}
 .home-draw #numbers{flex:1 1 0%;width:auto!important}
 .home-draw #numbers>span{flex:0 0 18px!important;max-width:18px!important}
 .mobile-record-tabs button{flex:1;text-align:center}
 .home-draw #draw-clock-progress .draw-clock-face{height:auto!important;min-height:0!important}
}
.plan-first-extras{display:none}
@media(max-width:800px){.plan-first-extras{order:4;display:flex;gap:10px}.plan-first-extras a{flex:1;text-align:center;padding:13px 8px;border:1px solid #e9e3e9;border-radius:10px;background:white;font-size:13px;color:#756674}}
/* Explicit result issue above larger draw numbers; lighter current-plan numbers. */
@media(max-width:800px){
 #home-workspace>.home-draw{display:grid!important;grid-template-columns:minmax(0,1fr) 76px!important;gap:7px 8px!important;padding:10px 12px!important}
 .home-draw .draw-main{display:contents!important}
 .home-draw .draw-main:before{display:none!important}
 .home-draw .draw-main>.section-head{display:block!important;grid-column:1;grid-row:1;margin:0!important;min-height:0!important;align-self:center}
 .home-draw .desktop-draw-name{display:none!important}
 .home-draw #issue{display:block;font-size:11px!important;font-weight:500;color:#837781;line-height:1.5;white-space:normal;overflow-wrap:anywhere}
 .home-draw #issue:after{content:' 开奖结果'}
 .home-draw .home-countdown{grid-column:2;grid-row:1;justify-self:end}
 .home-draw #numbers{grid-column:1 / -1;grid-row:2;display:flex!important;gap:4px!important;flex-wrap:wrap!important}
 .home-draw #numbers>span{flex:0 0 24px!important;width:24px!important;max-width:24px!important;height:26px!important;line-height:26px!important;font-size:12px!important;border-radius:5px!important}
 .home-active-content .home-prediction>span{min-width:32px!important;min-height:33px!important;padding:3px 7px!important;font-size:19px!important}
}
@media(max-width:360px){.home-draw #numbers{gap:3px!important}.home-draw #numbers>span{flex-basis:22px!important;width:22px!important;max-width:22px!important}}
@media(max-width:800px){
 .home-draw .draw-main>.section-head{position:static!important;inset:auto!important;transform:none!important;width:auto!important;grid-area:1 / 1!important;padding:0!important}
 #home-workspace>.home-draw>.home-countdown{grid-area:1 / 2!important;justify-self:end!important;align-self:center!important;width:76px!important;min-width:0!important;box-sizing:border-box!important;inset:auto!important}
}
/* Compact lottery / plan row and inline draw countdown. */
@media(max-width:800px){
 .plan-first-tools{grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);align-items:center;gap:8px;background:#fff;border-radius:12px;padding:7px 10px}
 .plan-first-game{padding:0;min-width:0;gap:6px;background:transparent}
 .plan-first-game img{width:29px;height:29px;flex:none}
 .plan-first-game strong{font-size:16px;line-height:1.3;min-width:0;overflow-wrap:anywhere}
 .plan-first-game>span{display:none}
 .plan-first-tools label{position:relative;display:block;min-width:0;font-size:0;padding:0}
 .plan-first-tools select{display:block;width:100%;min-width:0;min-height:40px;padding:8px 30px 8px 10px;font-size:13px;border:1px solid #e9e3e9;border-radius:9px;appearance:none;-webkit-appearance:none;background:#faf9fb;box-sizing:border-box;text-overflow:ellipsis}
 .plan-first-tools label:after{content:'';position:absolute;right:13px;top:50%;width:6px;height:6px;border-right:1.5px solid #68616b;border-bottom:1.5px solid #68616b;transform:translateY(-70%) rotate(45deg);pointer-events:none}
 .home-draw #issue:after{content:none}
 #home-workspace>.home-draw{grid-template-columns:minmax(0,1fr) auto!important}
 #home-workspace>.home-draw>.home-countdown{width:auto!important;min-width:0!important}
 .home-draw #draw-clock-progress .draw-clock-face{flex-direction:row!important;align-items:center!important;justify-content:flex-end!important;gap:5px!important}
 .home-draw #countdown-heading{white-space:nowrap;font-size:10px!important}
 .home-draw #countdown{white-space:nowrap;font-size:17px!important;letter-spacing:0!important}
}
@media(max-width:360px){.plan-first-tools{gap:5px;padding:6px 8px}.plan-first-game strong{font-size:14px}.plan-first-game img{width:25px;height:25px}.plan-first-tools select{font-size:12px;padding-left:7px}.home-draw #countdown-heading{font-size:9px!important}.home-draw #countdown{font-size:15px!important}}
@media(max-width:800px){
 #home-workspace>.home-draw>.home-countdown,.home-draw #draw-clock-progress{height:auto!important;min-height:0!important}
 .home-draw #draw-clock-progress .draw-clock-face{inset:auto!important;min-height:0!important;height:auto!important}
}

/* Merge lottery identity and draw timing, with the plan selector in its own card. */
.current-plan-select{display:none}
@media(max-width:800px){
 .plan-first-tools{display:none!important}
 #home-workspace>.home-draw{grid-template-columns:minmax(0,1fr) auto!important;gap:2px 8px!important;padding:12px!important}
 .home-draw>.plan-first-game{grid-column:1;grid-row:1 / 3;align-self:center}
 .home-draw .draw-main>.section-head{grid-area:1 / 2!important;text-align:right!important}
 #home-workspace>.home-draw>.home-countdown{grid-area:2 / 2!important}
 .home-draw #numbers{grid-row:3!important;margin-top:10px!important}
 .home-active-title{display:flex!important;flex-wrap:nowrap!important;align-items:center!important}
 .home-active-title h3{display:none!important}
 .home-active-title>.mobile-plan-update{flex:none}
 .home-active-title>.badge{margin-left:auto;flex:none}
 .home-active-title .current-plan-select{position:relative;display:block;min-width:0;flex:1;font-size:0}
 .current-plan-select select{display:block;box-sizing:border-box;width:100%;min-width:0;min-height:38px;padding:6px 24px 6px 6px;border:0;border-radius:7px;background:transparent;appearance:none;-webkit-appearance:none;color:#292732;font-family:inherit;line-height:1.3;font-size:15px;font-weight:600;text-overflow:ellipsis;cursor:pointer}
 .current-plan-select:after{content:'';position:absolute;right:10px;top:50%;width:6px;height:6px;border-right:1.5px solid #68616b;border-bottom:1.5px solid #68616b;transform:translateY(-70%) rotate(45deg);pointer-events:none}
}
@media(max-width:360px){.current-plan-select select{font-size:13px;padding-left:3px}.home-draw #issue{font-size:10px!important}}

@media(min-width:801px){.home-draw>.plan-first-game{display:none}}

.compact-next-issue,.compact-current-issue{display:none}
@media(max-width:800px){
 .home-draw>.plan-first-game{display:grid;grid-template-columns:29px minmax(0,1fr);gap:2px 6px}
 .home-draw>.plan-first-game img{grid-column:1;grid-row:1 / 3}
 .home-draw>.plan-first-game strong{grid-column:2;grid-row:1}
 .home-draw .compact-current-issue{display:block;grid-column:2;grid-row:2;font-size:10px;line-height:1.4;color:#837781;font-weight:400;white-space:nowrap}
 .home-draw .draw-main>.section-head{display:none!important}
 .home-draw .compact-next-issue{display:block;grid-area:1 / 2;text-align:right;font-size:10px;color:#837781;white-space:nowrap}
 .home-active-title>.badge,.home-active-title>.mobile-plan-update{display:none!important}
 .home-active-title .current-plan-select{border:1px solid #dbb5bf;border-radius:9px;background:#fff;padding:16px 0 0}
 .current-plan-select:before{content:'切换方案';position:absolute;top:6px;left:10px;color:#a91b38;font-size:10px;line-height:1}
 .current-plan-select select{min-height:34px;padding:4px 34px 6px 10px;font-size:15px}
 .current-plan-select:after{right:15px;width:7px;height:7px}
}
@media(max-width:360px){.home-draw>.plan-first-game{grid-template-columns:25px minmax(0,1fr)}.home-draw .compact-current-issue,.home-draw .compact-next-issue{font-size:9px}}

/* Tight draw identity and a raised, full-width plan-card heading. */
@media(max-width:800px){
 #home-workspace>.home-draw{row-gap:0!important}
 .home-draw>.plan-first-game{min-height:0;grid-template-columns:36px minmax(0,1fr);grid-template-rows:21px 15px;row-gap:0;align-items:end;align-self:end}
 .home-draw>.plan-first-game img{width:36px;height:36px;align-self:end}
 .home-draw>.plan-first-game strong{line-height:21px;align-self:end}
 .home-draw .compact-current-issue{line-height:15px;align-self:end}
 .home-draw .compact-next-issue{line-height:15px;align-self:end}
 #home-workspace>.home-draw>.home-countdown{align-self:end!important}
 #home-plan-live>.home-active-plan{overflow:hidden}
 .home-active-title{margin:-12px -14px 10px!important;padding:0!important}
 .home-active-title .current-plan-select{padding:0;border:0;border-bottom:1px solid #e0b9c4;border-radius:13px 13px 0 0;background:linear-gradient(180deg,#fff 0%,#f9eef1 60%,#f0dfe5 100%);box-shadow:inset 0 1px 0 #fff,0 2px 4px #7e243414}
 .current-plan-select:before{content:none}
 .current-plan-select select{min-height:46px;padding:11px 40px 11px 14px;border-radius:13px 13px 0 0;font-size:15px;color:#442b35;font-weight:700}
 .current-plan-select:after{right:17px;border-color:#925269}
 .current-plan-select:focus-within{outline:2px solid #bc2042;outline-offset:-2px}
}
@media(max-width:360px){
 .home-draw>.plan-first-game{grid-template-columns:34px minmax(0,1fr)}
 .home-draw>.plan-first-game img{width:34px;height:34px}
}

/* Results first on the mobile streak page; filters follow the current lottery. */
@media(max-width:800px){
 .streak-first-page{display:flex;flex-direction:column;gap:12px;padding-bottom:90px!important}
 .streak-first-page>.page-heading{order:0;margin:4px 0 0!important}
 .streak-first-page>.page-heading h1{font-size:21px;margin:0}
 .streak-first-page>.page-heading p{font-size:11px;margin:5px 0 0}
 .streak-first-results{order:1;padding:14px!important;margin:0!important;border-radius:14px}
 .streak-results-heading{display:grid;grid-template-columns:1fr auto;gap:5px 8px;margin-bottom:12px}
 .streak-results-heading h2{grid-column:1 / -1;font-size:18px;margin:0}
 .streak-results-heading p{font-size:11px;color:#857883;margin:0}
 .streak-results-heading a{font-size:11px;color:#b7193c;align-self:center}
 .streak-first-results .table-wrap{overflow:visible}
 .streak-first-results table,.streak-first-results tbody{display:block;width:100%;min-width:0!important}
 .streak-first-results thead{display:none}
 .streak-first-results tbody tr{display:grid;grid-template-columns:minmax(0,1fr) 40px 58px;grid-template-rows:auto auto;gap:3px 8px;padding:11px 10px;margin:7px 0;background:#faf7f9;border:1px solid #eee4e9;border-radius:10px;height:auto!important}
 .streak-first-results tbody td{border:0;padding:0!important;white-space:normal!important;min-width:0;text-align:left!important}
 .streak-first-results tbody td:nth-child(1){grid-column:1;grid-row:2;font-size:10px;color:#8b818b}
 .streak-first-results tbody td:nth-child(2){grid-column:1;grid-row:1;font-size:14px;font-weight:600;color:#302a33}
 .streak-first-results tbody td:nth-child(3){grid-column:2;grid-row:1 / 3;align-self:center;justify-self:center;color:#b9193e;font-size:17px;font-weight:700}
 .streak-first-results tbody td:nth-child(4){grid-column:3;grid-row:1 / 3;align-self:center;text-align:right!important;color:#b7193c;font-size:11px}
 .streak-first-results tbody td:nth-child(4) strong{font-size:24px;line-height:1.2}
 .streak-first-results tbody td:nth-child(4):after{content:' 期';font-size:11px;color:#857883}
 .streak-first-results tbody td[colspan]{grid-column:1 / -1;grid-row:auto}
 .streak-first-results .empty{padding:16px 4px}.streak-first-results .empty h3{font-size:15px}
 .streak-result-tools{margin-top:12px}.streak-result-tools #sound{width:100%;min-height:40px;font-size:12px}
 .streak-first-filter{order:2;display:grid!important;grid-template-columns:1fr 1fr;gap:12px!important;padding:14px!important;margin:0!important;border-radius:14px;scroll-margin-top:12px}
 .streak-first-filter h2{grid-column:1 / -1;font-size:17px;margin:0}
 .streak-first-filter>label{font-size:11px;min-width:0}
 .streak-first-filter>label input,.streak-first-filter>label select{min-height:40px;font-size:13px;padding:8px;width:100%;box-sizing:border-box}
 .streak-first-filter fieldset{grid-column:1 / -1;display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0;padding:8px 0 0}
 .streak-first-filter legend{font-size:11px;padding-bottom:8px}
 .streak-first-filter fieldset .check{display:flex;align-items:center;gap:7px;padding:9px 7px;margin:0;min-width:0;border:1px solid #e8e1e7;border-radius:8px;font-size:12px;background:#fff}
 .streak-first-filter .check:has(input:checked){border-color:#d8899e;color:#b7193c;background:#fff4f7}
 .streak-first-filter .check input{width:16px;height:16px;margin:0;flex:none}
 .streak-first-filter .streak-apply{grid-column:1 / -1;order:5;min-height:44px;font-size:14px}
}

.streak-fixed-filter{display:none}
@media(max-width:800px){
 .streak-fixed-filter{display:flex;position:fixed;z-index:90;left:20px;right:20px;bottom:calc(76px + env(safe-area-inset-bottom,0px));align-items:center;justify-content:center;gap:9px;min-height:44px;padding:0 16px;border:1px solid #ae1233;border-radius:11px;background:linear-gradient(#d32349,#b71538);color:#fff!important;font-size:14px;font-weight:700;text-decoration:none;box-shadow:0 4px 14px #a51b3940}
 .streak-fixed-filter:after{content:'↓';font-size:18px}
 .streak-first-page{padding-bottom:150px!important}
}

.streak-fixed-filter[hidden]{display:none!important}

/* Dedicated history view uses the existing live records and date query. */
.history-first-page #home-workspace> :not(.home-record-grid):not(dialog){display:none!important}
.history-first-page .mobile-record-tabs,.history-first-page #plan-records{display:none!important}
.history-first-page #history-results{display:block!important}
.history-first-page .home-record-grid{display:block!important}
.history-first-page #history-results>.section-head>a:not(.history-filter-shortcut){display:none}
.history-page-heading{font-size:21px;margin:0 0 16px}
.history-filter-shortcut{font-size:12px;color:#b7193c}
.history-other-filter{margin-top:14px!important;scroll-margin-top:12px}
.history-other-filter h2{font-size:18px;margin:0 0 12px}
.history-other-filter form{display:grid;gap:12px}
.history-other-filter label{display:grid;gap:7px;font-size:12px;color:#817581}
.history-other-filter select{width:100%;min-height:44px;border:1px solid #ddd4dc;border-radius:8px;background:#fff;padding:8px 12px;font:inherit;color:#302833;font-size:15px}
@media(max-width:800px){
 .history-first-page #home-workspace{padding-bottom:60px}
 .history-first-page #history-results{padding:14px!important}
 .history-first-page #history-results>.section-head{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
 .history-first-page #history-results>.section-head h2{font-size:17px;margin:0;flex:1}
 .history-first-page .history-filter{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0!important}
 .history-first-page .history-filter label{font-size:11px;min-width:0}
 .history-first-page .history-filter label:first-of-type{flex:1}
 .history-first-page .history-filter input,.history-first-page .history-filter select{min-height:38px;font-size:12px;max-width:100%;padding:6px}
 .history-first-page .history-filter .button{min-height:38px;padding:6px 12px;font-size:12px;align-self:end}
 .history-first-page .history-other-filter{padding:14px}
}

@media(max-width:800px){
 .streak-first-filter{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;align-items:start}
 .streak-first-filter>label{display:grid!important;grid-template-rows:18px 44px;gap:7px!important;margin:0!important;padding:0!important;line-height:18px!important;align-self:start}
 .streak-first-filter>label input,.streak-first-filter>label select{width:100%!important;height:44px!important;min-height:44px!important;max-height:44px!important;box-sizing:border-box!important;margin:0!important;padding:8px 10px!important;font-size:14px!important;line-height:20px!important;border-radius:8px!important}
}

@media(max-width:800px){
 .mobile-brand-bar{background:var(--quanjing-masthead)!important;padding:10px 14px!important;min-height:68px;box-sizing:border-box;gap:8px!important}
 .mobile-brand-bar .mobile-brand-logo{display:flex!important;align-items:center;gap:7px;width:auto!important;min-width:0;flex:1;text-decoration:none;color:#fff8e9}
 .quanjing-mark{width:36px;height:40px;flex:none;display:block}.quanjing-mark svg{width:100%;height:100%}
 .quanjing-wordmark{display:flex;flex-direction:column;gap:3px;white-space:nowrap}.quanjing-wordmark strong{font-size:22px;font-weight:800;line-height:1.2;letter-spacing:1px}.quanjing-wordmark small{font-size:8px;letter-spacing:1.5px;color:#f5d6ce;font-weight:500}
 .mobile-brand-bar nav{display:flex!important;gap:3px!important;flex:none}
 .mobile-brand-bar nav a,.mobile-brand-bar nav a.mobile-login{display:flex!important;flex-direction:column;justify-content:center;align-items:center;gap:4px;width:40px!important;height:46px!important;min-height:46px!important;border:1px solid #ffffff26!important;background:#ffffff0b!important;border-radius:11px!important;color:#fff!important}
 .mobile-brand-bar nav svg{width:21px!important;height:21px!important}
 .mobile-brand-bar nav a span{display:block!important;font-size:10px!important;line-height:12px;font-weight:500;letter-spacing:.5px}
 .mobile-app-tabs{background:#fffffff5!important;border-top:1px solid #ede8ed!important;box-shadow:0 -5px 24px #39213606;backdrop-filter:blur(16px)}
 .mobile-app-tabs a{color:#8e8d9c!important;gap:3px!important}
 .mobile-app-tabs a>span{width:43px!important;height:32px!important;border-radius:11px!important;display:flex;align-items:center;justify-content:center;background:transparent!important}
 .mobile-app-tabs svg{width:23px!important;height:23px!important;stroke-width:1.65}
 .mobile-app-tabs a b{font-size:11px!important;font-weight:500!important;letter-spacing:.5px}
 .mobile-app-tabs a[aria-current="page"]{color:var(--quanjing-red)!important}
 .mobile-app-tabs a[aria-current="page"]>span{background:linear-gradient(145deg,#fff0f3,#f7dfe7)!important;box-shadow:inset 0 1px 0 #fff,0 2px 5px #a6274210}
 .mobile-app-tabs a[aria-current="page"] b{font-weight:700!important}
}
@media(max-width:350px){.mobile-brand-bar{padding-inline:10px!important}.quanjing-mark{width:28px}.quanjing-wordmark strong{font-size:19px;letter-spacing:0}.quanjing-wordmark small{font-size:7px;letter-spacing:1px}.mobile-brand-bar nav a,.mobile-brand-bar nav a.mobile-login{width:35px!important}}

/* Shared desktop/mobile brand palette: match the existing desktop red masthead. */
:root{--quanjing-red:#d71913;--quanjing-masthead:linear-gradient(100deg,#d71913 0%,#e52c28 55%,#e83936 100%)}
.quanjing-identity{display:flex!important;align-items:center;gap:10px!important;color:#fff!important;text-decoration:none}
.quanjing-identity .quanjing-mark{display:block;width:38px;height:38px;flex:none;color:#fff4dc}
.quanjing-identity .quanjing-mark svg{width:100%;height:100%}
.quanjing-identity .quanjing-wordmark{display:flex;flex-direction:column;gap:3px;white-space:nowrap}
.quanjing-identity .quanjing-wordmark strong{font-size:23px;line-height:1.15;font-weight:800;letter-spacing:1px;color:#fff}
.quanjing-identity .quanjing-wordmark small{font-size:8px;line-height:1.3;letter-spacing:1.7px;color:#ffe5df;font-weight:500}
@media(min-width:801px){body[data-home-workspace]>.header{background:var(--quanjing-masthead)!important}.header .quanjing-identity{min-width:248px}.header .quanjing-identity .quanjing-mark{width:44px;height:44px}.header .quanjing-identity .quanjing-wordmark strong{font-size:29px}.header .quanjing-identity .quanjing-wordmark small{font-size:9px;letter-spacing:2.5px}}
@media(max-width:800px){.mobile-app-tabs a[aria-current="page"]>span{background:linear-gradient(145deg,#fff4ef,#ffe4df)!important;box-shadow:inset 0 1px 0 #fff,0 2px 5px #d7191310}}
@media(max-width:350px){.quanjing-identity{gap:6px!important}.quanjing-identity .quanjing-mark{width:29px;height:29px}.quanjing-identity .quanjing-wordmark strong{font-size:19px;letter-spacing:0}.quanjing-identity .quanjing-wordmark small{font-size:7px;letter-spacing:1px}}
.header .brand-wordmark.quanjing-identity{flex-direction:row!important;justify-content:flex-start!important;align-items:center!important;height:64px!important;padding:0!important;overflow:visible!important}

/* Quanjing premium identity: burgundy / champagne, shared by both viewports. */
:root{--quanjing-red:#8c203b;--quanjing-masthead:linear-gradient(110deg,#501023 0%,#741a34 55%,#8c2542 100%);--quanjing-gold:#ead5a6;--brand-primary:#8c203b;--app-accent:#8c203b;--green:#8c203b}
.quanjing-identity .quanjing-mark{color:var(--quanjing-gold);width:43px;height:43px;filter:drop-shadow(0 1px 1px #23041030)}
.quanjing-identity .quanjing-wordmark strong{color:#f5e8ce;font-family:"Songti SC","STSong","Noto Serif CJK SC","SimSun",serif;font-weight:700;letter-spacing:2px;font-size:24px}
.quanjing-identity .quanjing-wordmark small{color:#d9bc88;font-size:7px;letter-spacing:2.4px;margin-top:2px}
.mobile-brand-bar{box-shadow:inset 0 -1px 0 #dab87955,0 4px 16px #50102312!important}
@media(max-width:800px){
 .mobile-brand-bar .quanjing-identity{gap:9px!important}
 .mobile-brand-bar nav a,.mobile-brand-bar nav a.mobile-login{border-color:#ead5a62a!important;background:#ead5a608!important;color:#f4e7cf!important}
 .mobile-app-tabs a[aria-current="page"]>span{background:linear-gradient(145deg,#fcf2f4,#f2e0e5)!important;box-shadow:inset 0 1px 0 #fff,0 2px 5px #5010230c}
}
@media(min-width:801px){.header .quanjing-identity{gap:13px!important}.header .quanjing-identity .quanjing-mark{width:49px;height:49px}.header .quanjing-identity .quanjing-wordmark strong{font-size:30px;letter-spacing:3px}.header .quanjing-identity .quanjing-wordmark small{font-size:8px;letter-spacing:3.4px}}
@media(max-width:350px){.mobile-brand-bar .quanjing-identity{gap:6px!important}.quanjing-identity .quanjing-mark{width:32px;height:32px}.quanjing-identity .quanjing-wordmark strong{font-size:20px;letter-spacing:1px}.quanjing-identity .quanjing-wordmark small{font-size:6px;letter-spacing:1.5px}}

/* Custom-drawn Chinese wordmark: each character uses dedicated vector strokes. */
.quanjing-identity .quanjing-custom-type{display:block;line-height:0!important;width:112px;height:25px;transform:skewX(-5deg);transform-origin:left center;filter:drop-shadow(0 1px 0 #37101c55)}
.quanjing-custom-type svg{display:block;width:100%;height:100%;overflow:visible}
.quanjing-identity .quanjing-wordmark small{letter-spacing:2.6px;font-size:7px;margin-top:3px}
@media(min-width:801px){.header .quanjing-identity .quanjing-custom-type{width:156px;height:34px}.header .quanjing-identity .quanjing-wordmark small{letter-spacing:4px;font-size:8px}}
@media(max-width:350px){.quanjing-identity .quanjing-custom-type{width:93px;height:22px}.quanjing-identity .quanjing-wordmark small{font-size:6px;letter-spacing:1.8px}}
.quanjing-custom-type svg>g{stroke-width:4}

/* Bold cut-stroke lettering, drawn as filled silhouettes rather than font text. */
.quanjing-custom-type svg>g{stroke:none;stroke-width:0}
.quanjing-identity .quanjing-custom-type{width:118px;height:27px;transform:skewX(-7deg);color:#f1ddaf;filter:drop-shadow(0 1px 0 #a3814c) drop-shadow(0 2px 1px #29081240)}
.quanjing-identity .quanjing-wordmark small{letter-spacing:2.9px}
@media(min-width:801px){.header .quanjing-identity .quanjing-custom-type{width:168px;height:38px}.header .quanjing-identity .quanjing-wordmark small{letter-spacing:4.5px}}
@media(max-width:350px){.quanjing-identity .quanjing-custom-type{width:96px;height:23px}.quanjing-identity .quanjing-wordmark small{letter-spacing:2px}}

/* Approved VI 02 artwork, unchanged aspect ratio on both headers. */
:root{--quanjing-masthead:linear-gradient(110deg,#501023 0%,#741a34 55%,#8c2542 100%)}
body[data-home-workspace]>.header,.mobile-brand-bar{background:var(--quanjing-masthead)!important}
.header .brand-wordmark.quanjing-approved{display:flex!important;align-items:center!important;flex-direction:row!important;min-width:0!important;width:248px!important;height:64px!important;padding:0!important;flex:0 0 248px!important}
.header .brand-wordmark.quanjing-approved>img.quanjing-approved-logo{display:block!important;width:248px!important;height:auto!important;max-width:100%!important;max-height:none!important;object-fit:contain!important;filter:none!important}
@media(max-width:800px){
 .mobile-brand-bar .mobile-brand-logo.quanjing-approved{display:flex!important;align-items:center!important;justify-content:flex-start!important;flex:1 1 auto!important;min-width:0!important;width:auto!important;height:48px!important;padding:0!important;overflow:visible!important}
 .mobile-brand-bar .mobile-brand-logo.quanjing-approved>img.quanjing-approved-logo{display:block!important;width:177px!important;height:auto!important;max-width:100%!important;max-height:none!important;object-fit:contain!important;filter:none!important;border-radius:0!important}
 .mobile-brand-bar nav{flex-shrink:0!important}
}
@media(max-width:350px){.mobile-brand-bar .mobile-brand-logo.quanjing-approved>img.quanjing-approved-logo{width:154px!important}}

/* Fashion carousel: full artwork and baked-in copy, no cropped faces. */
.home-carousel{height:300px!important;aspect-ratio:auto!important;background:#30000d!important}
.home-carousel-slide img{object-fit:contain!important;object-position:center!important}
.home-carousel-slide::after{display:none!important}
@media(max-width:800px){.home-carousel{height:auto!important;aspect-ratio:3 / 1!important}}

/* Full-width artwork: all subjects and copy inside extended scene safe area. */
.home-carousel-slide img{object-fit:cover!important;object-position:center!important}

/* Shared visitor palette. Number and trend outcome colors intentionally retain their meaning. */
:root{--q-primary:#8c203b;--q-dark:#64172d;--q-soft:#f7edf1;--q-border:#dfc4ce;--q-muted:#847780;--q-ink:#332b31;--quanjing-red:#8c203b!important;--brand-primary:#8c203b!important;--app-accent:#8c203b!important;--green:#8c203b!important;--navy:#64172d!important;--line:#e9e1e6!important;--muted:#847780!important;--app-muted:#847780!important}
.mobile-brand-bar{border-bottom-color:#b79669!important}
.button:not(.secondary),.streak-fixed-filter,.home-plan-options a[aria-current],.plan-tabs a.active,.analysis-tabs a[aria-current]{background:linear-gradient(115deg,#741a34,#8c2542)!important;border-color:var(--q-dark)!important;color:#fff!important;box-shadow:0 4px 14px #50102326!important}
.button:not(.secondary):hover,.streak-fixed-filter:hover,.home-plan-options a[aria-current]:hover{background:var(--q-dark)!important;color:#fff!important}
.button.secondary,.draw-context-button,.side-back-top,.back-top{background:#fff!important;color:var(--q-primary)!important;border-color:var(--q-border)!important}
.button.secondary:hover,.draw-context-button:hover,.side-back-top:hover,.back-top:hover{background:var(--q-soft)!important;border-color:var(--q-primary)!important}
.history-filter-shortcut,.streak-results-heading a,.home-plan-heading>a,.home-streak-heading>a,.home-streak-heading h3 svg,.home-streak-item>b,.comparison-rate strong,.comparison-link,.rate,.rate strong,.section-head>a,.article-read,.article-source a,.article-list-link,.draw-issue,.home-target strong,.home-prediction span,.home-draw .countdown strong,.draw-clock-face strong,.streak-first-results tbody td:nth-child(3),.streak-first-results tbody td:nth-child(4),.streak-grid strong{color:var(--q-primary)!important}
.mobile-record-tabs button[aria-selected="true"],.mobile-app-tabs a[aria-current],.mobile-app-tabs a[aria-current="page"],.analysis-tabs a.active,.plan-first-reveal{color:var(--q-primary)!important}
.mobile-app-tabs a[aria-current]>span,.mobile-app-tabs a[aria-current="page"]>span{background:var(--q-soft)!important;box-shadow:inset 0 1px 0 white,0 2px 5px #5010230c!important}
.mobile-record-tabs{border-color:#e5dbe2!important;background:#f1edf0f5!important}
.mobile-record-tabs button[aria-selected="true"]{background:#fff!important}
.home-active-plan{border-color:var(--q-border)!important;background:#fffafb!important}
.home-prediction span{border-color:var(--q-border)!important}
.home-active-title .current-plan-select{border-bottom-color:var(--q-border)!important;background:linear-gradient(180deg,#fff,#f7edf1 65%,#eedce4)!important}
.current-plan-select:after{border-color:var(--q-primary)!important}
.current-plan-select:focus-within{outline-color:var(--q-primary)!important}
.home-active-title .mobile-plan-update,.badge.success,.kind-label,.pill{background:var(--q-soft)!important;color:var(--q-primary)!important}
.home-active-plan.is-new-plan .mobile-plan-update{background:var(--q-primary)!important;color:#fff!important}
#home-plan-live>.home-active-plan::after{background:linear-gradient(90deg,#c794a5,#8c203b)!important}
.clock-progress{stroke:var(--q-primary)!important}
.home-game-tile[aria-current],.home-game-tile:hover,.streak-first-filter .check:has(input:checked),.article-categories a[aria-current]{background:var(--q-soft)!important;border-color:var(--q-border)!important;color:var(--q-primary)!important}
.home-game-tile b{color:var(--q-primary)!important}
.home-plan-options a:hover,.plan-tabs a:hover,.category-menu a:hover,.category-menu a[aria-current],.category-nav .category .category-menu-grid>a:hover,.category-nav .category .category-menu-grid>a[aria-current],.category-nav .category[open]>summary,.category-nav .category summary:hover{background:var(--q-soft)!important;border-color:var(--q-border)!important;color:var(--q-primary)!important}
.category-nav .category[open] .chevron,.familiar-category-nav .category[open] summary .chevron{border-color:var(--q-primary)!important;color:var(--q-primary)!important}
#home-workspace .home-switch{color:var(--q-primary)!important;border-color:var(--q-border)!important;background:linear-gradient(145deg,#fff,#f7edf1)!important}
.home-picker-search,.directory-search,.history-other-filter select,.filter select,.filter input[type=number],.history-filter input,.history-filter select,.home-record-toolbar input,.home-record-toolbar select{border-color:#ddd0d8!important;color:var(--q-ink)!important}
.filter label,.filter legend,.history-other-filter label,.history-filter label{color:var(--q-muted)!important}
select:focus-visible,input:focus-visible,button:focus-visible,a:focus-visible{outline:2px solid var(--q-primary);outline-offset:2px}
input[type=checkbox],input[type=radio]{accent-color:var(--q-primary)!important}
.home-picker-search:focus-within,.directory-search:focus-within{border-color:var(--q-primary)!important}
.notice-ticker,.home-notice{border-color:var(--q-border)!important;background:#fcf7f9!important;color:#916678!important}
.notice-ticker strong,.notice-ticker>span:first-child{color:var(--q-primary)!important}
.service-hub-card>span,.app-header-action{color:var(--q-primary)!important;background:var(--q-soft)!important}

.familiar-category-nav .category[data-current-group]>summary,.familiar-category-nav .category[open]>summary,.familiar-category-nav .category summary:hover,.familiar-category-nav>.dragon-link:hover,.familiar-category-nav>.dragon-link[aria-current]{color:var(--q-primary)!important;background:var(--q-soft)!important;box-shadow:inset 0 -2px var(--q-primary)!important}
.familiar-category-nav>.dragon-link svg{color:var(--q-primary)!important}
.analysis-tabs a:not(.active){color:var(--q-muted)!important}
.analysis-tabs a.active[aria-current]{color:#fff!important}

/* Long countdowns use a readable time card instead of overflowing the dial. */
@media(min-width:801px){
 .home-draw .draw-clock-dial[data-duration="long"]{width:100%;height:90px;box-sizing:border-box;min-width:0;border-radius:14px;border:1px solid #e5cbd5;background:linear-gradient(150deg,#fffafb,#f5e8ed);box-shadow:inset 0 1px 0 #fff,0 3px 12px #64172d08;display:flex;align-items:center;justify-content:center;padding:10px 7px}
 .home-draw .draw-clock-dial[data-duration="long"]>svg{display:none}
 .home-draw .draw-clock-dial[data-duration="long"] .draw-clock-face{position:static;inset:auto;gap:8px;width:100%}
 .home-draw .draw-clock-dial[data-duration="long"] #countdown{font-size:19px;letter-spacing:-.4px;line-height:1.4}
 .home-draw .draw-clock-dial[data-duration="long"] #countdown-heading{font-size:10px;color:#8a6675}
}

/* Keep short lottery names on one line without squeezing the icon. */
@media(max-width:800px){
 .home-lottery-dialog .home-chooser-grid{gap:6px}
 .home-lottery-dialog .home-game-tile{padding:10px 2px;min-height:84px;gap:6px}
 .home-lottery-dialog .home-game-tile span{font-size:12px;line-height:1.5;white-space:nowrap;letter-spacing:0}
}
@media(max-width:360px){.home-lottery-dialog .home-chooser-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* Compact lottery picker: categories first, close action clear of the list. */
.home-lottery-dialog{padding-bottom:76px}
.home-lottery-dialog .home-picker-search,.home-lottery-dialog .home-picker-tip,.home-lottery-dialog .home-dialog-heading>div{display:none}
.home-lottery-dialog .home-dialog-heading{height:0;min-height:0;margin:0;gap:0}
.home-lottery-dialog .home-dialog-heading button{position:absolute;right:18px;bottom:16px;width:88px;height:44px;display:flex;align-items:center;justify-content:center;gap:6px;background:#f5e8ed;color:#8c203b;border:1px solid #e5cbd5;font-size:22px;line-height:1}
.home-lottery-dialog .home-dialog-heading button::after{content:"关闭";font-size:14px;font-weight:600}
.home-lottery-dialog[open]{row-gap:12px}
.home-lottery-dialog .home-picker-categories{margin-top:-12px}

/* Compact mobile record tabs. */
@media(max-width:800px){
 .home-record-grid .mobile-record-tabs{min-height:0;padding:3px;border-radius:10px;gap:4px}
 .mobile-record-tabs button{min-height:32px!important;padding:4px 8px!important;line-height:24px;border-radius:7px}
}

/* Single lottery-ball symbol; color alone provides the occasional cue. */
.mobile-app-tabs a[data-tab="lotteries"]>span{animation:none!important;box-shadow:none!important}
.mobile-app-tabs a[data-tab="lotteries"] svg{width:26px!important;height:26px!important;color:#8e8d9c}
.mobile-app-tabs a[data-tab="lotteries"] b{color:inherit!important;font-weight:500!important}
@media(prefers-reduced-motion:no-preference){
 .mobile-app-tabs a[data-tab="lotteries"] svg{animation:lottery-color-cue 6s ease-in-out infinite}
 @keyframes lottery-color-cue{0%,55%,100%{color:#8e8d9c}70%,82%{color:#8c203b}}
}

/* Alternate a full turn and a gentle wiggle, with pauses. */
.mobile-app-tabs a[data-tab="lotteries"] svg{transform-origin:center;transform-box:fill-box}
@media(prefers-reduced-motion:no-preference){
 .mobile-app-tabs a[data-tab="lotteries"] svg{animation:lottery-color-cue 6s ease-in-out infinite,lottery-ball-turn 8s ease-in-out infinite}
 @keyframes lottery-ball-turn{0%,25%{transform:rotate(0deg)}38%,70%{transform:rotate(360deg)}74%{transform:rotate(342deg)}78%{transform:rotate(378deg)}82%{transform:rotate(348deg)}86%{transform:rotate(370deg)}90%,100%{transform:rotate(360deg)}}
}
