*{box-sizing:border-box} [hidden]{display:none!important}
:root{color-scheme:light;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:#18213a;background:#f3f4f8}
body{margin:0}button,a{font:inherit;touch-action:manipulation}button{cursor:pointer}a{color:#194db2;text-decoration:none}
:focus-visible{outline:3px solid #ed9710;outline-offset:2px} h1,h2,p{margin:0}
.portal,.download,.history{max-width:680px;min-height:100vh;margin:auto;background:white;padding-bottom:max(26px,env(safe-area-inset-bottom))}
.mast{background:#3537bb;border-bottom:7px solid #dcd9f7;border-radius:0 0 50% 50% / 0 0 36% 36%;color:white;text-align:center;padding:calc(24px + env(safe-area-inset-top)) 6px 21px}
.mast-title{display:flex;align-items:center;justify-content:center;gap:8px}.mast img{border-radius:10px;object-fit:cover;width:38px;height:38px}
.mast h1{font-size:clamp(24px,6.2vw,39px);font-weight:570;line-height:1.4;letter-spacing:-.035em}.mast h1 span{font-weight:500;margin-left:.1em}
.domain{text-align:center;margin-top:-15px}.domain a{display:inline-block;background:#3036b9;border:2px solid white;box-shadow:0 0 0 1px #a7aaef;color:white;border-radius:5px;padding:3px 13px;font-size:clamp(18px,4.1vw,26px);font-weight:650;letter-spacing:.02em}
.install-row{text-align:center;padding:2px 0 6px}.install-row a{display:inline-flex;align-items:center;gap:6px;min-height:32px;color:#525974;font-size:14px}
.download-lines{display:flex;align-items:center;justify-content:space-between;gap:12px}
@media(display-mode:standalone){.install-row{display:none}}
.tabs{display:flex;align-items:stretch;border-bottom:2px solid #2477dd;gap:0}.tabs button,.tabs a{padding:9px 6px;color:#656a77;background:white;border:1px solid #cbd1db;border-bottom:0;text-align:center;font-size:clamp(14px,3.5vw,19px);line-height:1.35;flex:1}
.tabs [aria-pressed="true"],.tabs [aria-current="true"]{border-color:#2477dd;color:#125bb8;font-weight:700;background:#f1f7ff}
.portal .tabs button{flex:0 1 auto;min-width:24%;padding:7px 8px}
.draw{padding:12px clamp(9px,2.7vw,22px) 24px}.draw-line,.draw-foot{display:flex;align-items:center;justify-content:space-between;gap:5px}
.draw-line{font-size:clamp(13px,3.6vw,20px);white-space:nowrap}.draw-line strong{font-weight:600}.draw-line #period,.draw-line>a{color:#ba220e}.draw-line time{font-variant-numeric:tabular-nums;font-weight:650}
.balls,.history-balls{display:grid;grid-template-columns:repeat(6,minmax(0,1fr)) .28fr minmax(0,1fr);gap:clamp(2px,.8vw,7px);align-items:center}
.balls{margin:10px 0;min-height:52px}.balls:has(>span:only-child){display:block}.ball{border-radius:4px;color:white;text-align:center;padding:5px 1px 4px;min-width:0;background:#64748b}
.red{background:#d5211b}.blue{background:#1376c9}.green{background:#128538}
.ball b{display:block;font-size:clamp(22px,5.5vw,39px);line-height:1.15;letter-spacing:-.035em}.ball small{display:block;margin:3px auto 0;background:#fff;border-radius:2px;color:#20243a;font-size:clamp(10px,2.6vw,16px);width:fit-content;line-height:1.35;padding:0 1px;white-space:nowrap}
.plus{text-align:center;font-size:clamp(15px,3.6vw,24px);font-weight:700}.draw-foot{font-size:clamp(12px,3.15vw,17px);line-height:1.55}.draw-foot button{flex:none;color:#fff;background:#a95700;border:0;border-radius:5px;padding:4px 10px;font-weight:650}
.section-title{font-size:clamp(17px,4.2vw,24px);color:white;background:#3155bf;padding:11px 12px}.section-title::before{content:"";display:inline-block;width:4px;height:.85em;background:#fff;margin-right:7px}
.cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:13px 12px}.cards:empty{display:none}.card{display:block;color:#20243a;text-align:center;font-weight:600;min-width:0;overflow-wrap:anywhere}.card img{display:block;width:100%;aspect-ratio:3.4;object-fit:cover;border-radius:5px;background:#e8eef5;margin-bottom:6px}
.links-box{background:#f1f2f6;padding:10px 12px}.lines,.ad-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.ad-grid:not(:empty):not(:first-child){margin-top:7px}.lines a,.ad-grid a{color:#28304a;text-align:center;background:white;border:1px solid #e3e5ed;border-radius:5px;padding:8px 4px;overflow-wrap:anywhere}.ad-grid img{display:block;width:100%;max-height:76px;object-fit:cover}
.status{margin:6px 10px;color:#975100;font-size:13px}.draw .status{margin-left:0}.download,.history{padding:18px clamp(15px,4vw,28px) 30px}.back,.pager a{display:inline-block;min-height:35px;line-height:32px;font-size:15px}.download-head{display:flex;gap:16px;align-items:center;margin:20px 0}.download-head img{border-radius:17px}.download h1,.history h1{font-size:28px}.download-head p{margin-top:5px;color:#626979}
.instructions{padding:22px 0}.instructions h2{font-size:21px}.instructions p,.instructions li{color:#4d5261;line-height:1.7;font-size:15px}.instructions p{margin:8px 0 14px}.action{display:block;background:#3155bf;color:white;text-align:center;padding:13px 14px;border-radius:8px;font-weight:700}.instructions ol{padding-left:23px;line-height:1.65}
.history h1{margin:8px 0 17px}.records article{padding:12px 0;border-bottom:1px solid #e2e5ec}.records article header,.pager{display:flex;align-items:center;justify-content:space-between;gap:8px}.records time,.pager span{color:#696f80;font-size:13px}.history-balls{margin-top:8px}.history-balls>span{color:white;font-size:18px;font-weight:700;text-align:center;border-radius:4px;padding:3px 0}.history-balls small{display:block;font-weight:500;font-size:11px}.pager{margin-top:12px}.records>p{margin:18px 0}.notice{color:#5e677c;font-size:13px}
@media(min-width:540px){.mast{padding-top:30px;padding-bottom:31px}.cards{grid-template-columns:repeat(3,minmax(0,1fr))}.lines,.ad-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.draw{padding-top:16px;padding-bottom:31px}.ball{padding:7px 2px}.portal{box-shadow:0 0 24px #1b275015}}
@media(min-width:390px){.cards{grid-template-columns:repeat(3,minmax(0,1fr));padding-inline:9px;column-gap:7px}.card{font-size:clamp(13px,3.2vw,16px)}.lines,.ad-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.lines a,.ad-grid a{font-size:clamp(13px,3.1vw,17px)}}
.lines:has(> :nth-child(2):last-child){grid-template-columns:repeat(2,minmax(0,1fr))}

.ios-heading,.guide-heading,.guide-controls{display:flex;align-items:center;justify-content:space-between;gap:12px}
.ios-heading a{flex:none;padding:9px 0;font-weight:600}
.ios-guide{padding:20px 0;color:#18213a}
.guide-heading h2{font-size:21px}
.ios-guide button{min-height:42px;padding:6px 14px;border:1px solid #cdd4e2;border-radius:8px;background:white;color:#284898}
.ios-guide button:disabled{color:#697180;background:#f4f5f8}
.ios-guide .guide-credit{margin:4px 0 12px;color:#58647b;font-size:12px}
.ios-guide .guide-steps{list-style:none;margin:0;padding:0}
.guide-steps li{padding:0 0 20px}
.guide-steps h3{margin:15px 0 4px;color:#192342;font-size:19px;line-height:1.45}
.guide-steps p{margin:0;line-height:1.6}
.guide-shot{display:block;width:100%;height:auto;border:1px solid #d4dce8;border-radius:10px}
.guide-dialog{width:min(410px,calc(100% - 28px));max-height:calc(100% - 32px);max-height:calc(100dvh - 32px);margin:auto;padding:0;border:0;border-radius:16px;box-shadow:0 14px 48px #101a3040;overscroll-behavior:contain}
.guide-dialog::backdrop{background:#101b35a8}
body:has(.guide-dialog[open]){overflow:hidden}
.guide-dialog .ios-guide{padding:18px}
.guide-dialog .guide-steps{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scrollbar-width:none}
.guide-dialog .guide-steps::-webkit-scrollbar{display:none}
.guide-dialog .guide-steps li{flex:0 0 100%;min-width:0;scroll-snap-align:start;padding-bottom:2px}
.guide-controls{margin-top:16px;padding-top:12px;border-top:1px solid #e2e6ef}
.guide-controls span{font-size:13px;color:#535d70}
#guide-next{background:#3155bf;border-color:#3155bf;color:white}
@media(max-width:355px){.draw-line{flex-wrap:wrap}.mast{padding-top:16px}.draw{padding-left:6px;padding-right:6px}.ball small{font-size:9px}}
