/* Full lottery hall: typography and spacing measured from the reference. */
#navLotteryDropdown.lottery-reference-menu{max-height:78vh;border-top:1px solid #e8ebf1;box-shadow:0 4px 20px #0f172a08,0 20px 50px #0f172a14;}
#navLotteryDropdown.lottery-reference-menu .nav-dropdown-row{align-items:stretch;min-height:40px;}
#navLotteryDropdown.lottery-reference-menu .nav-dropdown-row>strong{display:flex;align-items:center;gap:10px;font-size:18px;font-weight:400;line-height:32px;padding:0 0 0 16px;color:#313131;}
#navLotteryDropdown.lottery-reference-menu .nav-dropdown-row>strong img{width:18px;height:18px;object-fit:contain;flex:none;}
#navLotteryDropdown.lottery-reference-menu .nav-dropdown-row>div{border-bottom:1px solid #ededed;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px;padding:4px 12px 4px 0;}
#navLotteryDropdown.lottery-reference-menu .nav-dropdown-row a{display:flex;align-items:center;gap:4px;font-size:13px;line-height:20px;padding:2px 8px;white-space:nowrap;}
#navLotteryDropdown.lottery-reference-menu .lottery-menu-new{width:18px;height:auto;flex:none;}
#navLotteryDropdown.lottery-reference-menu .nav-dropdown-row[data-menu-group="全国彩"]>div{grid-template-columns:repeat(8,minmax(0,1fr));}
#navLotteryDropdown.lottery-reference-menu .nav-dropdown-row:last-child>div{border-bottom:1px solid #ededed;}
.reference-hall .hall-search{font-size:14px;padding:0 12px;}
.reference-hall .hall-group-grid{align-items:start;}
.reference-hall #lotLotteryGrid .hall-lottery-tile{background:#fcfcfc;border-color:#e8ebf1;box-shadow:0 2px 10px #37393b0f;}
.reference-hall .hall-tile-top{height:36px;padding-bottom:0;border-bottom:0;}
.reference-hall .hall-tile-top img,.reference-hall .hall-tile-fallback{width:36px;height:36px;}
.reference-hall .hall-tile-top h2{font-size:14px;font-weight:700;line-height:19.2px;}
.reference-hall .hall-tile-result{margin-top:16.8px;min-height:28px;}
.reference-hall .hall-tile-result .ball-pc28{font-size:14px;}
.reference-hall .hall-tile-bottom{margin:6px 0 0;min-height:41.6px;gap:4px;color:#e8632c;}
.reference-hall .hall-clock-icon{width:28px;height:28px;flex:none;}
.reference-hall .hall-tile-bottom .countdown-value{font-size:32px;font-weight:700;line-height:41.6px;}
.reference-hall .simple-clock-number{gap:2px;}
.reference-hall .simple-clock-digit{zoom:1.1;}
.reference-hall .hall-live-link{margin-top:16px;padding:6px 0;line-height:16.8px;height:28.8px;box-sizing:border-box;background:#fff4ee;color:#e8632c;font-size:13px;font-weight:600;}
.reference-hall .hall-live-link:hover{background:#ffebdc;}
@media(min-width:1101px){
 .reference-hall{border:0;padding:20px 24px 28px;}
 .reference-hall .reference-page-head{margin-bottom:14px;}
 .reference-hall .reference-page-head p{line-height:16.9px;}
 .reference-hall .hall-group-title{line-height:19.2px;color:#313131;}
}

.lottery-menu-mask{position:fixed;inset:0;background:rgba(0,0,0,.6);z-index:999;}
.lottery-menu-mask[hidden]{display:none;}
.nav-lottery-group .nav-dropdown-toggle[aria-expanded="true"] i{transform:rotate(180deg);}
#navLotteryDropdown .lottery-menu-unavailable{display:flex;align-items:center;gap:4px;font-size:13px;line-height:20px;padding:2px 8px;color:#999;min-width:0;}
#navLotteryDropdown .lottery-menu-unavailable>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
#navLotteryDropdown .lottery-menu-unavailable small{font-size:10px;white-space:nowrap;flex:none;color:#aaa;}
/* Keep the header and customer service above the open lottery menu mask. */
body:has(#lotteryMenuMask:not([hidden])) #desktopHeader{position:relative;z-index:1000;}
body:has(#lotteryMenuMask:not([hidden])) .prediction-contact{z-index:1002;}
body:has(#lotteryMenuMask:not([hidden])) .navbar-menu a.active:not([data-page="#lottery"]){background:transparent;}
body:has(#lotteryMenuMask:not([hidden])) .navbar-menu a.active:not([data-page="#lottery"])::after{display:none;}
body:has(#lotteryMenuMask:not([hidden])) .navbar-menu a[data-page="#lottery"]{position:relative;background:#ffffff14;}
body:has(#lotteryMenuMask:not([hidden])) .navbar-menu a[data-page="#lottery"]::after{display:block;position:absolute;content:"";bottom:0;left:16px;right:16px;height:3px;background:white;border-radius:3px;}
