/* Dafuhao-only presentation. No data, timing, filtering or chat behavior. */
html[data-site=guanlan]{--accent:#be2539;--ink:#20283b;--paper:#f5f6fa;--surface:#fff;--soft:#fff0ec;--line:#e3e6ee;--muted:#637086;--brand-night:#b51f35;--section-tint:#f7f8fc;--feature-a:#fff0ec;--deep:#29344c}
html[data-site=guanlan][data-theme=dark]{--ink:#edf1fa;--paper:#141824;--surface:#202638;--soft:#30394f;--line:#3b465f;--muted:#b4bed2;--section-tint:#252d40;--deep:#303a52}
html[data-site=guanlan] body{background:var(--paper);color:var(--ink)}
html[data-site=guanlan] body .site-header{background:var(--surface);background-image:none;color:var(--ink);border-top:4px solid #cf263e;border-bottom:1px solid var(--line);padding-top:0;box-shadow:none}
html[data-site=guanlan] .site-header .brand{color:var(--ink);font-weight:850;letter-spacing:-1px}
html[data-site=guanlan] .theme-toggle{color:var(--muted);border-color:var(--line);background:var(--section-tint)}
html[data-site=guanlan] body .nav{background:#bc2339;border-radius:8px 8px 0 0;gap:6px;padding:4px 8px!important;justify-content:space-between;margin-bottom:0;max-width:1200px}
html[data-site=guanlan] .nav-group{border:0;background:none;padding:0}
html[data-site=guanlan] .nav-group>span{display:none}
html[data-site=guanlan] .nav-group>div{gap:2px}
html[data-site=guanlan] body .nav a{color:#fff;min-height:44px;padding:8px 10px;border-radius:5px;font-size:13px;font-weight:700;display:flex;gap:6px;align-items:center;transition:background .16s}
html[data-site=guanlan] body .nav a[aria-current=page]{background:#ffda63;color:#522006}
html[data-site=guanlan] .nav a:after{display:none}
html[data-site=guanlan] .nav a:hover{background:#942035;color:white}
html[data-site=guanlan] .nav-icon{display:block;width:19px;height:19px;opacity:1}
html[data-site=guanlan] .market-title{min-height:52px}
html[data-site=guanlan] .market-title h1{font-size:22px;letter-spacing:0}
html[data-site=guanlan] .market-title h1:before{display:none}
html[data-site=guanlan] .market-title h1 span{font-size:13px}
html[data-site=guanlan] .market-live .result{background:var(--surface);background-image:none;color:var(--ink);border:1px solid var(--line);border-top:4px solid #dc3046;border-radius:9px;grid-template-columns:1fr 1.4fr 1fr;gap:0 20px;padding:18px 22px;box-shadow:0 4px 16px #26334d08}
html[data-site=guanlan] .market-live .result-top{flex-wrap:wrap;gap:8px;justify-content:flex-start;font-size:13px}
html[data-site=guanlan] .market-live .live-status{color:#197345;width:100%;font-size:12px;font-weight:600}
html[data-site=guanlan] .market-live .result-top>span:nth-child(2){margin:0;background:var(--section-tint);padding:8px 10px;border-radius:5px;white-space:nowrap}
html[data-site=guanlan] [data-issue]{font-size:19px;color:var(--ink);font-weight:800;letter-spacing:.02em}
html[data-site=guanlan] .market-live .refresh{color:var(--accent);margin:0;padding:0;min-width:36px}
html[data-site=guanlan] .market-live .draw-time{color:var(--muted);font-size:11px;margin-top:10px}
html[data-site=guanlan] .market-live .balls{gap:10px;padding:12px 0}
html[data-site=guanlan] .market-live .balls span:nth-of-type(n),html[data-site=guanlan] .mini-balls b{border-radius:50%;color:#fff;border:0;font-weight:800;background:linear-gradient(150deg,#f55764,#c91e3a);box-shadow:inset 0 2px 2px #ffffff65,0 3px 0 #9c2333}
html[data-site=guanlan] .market-live .balls span{width:58px;height:58px;font-size:33px}
html[data-site=guanlan] .market-live .balls span:nth-of-type(2),html[data-site=guanlan] .mini-balls b:nth-child(2){background:linear-gradient(150deg,#4389ed,#205ac5);box-shadow:inset 0 2px 2px #ffffff65,0 3px 0 #1d4590}
html[data-site=guanlan] .market-live .balls span:nth-of-type(3),html[data-site=guanlan] .mini-balls b:nth-child(3){background:linear-gradient(150deg,#ffb34e,#d36509);box-shadow:inset 0 2px 2px #ffffff65,0 3px 0 #9c4805}
html[data-site=guanlan] .market-live .balls strong{width:67px;height:67px;border-radius:50%;font-size:38px;background:linear-gradient(145deg,#ffe797,#ffc637);color:#623509;box-shadow:inset 0 2px 2px #fff8,0 4px 0 #d99a1c;border:0}
html[data-site=guanlan] .market-live .balls i{color:#8a94a7;font-size:18px}
html[data-site=guanlan] .market-live .result-bottom{gap:12px;align-items:stretch}
html[data-site=guanlan] .market-live .countdown{background:var(--section-tint);border:1px solid var(--line);border-radius:7px;padding:9px 14px;display:flex;align-items:center;justify-content:space-between;gap:14px;color:var(--muted);font-size:12px}
html[data-site=guanlan] .market-live .countdown b{font-size:32px;color:var(--accent);margin:0;letter-spacing:.04em}
html[data-site=guanlan] .market-live [data-labels]{display:flex;justify-content:flex-end;gap:5px}
html[data-site=guanlan] .lottery-tag,html[data-site=guanlan] .tag[data-category]{display:inline-flex;align-items:center;justify-content:center;min-width:27px;padding:4px 7px;border-radius:4px;font-size:12px;font-weight:700;line-height:1.35;background:#eef0f5;color:#4c5870;white-space:nowrap}
html[data-site=guanlan] [data-category=大],html[data-site=guanlan] [data-category=龙],html[data-site=guanlan] [data-category=豹子]{background:#ffe3e8!important;color:#b91d3d!important}
html[data-site=guanlan] [data-category=小],html[data-site=guanlan] [data-category=虎]{background:#e2edff!important;color:#2256b0!important}
html[data-site=guanlan] [data-category=单],html[data-site=guanlan] [data-category=顺子]{background:#fff0d5!important;color:#9b4d04!important}
html[data-site=guanlan] [data-category=双],html[data-site=guanlan] [data-category=对子]{background:#ede4ff!important;color:#7136ae!important}
html[data-site=guanlan] [data-category=和]{background:#dcf5e8!important;color:#156c43!important}
html[data-site=guanlan] .market-grid{grid-template-columns:minmax(0,1fr) 230px;gap:18px;margin-top:18px}
html[data-site=guanlan] .market-heading{background:#be2539;border:0;border-radius:7px 7px 0 0;color:#fff;padding:0 14px;margin:0;min-height:46px}
html[data-site=guanlan] .market-heading h2{font-size:17px;display:flex;gap:8px;align-items:center}
html[data-site=guanlan] .market-heading svg{color:#ffdb70;width:21px;height:21px}
html[data-site=guanlan] .market-heading a{color:#fff}
html[data-site=guanlan] .history-table th{background:var(--section-tint);color:var(--muted);font-size:12px;font-weight:700;padding:11px 12px}
html[data-site=guanlan] .history-table td{padding:10px 12px;height:60px;font-size:14px}
html[data-site=guanlan] .history-table td:nth-child(n){display:table-cell}
html[data-site=guanlan] .history-table th:nth-child(n){display:table-cell}
html[data-site=guanlan] .history-table tbody tr:nth-child(even){background:var(--section-tint)}
html[data-site=guanlan] .history-table tbody tr:first-child{background:color-mix(in srgb,#ffe7b6 25%,var(--surface))}
html[data-site=guanlan] .history-table small{font-size:11px;margin-top:3px}
html[data-site=guanlan] .mini-balls{gap:7px}
html[data-site=guanlan] .mini-balls b{width:29px;height:29px;font-size:15px}
html[data-site=guanlan] .history-table .sum-number{font-size:23px;font-weight:850;color:var(--accent)}
html[data-site=guanlan] .market-aside{background:var(--surface);background-image:none;border:1px solid var(--line);border-top:4px solid #e6a62a;border-radius:7px;padding:16px}
html[data-site=guanlan] .market-aside:before,html[data-site=guanlan] .market-aside:after{display:none}
html[data-site=guanlan] .market-aside h2{font-size:16px}
html[data-site=guanlan] .market-aside .summary-strip strong{font-size:25px;color:var(--ink)}
html[data-site=guanlan] .market-tool{color:var(--ink)}
html[data-site=guanlan] .market-tool svg{color:#d08213;background:#fff0d5;border-radius:5px;padding:5px;width:32px;height:32px}
html[data-site=guanlan] .market-tool:last-child svg{color:#6735a6;background:#efe7ff}
html[data-site=guanlan] a:focus-visible,html[data-site=guanlan] button:focus-visible{outline:3px solid #e3a121;outline-offset:3px}
@media(max-width:1100px){html[data-site=guanlan] body .nav{flex-wrap:wrap;justify-content:flex-start}html[data-site=guanlan] .market-live .result{grid-template-columns:1fr 1.3fr}html[data-site=guanlan] .market-live .result-bottom{grid-column:1/3;grid-row:3;flex-direction:row;align-items:center;justify-content:space-between;margin-top:12px}html[data-site=guanlan] .market-live .countdown{flex:1;max-width:280px}html[data-site=guanlan] .market-grid{grid-template-columns:minmax(0,1fr) 200px}html[data-site=guanlan] .history-table td,html[data-site=guanlan] .history-table th{padding:9px 7px}}
@media(max-width:800px){html[data-site=guanlan] .market-grid{display:flex;flex-direction:column}html[data-site=guanlan] .market-history{width:100%}html[data-site=guanlan] .market-aside .summary-strip{display:flex;justify-content:space-between}html[data-site=guanlan] .market-aside .summary-strip>div{border:0;padding:8px}html[data-site=guanlan] .market-aside .market-tool{display:inline-flex;width:49%}}
@media(max-width:700px){html[data-site=guanlan] body .nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:3px;padding:5px!important;border-radius:0}html[data-site=guanlan] .nav-group,html[data-site=guanlan] .nav-group>div{display:contents}html[data-site=guanlan] body .nav a{flex-direction:column;gap:3px;font-size:11px;padding:6px 0;min-height:54px;white-space:nowrap}html[data-site=guanlan] .nav-icon{width:20px;height:20px}html[data-site=guanlan] .market-title{min-height:46px}html[data-site=guanlan] .market-title h1{font-size:19px}html[data-site=guanlan] .market-title h1 span{font-size:11px;margin-left:8px}html[data-site=guanlan] .market-live .result{display:flex;flex-direction:column;padding:10px 12px;gap:6px}html[data-site=guanlan] .market-live .result-top{width:100%;flex-wrap:nowrap;font-size:11px;justify-content:space-between}html[data-site=guanlan] .market-live .live-status{width:auto;font-size:10px}html[data-site=guanlan] [data-issue]{font-size:16px}html[data-site=guanlan] .market-live .result-top>span:nth-child(2){padding:6px}html[data-site=guanlan] .market-live .balls{gap:9px;padding:9px 0 13px}html[data-site=guanlan] .market-live .balls span{width:47px;height:47px;font-size:29px}html[data-site=guanlan] .market-live .balls strong{width:55px;height:55px;font-size:33px}html[data-site=guanlan] .market-live .balls i{font-size:14px}html[data-site=guanlan] .market-live .result-bottom{width:100%;margin:0;gap:8px;flex-direction:column-reverse}html[data-site=guanlan] .market-live .countdown{width:100%;max-width:none;padding:5px 10px}html[data-site=guanlan] .market-live .countdown b{font-size:26px}html[data-site=guanlan] .market-live [data-labels]{display:flex;width:100%;justify-content:center}html[data-site=guanlan] .market-live .draw-time{font-size:10px;margin:0;width:100%;text-align:center}html[data-site=guanlan] .market-grid{margin-top:12px}html[data-site=guanlan] .market-heading{padding:0 10px;min-height:42px}html[data-site=guanlan] .market-heading h2{font-size:16px}html[data-site=guanlan] .market-history .table-cue{display:block;font-size:11px;margin:0;padding:6px 10px;background:var(--surface);color:var(--muted)}html[data-site=guanlan] .history-table{min-width:570px}html[data-site=guanlan] .history-table th,html[data-site=guanlan] .history-table td{padding:8px;font-size:12px}html[data-site=guanlan] .history-table th:first-child{width:104px}html[data-site=guanlan] .history-table td:first-child,html[data-site=guanlan] .history-table th:first-child{position:sticky;left:0;background:var(--surface);z-index:1}html[data-site=guanlan] .history-table td{height:56px}html[data-site=guanlan] .mini-balls{gap:4px}html[data-site=guanlan] .mini-balls b{width:25px;height:25px;font-size:14px}html[data-site=guanlan] .market-aside .summary-strip strong{font-size:21px}}
@media(prefers-reduced-motion:reduce){html[data-site=guanlan] *,html[data-site=guanlan] *:before,html[data-site=guanlan] *:after{animation:none!important;transition:none!important}}
/* Compact a single existing advertisement without changing its text or destination. */
html[data-site=guanlan] .c28-grid:has(>.c28-card:only-child){grid-template-columns:1fr}
html[data-site=guanlan] .c28-grid>.c28-card:only-child{min-height:46px;flex-direction:row}
html[data-site=guanlan] .c28-grid>.c28-card:only-child>span{flex-direction:row;align-items:center;justify-content:flex-start;gap:18px;padding:10px 14px}
html[data-site=guanlan] .c28-grid>.c28-card:only-child>img{height:46px;width:110px}
html[data-site=guanlan] .lottery-brand-mark{width:38px;height:38px;display:grid;place-items:center;background:#c6243d;color:#ffde72;font:900 25px/1 ui-sans-serif,sans-serif;letter-spacing:-2px;border-radius:9px;box-shadow:0 3px 0 #8c182b}
@media(max-width:700px){html[data-site=guanlan] .market-live .countdown{flex-direction:row;align-items:center}html[data-site=guanlan] .market-live .countdown b{line-height:1.3}html[data-site=guanlan] .market-aside .summary-strip>div{padding:8px 3px}html[data-site=guanlan] .market-aside .summary-strip span{font-size:10px}}
html[data-site=guanlan] .c28-brand-row .masthead{max-width:1200px;margin:0 auto!important;padding:0!important;width:calc(100% - 40px)!important}
@media(max-width:700px){html[data-site=guanlan] .c28-brand-row .masthead{width:calc(100% - 20px)!important}}
html[data-site=guanlan][data-theme=dark]{--accent:#ff91a3}
html[data-site=guanlan][data-theme=dark] .market-live .live-status{color:#72dba6}
html[data-site=guanlan][data-theme=dark] .history-table tbody tr:first-child{background:#303348}
