*{box-sizing:border-box}
[hidden]{display:none!important}
.mainbox{display:flex;flex-direction:column;min-height:0;width:100%;height:100%;height:100dvh;background:url("../newimg/bgdark.png") center/cover}
.roomtop{flex:none;display:flex;justify-content:center;padding:6px 12px 0}
.roomtop .brand-logo{display:block;width:clamp(197px,61vw,320px);max-width:100%;height:auto}
.notice{display:flex;flex:none;gap:.12rem;align-items:center;margin:.16rem .2rem;padding:.10rem .16rem;border-radius:20px;background:rgba(218,238,255,.8);color:#111}
.notice .leftlaba img{display:block;width:.5rem}
.notice .rightcon{min-width:0;line-height:1.35;font-size:clamp(11px,.22rem,16px)}
.gamelist{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;padding:.02rem .18rem .12rem}
.game-box{display:block;margin:.10rem 0;padding:clamp(9px,.20rem,20px);border-radius:.20rem;background:url("../newimg/gamebg.png") center/100% 100% no-repeat,#50bde5;color:#111;box-shadow:0 3px 10px rgba(17,38,66,.15);text-decoration:none}
.game-box.game-bg-white{background:#fff}
.game-box.game-bg-custom{background:linear-gradient(#ffffff70,#ffffff70),var(--game-custom-bg) center/cover no-repeat,#e6f1fa}
.game-box:focus-visible{outline:3px solid #102b51;outline-offset:-3px}
.game-head{display:flex;justify-content:space-between;align-items:center;gap:clamp(4px,.12rem,12px)}
.game-identity{min-width:0;display:flex;align-items:center;gap:.12rem;flex:1 1 0}
.game-ico{flex:none;line-height:0}
.game-ico .game-medal{--medal-size:clamp(34px,.92rem,66px)}
.game-icon-image{display:block;width:clamp(34px,.92rem,66px);height:clamp(34px,.92rem,66px);object-fit:contain}
.game-icon-upload{border-radius:18%;background:#fff4}
.game-title-group{min-width:0}
.game-name{display:block;line-height:1.2;font-size:clamp(13px,.30rem,23px);color:#101010;overflow-wrap:anywhere}
.game-sn{display:block;margin-top:.06rem;line-height:1.22;font-size:clamp(10px,.235rem,18px);font-variant-numeric:tabular-nums;color:#171717;overflow-wrap:anywhere}
.game-clock{display:flex;min-width:0;flex:0 0 auto;flex-direction:column;align-items:flex-end;justify-content:center;gap:3px;color:#111}
.game-state{font-size:clamp(10px,.22rem,16px);line-height:1.2;font-weight:650;white-space:nowrap}
.game-draw-date{font-size:clamp(10px,.22rem,16px);font-weight:700;line-height:1.2;white-space:nowrap}
.game-draw-date:empty{display:none}
.game-state:empty,.game-time:empty,.game-clock:has(.game-state:empty):has(.game-time:empty){display:none}
.is-closed .game-state,.is-closed .game-sn{color:#9b0909}
.is-closed .game-state{padding:2px 5px;border-radius:4px;background:#fbcdd5}
.game-time{display:flex;justify-content:flex-end;align-items:center;column-gap:2px;font-variant-numeric:tabular-nums;line-height:1;white-space:nowrap}
.countdown-digit{display:inline-flex;align-items:center;justify-content:center;width:clamp(13px,.28rem,23px);height:clamp(17px,.35rem,27px);border-radius:4px;background:var(--race-color,#455964);color:#fff;font-size:clamp(12px,.25rem,19px);text-shadow:0 1px 1px #0007;font-weight:800}
.countdown-colon{font-size:clamp(12px,.25rem,18px);color:#111;font-weight:800}
.countdown-day{font-size:clamp(10px,.22rem,16px);color:#111;font-weight:800}
.game-result{display:flex;justify-content:space-between;align-items:center;gap:.08rem;margin-top:.13rem;min-height:clamp(20px,.44rem,33px)}
.last-period{min-width:0;flex:1 1 auto;overflow-wrap:anywhere;font-size:clamp(10px,.22rem,16px);font-weight:700;line-height:1.26;color:#101010}
.game-num{margin-left:auto;min-width:0;flex:0 1 auto;display:flex;justify-content:flex-end;flex-wrap:wrap;align-items:center;gap:2px;color:#111}
.game-box[data-family="race"] .game-num{flex:0 0 auto;flex-wrap:nowrap}
.game-box[data-family="race"] .last-period{white-space:nowrap}
.game-num .game-chip,.game-num .mark6-ball{display:inline-flex;align-items:center;justify-content:center;flex:none;width:clamp(15px,.33rem,24px);aspect-ratio:1;border-radius:50%;font-size:clamp(10px,.22rem,16px);font-weight:750;color:#fff;text-shadow:0 1px 1px #0008}
.game-num span.mark6-plus{color:#111;margin:0 1px;font-size:clamp(10px,.22rem,16px)}
.game-waiting{display:inline-flex;align-items:center;min-height:clamp(17px,.36rem,27px);padding:2px 6px;border-radius:4px;background:rgba(197,226,255,.72);color:#111;font-size:clamp(10px,.22rem,16px);font-weight:700}
.n1{background:#e6de00}.n2{background:#0092dd}.n3{background:#4b4b4b}.n4{background:#ff7600}.n5{background:#17e2e5}.n6{background:#5234ff}.n7{background:#bfbfbf}.n8{background:#ff2600}.n9{background:#780b00}.n10,.n0{background:#07bf00}
.game-num .race-ball,.game-time .countdown-digit{background:var(--race-color,#455964)}
.footer_menu2{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));flex:none;width:100%;align-items:stretch;padding:.08rem .14rem max(.08rem,env(safe-area-inset-bottom));background:rgba(43,33,30,.83)}
.footer_menu2 a,.footer-wallet{display:flex;align-items:center;justify-content:center;min-height:44px;min-width:0}
.footer_menu2 img{display:block;width:auto;height:clamp(36px,.88rem,58px)}
.footer-wallet{flex-direction:column;gap:2px;padding:0;border:0;background:none;color:#f4deb6;font:700 clamp(11px,.23rem,15px)/1.1 "Microsoft YaHei",sans-serif;cursor:pointer}
.footer-wallet-icon{display:block;width:clamp(27px,.65rem,39px);height:auto;flex:none}
.footer-wallet-icon circle{fill:#f5e6c9;stroke:#d5b686;stroke-width:1}
.footer-wallet-icon path{fill:none;stroke:#4b3022;stroke-width:2.1;stroke-linecap:round;stroke-linejoin:round}
.footer_menu2 :is(a,button):focus-visible{outline:2px solid #ffe08d;outline-offset:-2px;border-radius:8px}
.wallet-notice{inset:0;width:min(320px,calc(100% - 32px));max-height:calc(100% - 32px);margin:auto;padding:20px;border:1px solid #6e96b4;border-radius:14px;background:#0d2842;color:#fff;font-size:15px;line-height:1.5}
.wallet-notice::backdrop{background:rgba(0,13,28,.65)}
.wallet-notice h2{margin:0 0 8px;font-size:20px}
.wallet-notice button{display:block;margin:16px 0 0 auto;min-height:44px;padding:0 16px;border:0;border-radius:8px;background:#f5d288;color:#271a0c;font-weight:700;cursor:pointer}
@media(max-width:330px){.game-box{padding:7px}.game-identity{gap:4px}.game-clock{gap:2px}.game-time{column-gap:1px}.game-result{gap:4px}.game-num{gap:1px}}
@media(max-width:360px){.game-box[data-family="race"] .game-num .game-chip{width:clamp(12px,5vw,18px)}.game-box[data-family="race"] .last-period{font-size:clamp(9px,3vw,11px)}}
@media(max-width:285px){.game-box[data-family="race"] .game-result{flex-direction:column;align-items:stretch}.game-box[data-family="race"] .last-period{align-self:flex-start}}

