/* pc288.men homepage only. Reference 03 / template 09: red lacquer, black panels, round result balls. */
html[lang] body.cf-home{--cream:#0a0809;--paper:#151011;--ink:#f9eeea;--muted:#bbaaac;--line:#492328;--red:#e53940;--deep:#17090c;--gold:#e7bc7d;--green:#a8c9d9;--cr-line:var(--line);--cr-bg:var(--cream);--cr-surface:var(--paper);--cr-text:var(--ink);--cr-muted:var(--muted);--cr-accent:var(--red);background:var(--cream);color:var(--ink);background-image:none;color-scheme:dark;font-family:"PingFang SC","Microsoft YaHei",system-ui,sans-serif}
html[data-theme=light] body.cf-home{--cream:#f7f0ed;--paper:#fffaf7;--ink:#321316;--muted:#755a5d;--line:#dfb8b8;--deep:#f9e6df;--red:#ba1925;--gold:#81521d;color-scheme:light}
.cf-home *{box-sizing:border-box}.cf-home a{color:inherit}.cf-home button,.cf-home input,.cf-home select{font:inherit}.cf-home button:focus-visible,.cf-home a:focus-visible{outline:2px solid var(--gold);outline-offset:3px}
html body.cf-home .site-header{background:linear-gradient(100deg,#2b090e,#0e090a 65%);border-bottom:1px solid #75232b;color:#fff;box-shadow:none}
.cf-home .nav-inner{max-width:1240px;min-height:70px;padding:12px 20px}.cf-home .brand img{filter:brightness(0) invert(1);width:176px}.cf-home .theme-toggle{color:#ffd6d2;background:#371419;border:1px solid #6b2830}
html body.cf-home nav[data-c28-nav=simple]{max-width:1240px!important;gap:4px 8px!important;padding:7px 20px!important;border-top:1px solid #3f1a20;background:#110a0c}
.cf-home .primary-nav>a{padding:8px 22px;border-radius:4px;color:#dbc3c5}.cf-home .primary-nav>a.active{color:#fff;background:#a41422}.cf-home .primary-nav>a:after{display:none}.cf-home .c28-ads{max-width:1240px}.cf-home .c28-label{color:#bea4a7}
html body.cf-home #main{display:block!important;max-width:1240px;width:100%;padding:20px!important;margin:0 auto;background:none}
.cf-home .cf-live-grid{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:18px;align-items:start}.cf-home .cf-live-left{min-width:0}.cf-home .cf-live-left>*{min-width:0}
html body.cf-home .command-hero{display:block;padding:0!important;min-height:0;background:none;border:0}.cf-home .cf-title-row{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:0 0 14px}.cf-home .cf-kicker{margin:0 0 5px;color:var(--red);font-size:11px;letter-spacing:.15em;font-weight:800}.cf-home #page-title{font-size:24px;margin:0;color:var(--ink);font-weight:850;letter-spacing:.02em}.cf-home .cf-history-link{white-space:nowrap;font-size:12px;color:var(--muted);text-decoration:none}
html body.cf-home .command-hero .page-intro{display:block!important;min-height:0;margin:0 0 14px;padding:0;background:none;border:0}.cf-home .hero-search{display:flex;align-items:center;gap:10px;max-width:none;margin:0;padding:0;background:none;border:0;box-shadow:none}.cf-home .hero-search>label{font-size:12px;white-space:nowrap;color:var(--muted);margin:0}.cf-home .hero-search>div{flex:1;min-width:0;background:var(--paper);border:1px solid var(--line);border-radius:5px;height:42px;box-shadow:none}.cf-home .hero-search input{font-size:14px;min-width:0;background:transparent;color:var(--ink)}.cf-home .hero-search button{background:var(--red);border:0;color:#fff;border-radius:3px;white-space:nowrap;font-size:12px;padding:8px 12px}.cf-home .search-message:empty{display:none}
html body.cf-home .draw-summary{display:grid;grid-template-columns:minmax(0,1fr) 185px;gap:0!important;border:1px solid #79232c;border-top:3px solid #d72d37;background:linear-gradient(140deg,#351017,#100b0d 70%);box-shadow:inset 0 0 0 4px #140a0d;overflow:hidden;border-radius:8px;position:relative}
html body.cf-home .result-command{grid-column:1;grid-row:1;background:none;box-shadow:none;border:0;border-radius:0;color:#fff;padding:22px!important}.cf-home .result-command>header{display:flex;flex-wrap:wrap;justify-content:flex-start;align-items:center;gap:7px 12px}.cf-home .cf-result-title{font-size:26px;color:#ff4a53;font-family:"Kaiti SC","STKaiti",serif;font-weight:900;letter-spacing:2px}.cf-home .issue-number{color:#f2c2c4;font-size:13px}.cf-home .state-pill{font-size:10px;padding:4px 6px;background:#3c191f;border:1px solid #673038;color:#f3bfc2}
html body.cf-home .number-stage{display:flex;justify-content:center;align-items:center;gap:9px;margin:23px 0 18px!important;min-height:72px;background:none;padding:0;border:0}.cf-home .number-stage>span{display:grid;place-items:center;border-radius:50%;width:60px;height:60px;flex:0 0 60px;border:1px solid #ff7176;background:radial-gradient(circle at 30% 20%,#f05d63,#b10c1e 65%,#630711);box-shadow:inset 0 2px 6px #ffaca65c,0 4px 12px #0009;color:#fff;font-size:36px;font-weight:850}.cf-home .number-stage>span.sum{width:68px;height:68px;flex-basis:68px;background:#110b0d;border:3px double #f44350;color:#fff;font-size:36px;box-shadow:0 0 0 3px #5b111b}.cf-home .number-stage>b{font-size:23px;color:#dcae70;background:none;border:0;min-width:0;width:auto}
.cf-home .result-footer{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between;border:0;margin:0;padding:0}.cf-home .result-tags{display:flex;gap:5px;flex-wrap:wrap}.cf-home .result-tags>span{padding:4px 9px;background:#621622;border:1px solid #a23b46;border-radius:3px;color:#ffe1df;font-size:12px}.cf-home .result-actions{display:flex;gap:5px}.cf-home .result-actions>*{padding:7px 8px;min-height:34px;background:#2d151b;border:1px solid #63303a;color:#f3c8c9;font-size:11px;border-radius:4px}.cf-home .result-actions>a{background:#9f1725;color:#fff}
html body.cf-home .countdown-card{grid-column:2;grid-row:1;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:12px;padding:16px 10px!important;background:#0a0809;border:0;border-left:1px solid #5e202a;border-radius:0;box-shadow:none;color:#f5d9db}.cf-home .countdown-card>header{display:block;text-align:center}.cf-home .countdown-card>header>span{font-size:14px}.cf-home .countdown-card>header>small{display:block;color:#a77f85;font-size:10px;margin-top:5px}.cf-home .countdown-card>p{font-size:12px;color:#d7a7ad}.cf-home .countdown-card .countdown-hud{display:flex;justify-content:center;background:transparent;border:0;padding:3px 0!important;gap:5px;box-shadow:none;width:100%;min-height:0}.cf-home .hud-unit{background:none;border:0;padding:0;min-width:0;box-shadow:none}.cf-home .hud-digit{font:700 39px/1.1 ui-monospace,monospace;background:none;color:#ff3845;letter-spacing:-.05em;text-shadow:0 0 12px #ff233344;min-width:0;box-shadow:none}.cf-home .hud-separator{font-size:30px;color:#f53241}.cf-home .hud-unit small{font-size:8px;color:#a37a80}.cf-home .hero-links{display:flex;gap:10px;margin:0}.cf-home .hero-links a{font-size:11px;color:#d6afb4;background:none;border:0;padding:0}
.cf-home .cf-scratch{margin-top:14px;border:1px solid var(--line);background:var(--paper);border-radius:8px;padding:14px}.cf-home .cf-section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;gap:10px}.cf-home .cf-section-head h2{margin:0;font-size:17px;color:var(--ink);border-left:3px solid var(--red);padding-left:9px}.cf-home .cf-section-head a{font-size:11px;color:var(--muted)}.cf-home .ticket-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;gap:10px}.cf-home .ticket-brand>b,.cf-home .ticket-brand small,.cf-home .issue>span{display:none}.cf-home .ticket-brand strong{font-size:11px;color:var(--muted)}.cf-home .issue strong{color:var(--gold);font:700 12px ui-monospace,monospace}.cf-home .board{position:relative;height:135px;overflow:hidden;border:1px solid #8f333e;border-radius:5px;touch-action:none;user-select:none}.cf-home .result,.cf-home .foil,.cf-home .locked{position:absolute;inset:0;width:100%;height:100%}.cf-home .result{display:flex;flex-direction:column;align-items:center;justify-content:center;background:#1a0c10;color:#fff;z-index:1;padding:10px}.cf-home .result>span{display:none}.cf-home .equation{display:flex;align-items:center;gap:10px}.cf-home .equation>b,.cf-home .equation>em{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:#ab1927;color:#fff;font-size:23px;font-style:normal}.cf-home .equation>i{font-style:normal;color:#d8ad77}.cf-home .labels{display:flex;gap:8px;margin-top:8px;font-size:11px}.cf-home .result>p{font-size:10px;margin:6px 0 0;color:#b78f98}.cf-home .foil{z-index:3;cursor:crosshair;transition:opacity .35s}.cf-home .foil.revealed{opacity:0;pointer-events:none}.cf-home .foil[hidden],.cf-home .locked[hidden]{display:none}.cf-home .locked{z-index:4;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#30141c;text-align:center;padding:12px;color:#e2c6cc}.cf-home .locked strong{font-size:13px}.cf-home .locked small{font-size:11px;margin-top:6px}.cf-home .lock-icon{display:none}.cf-home .progress-row{display:flex;align-items:center;gap:12px;margin-top:10px;font-size:10px;color:var(--muted)}.cf-home .progress-row>div{flex:1;height:4px;background:var(--line);overflow:hidden;border-radius:5px}.cf-home .progress-row i{display:block;background:var(--red);height:100%}.cf-home .actions{display:flex;gap:8px;margin-top:10px}.cf-home .actions button{display:inline-flex;align-items:center;justify-content:center;gap:4px;min-height:38px;border:1px solid var(--line);padding:6px 13px;background:var(--deep);color:var(--ink);border-radius:4px;font-size:12px;cursor:pointer}.cf-home .actions .reveal{order:-1;background:var(--red);color:white;border-color:var(--red)}.cf-home .actions button:disabled{opacity:.5}.cf-home .ticket-foot p{font-size:10px;color:var(--muted);margin:10px 0 0;min-height:15px}
body.cf-home #c28-home-chat{--hc-accent:#e13a49;--hc-soft:var(--deep);--hc-bg:var(--paper);--hc-ink:var(--ink);--hc-border:var(--line);border-radius:8px;box-shadow:none}body.cf-home #c28-home-chat .hc-list{height:250px}body.cf-home #c28-home-chat .hc-heading{border-top:3px solid #d72d37}body.cf-home #c28-home-chat .hc-heading h2{font-size:21px}
html body.cf-home .history-panel,html body.cf-home .records-workbench{margin:18px 0!important;width:100%;border:1px solid var(--line);border-radius:8px;background:var(--paper);padding:16px!important;box-shadow:none}.cf-home .section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;background:none}.cf-home .section-heading h2{display:block!important;color:var(--ink);font-size:19px;margin:0;border-left:3px solid var(--red);padding-left:9px}.cf-home .section-heading p{display:block!important;color:var(--muted);font-size:11px;margin:6px 0}.cf-home .section-heading>a{color:var(--red);font-size:12px}.cf-home .workspace-tools{padding:10px 0;gap:8px;background:none;flex-wrap:wrap}.cf-home .workspace-tools button,.cf-home .rm-controls button,.cf-home .rm-controls input,.cf-home .rm-controls select{background:var(--deep);border:1px solid var(--line);color:var(--ink);min-height:38px;border-radius:4px}.cf-home .workspace-tools button.active,.cf-home .rm-controls button.active{background:var(--red);border-color:var(--red);color:#fff}.cf-home [data-history-cache]{font-size:10px;color:var(--muted)}.cf-home .table-wrap{max-height:530px;overflow:auto;border:1px solid var(--line);border-radius:4px}.cf-home table{background:var(--paper);color:var(--ink);width:100%}.cf-home th{background:var(--deep);color:var(--muted);position:sticky;top:0;z-index:1}.cf-home th,.cf-home td{border-color:var(--line)}.cf-home tbody tr:nth-child(even){background:var(--cream)}.cf-home tbody tr:hover{background:var(--deep)}.cf-home .history-foot{background:none;border-color:var(--line);color:var(--muted);margin-top:10px}.cf-home .pagination button{background:var(--deep);border-color:var(--line);color:var(--ink)}.cf-home .rm-header{border-bottom:1px solid var(--line);padding-bottom:12px}.cf-home .rm-header h2{font-size:19px;color:var(--ink)}.cf-home .rm-header a{color:var(--red)}.cf-home .rm-controls,.cf-home .rm-stat,.cf-home .rm-note{background:var(--deep);border-color:var(--line);color:var(--ink)}.cf-home .rm-scope,.cf-home [data-rm-status]{color:var(--muted)}.cf-home .rm-distributions button{color:var(--ink);background:var(--deep);border-color:var(--line)}
html body.cf-home .operations-strip{margin:18px 0!important;padding:0!important;background:none;gap:10px}.cf-home .operations-strip>a{background:var(--paper);border:1px solid var(--line);border-radius:6px;padding:14px;color:var(--ink)}.cf-home .operations-strip small{color:var(--muted)}.cf-home .signal-board{background:var(--paper);border:1px solid var(--line);border-radius:8px;padding:16px;gap:16px}.cf-home .signal-side,.cf-home .quick-trend{background:none;border:0}.cf-home .signal-board h2{color:var(--ink)}.cf-home .signal-board p,.cf-home .signal-board a{color:var(--muted)}.cf-home .today-heat-grid>div,.cf-home .module-map>a,.cf-home .module-home{background:var(--deep);border-color:var(--line);color:var(--ink)}.cf-home .module-index{margin-top:20px}.cf-home .module-map{margin-top:12px}.cf-home .site-footer{background:var(--paper);border-color:var(--line);color:var(--muted);padding:25px max(20px,calc((100vw - 1200px)/2))}.cf-home .site-footer img{filter:grayscale(1)}.cf-home .floating-chat{background:#a31826;border-color:#df4450;color:#fff}
@media(max-width:1099px){.cf-home .cf-live-grid{grid-template-columns:1fr}.cf-home .cf-live-left{display:contents}body.cf-home #c28-home-chat .hc-list{height:230px}.cf-home .cf-scratch{margin-top:0}.cf-home .command-hero{margin-bottom:0}.cf-home .draw-summary{grid-template-columns:minmax(0,1fr) 210px!important}}
@media(max-width:600px){html body.cf-home #main{padding:14px 12px!important}.cf-home .nav-inner{padding:10px 12px;min-height:56px}.cf-home .brand img{width:154px}.cf-home .primary-nav>a{padding:6px 10px;font-size:13px}.cf-home .cf-title-row{margin-bottom:12px}.cf-home #page-title{font-size:21px}.cf-home .cf-kicker{font-size:10px}.cf-home .cf-history-link{font-size:10px}.cf-home .hero-search{display:block}.cf-home .hero-search>label{display:none}.cf-home .hero-search>div{height:42px}.cf-home .hero-search input{font-size:16px;width:100px}.cf-home .hero-search button{padding:8px;font-size:11px}.cf-home .hero-search button .icon{display:none}html body.cf-home .draw-summary{grid-template-columns:1fr!important;gap:0!important}html body.cf-home .result-command{padding:16px!important}html body.cf-home .countdown-card{grid-row:2;grid-column:1;border-left:0;border-top:1px solid #5e202a;display:grid;grid-template-columns:1fr auto;gap:5px 14px;padding:12px 16px!important;align-items:center}.cf-home .countdown-card>header{text-align:left}.cf-home .countdown-card>header>small{display:none}.cf-home .countdown-card>p{grid-row:2;grid-column:1}.cf-home .countdown-card .countdown-hud{grid-row:1/3;grid-column:2;gap:5px;width:auto}.cf-home .hud-digit{font-size:34px}.cf-home .hero-links{grid-column:1/-1;justify-content:space-between;margin-top:5px}.cf-home .cf-result-title{font-size:28px}.cf-home .number-stage{gap:8px}.cf-home .number-stage>span{width:53px;height:53px;flex-basis:53px;font-size:31px}.cf-home .number-stage>span.sum{width:59px;height:59px;flex-basis:59px;font-size:32px}.cf-home .number-stage>b{font-size:17px}.cf-home .result-footer{gap:10px}.cf-home .result-actions{width:100%}.cf-home .result-actions>*{flex:1;justify-content:center}.cf-home .cf-scratch{padding:12px}.cf-home .actions button{min-height:44px;padding:6px 8px;font-size:11px;flex:1}.cf-home .cf-section-head a{font-size:10px}.cf-home .board{height:140px}html body.cf-home .history-panel,html body.cf-home .records-workbench{padding:12px!important}.cf-home .section-heading{align-items:start;flex-wrap:wrap}.cf-home .section-heading p{font-size:10px}.cf-home .section-heading h2{font-size:18px}.cf-home .history-panel .workspace-tools button{min-height:40px!important;height:auto!important;padding:6px 8px!important}.cf-home .history-panel .workspace-tools .tabs,.cf-home .history-panel .workspace-tools .history-limit{height:auto!important}.cf-home .history-panel table{min-width:680px}.cf-home .history-panel td,.cf-home .history-panel th{font-size:12px!important;padding:10px 8px!important}.cf-home .table-wrap{max-height:460px}.cf-home .history-foot{gap:10px;flex-wrap:wrap}.cf-home .operations-strip{display:grid;grid-template-columns:1fr 1fr}.cf-home .signal-board{display:block;padding:12px}.cf-home .signal-side{margin-top:20px}.cf-home .module-map{grid-template-columns:1fr 1fr}.cf-home .module-home{grid-column:1/-1}.cf-home .floating-chat{right:12px;bottom:12px;min-height:44px}.cf-home .rm-header{flex-wrap:wrap}.cf-home .rm-controls{flex-wrap:wrap}.cf-home .rm-controls label{max-width:100%}.cf-home .rm-controls input,.cf-home .rm-controls select{min-width:0;max-width:100%}}
@media(prefers-reduced-motion:reduce){.cf-home *{scroll-behavior:auto!important;transition:none!important}}
/* Neutralize inherited fixed result/timer heights; the homepage uses its own red/black palette. */
.cf-home .brand img{filter:none;background:#fff7f1;border-radius:5px;padding:4px}.cf-home .result-command{display:block!important;height:auto!important}.cf-home .countdown-card{height:auto!important;overflow:visible}.cf-home .countdown-card .countdown-hud{height:auto!important;min-height:56px!important;overflow:visible;margin:0}.cf-home .countdown-hud:before,.cf-home .countdown-hud:after{display:none}.cf-home .countdown-card .hud-unit{display:flex;flex-direction:column;align-items:center;gap:3px}.cf-home .countdown-card .hud-unit small{padding:0}.cf-home .countdown-card .hud-digit{display:block;line-height:1.1}.cf-home .result-command .result-footer{margin-top:12px}.cf-home .hero-links{display:flex!important}.cf-home .rm-distributions tr,.cf-home .today-heat-grid>div{background:var(--deep)!important}.cf-home .module-index{border-color:var(--line);background:var(--paper)}
html[data-theme=dark] body.cf-home .history-panel tbody tr,html[data-theme=dark] body.cf-home .history-panel td{background:transparent;color:var(--ink)}
html[data-theme=dark] body.cf-home .history-panel tbody tr:nth-child(even){background:var(--deep)}
html[data-theme=dark] body.cf-home th{background:var(--deep);color:var(--muted)}
@media(max-width:600px){.cf-home .result-command>header{gap:8px}.cf-home .state-pill{margin-left:0}.cf-home .result-tags>span{font-size:11px;min-width:28px}.cf-home .number-stage{margin:20px 0 14px!important}}
.cf-home .cf-latest-label{font-size:10px;color:#c99199}.cf-home .countdown-card .countdown-hud[data-phase=drawing] .hud-unit{display:none}.cf-home .issue-number b{color:#ffd8d6}.cf-home .countdown-card>p b{color:#ffd8d6}
@media(max-width:600px){.cf-home .countdown-card>header{grid-column:1;grid-row:1}}
html body.cf-home .draw-summary{height:auto!important;min-height:250px!important;grid-template-rows:auto!important;align-items:stretch}.cf-home .result-command>header{min-height:36px;height:auto!important}.cf-home .cf-live-grid{margin-bottom:18px}
@media(max-width:600px){html body.cf-home .draw-summary{min-height:0!important}.cf-home .result-command{min-height:225px!important}.cf-home .countdown-card{min-height:118px!important}}
html body.cf-home .draw-summary{max-height:none!important}
/* The retained hostname-bound sound control must not consume a ball's width on phones. */
.cf-home .number-stage{position:relative}.cf-home .number-stage [data-draw-chime-toggle]{position:absolute!important;right:0;top:-29px;margin:0!important}
html body.cf-home .command-hero .timeline{display:flex!important;align-items:center;justify-content:space-between;gap:6px;height:58px;min-height:58px;padding:8px 0;margin:6px 0 0;overflow-x:auto;background:none;border:0}.cf-home .timeline:before,.cf-home .timeline>span:before{display:none}.cf-home .timeline>span{display:flex!important;flex-direction:column;gap:3px;min-width:64px;text-align:center;background:var(--paper);border:1px solid var(--line);border-radius:4px;padding:6px}.cf-home .timeline>span b{font-size:11px;color:var(--ink)}.cf-home .timeline>span small{font-size:9px;color:var(--muted)}.cf-home .timeline>span.latest{border-color:var(--red)}
/* Original chat entry stays keyboard-accessible in the header, away from the composer. */
.cf-home .nav-inner{gap:12px;flex-wrap:nowrap!important}.cf-home .nav-inner .floating-chat{position:static!important;inset:auto!important;display:inline-flex;width:auto!important;height:40px;min-height:40px;margin-left:auto;padding:7px 12px;border-radius:5px;box-shadow:none;transform:none;gap:6px;font-size:12px;flex:0 0 auto}.cf-home .nav-inner .floating-chat span{display:inline!important}.cf-home .nav-inner .floating-chat .external-icon{display:none}.cf-home .nav-inner .theme-toggle{margin-left:0;flex:0 0 auto}
@media(max-width:600px){.cf-home .nav-inner{gap:8px}.cf-home .nav-inner .floating-chat{padding:6px 8px;font-size:11px}.cf-home .nav-inner .floating-chat>.icon{width:16px;height:16px}}

/* v2 CLS fix: reserve mobile header rows for every real status label. */
@media(max-width:600px){
 html body.cf-home .result-command>header{display:grid;grid-template-columns:max-content minmax(0,1fr);grid-template-rows:44px 30px;gap:0 8px;min-height:74px;height:auto!important;align-items:center}
 .cf-home .result-command>header .cf-result-title{grid-column:1;grid-row:1}
 .cf-home .result-command>header .cf-latest-label{grid-column:2;grid-row:1}
 .cf-home .result-command>header .issue-number{grid-column:1;grid-row:2;margin:0;line-height:1.3}
 .cf-home .result-command>header .state-pill{grid-column:2;grid-row:2;justify-self:end;max-width:100%;margin:0;line-height:1.3}
 .cf-home .countdown-card .countdown-hud{width:116px!important;height:60px!important;min-height:60px!important}
 .cf-home .countdown-card .hud-drawing{font-size:14px;letter-spacing:0;white-space:nowrap}
}
