@charset "UTF-8";
:root{font-family:"PingFang SC","Microsoft YaHei",system-ui,sans-serif;color:#164e4b;background:#e4f4f4;font-synthesis:none;--ink:#164e4b;--lime:#e5c581;--line:#c7dedc}
*{box-sizing:border-box}html{-webkit-text-size-adjust:100%}body{margin:0;height:100vh;height:100svh;display:flex;flex-direction:column;font-size:13px;line-height:1.5}h1,h2,h3,p{margin:0}a{color:inherit;text-decoration:none}button{font:inherit;cursor:pointer;color:inherit;border:0}a,button{-webkit-tap-highlight-color:transparent;touch-action:manipulation}a:focus-visible,button:focus-visible{outline:2px solid #32817b;outline-offset:3px}img,svg{display:block;max-width:100%}[hidden]{display:none!important}.shell{width:calc(100% - 56px);max-width:1100px;margin-inline:auto}
.site-header{background:var(--ink);color:#fff;flex:0 0 74px}.header-inner{height:100%;display:flex;align-items:center;justify-content:space-between;gap:12px}.brand{display:flex;align-items:center;gap:12px}.brand-symbol{position:relative;display:flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:12px;background:#e5c581;color:#164e4b;font-size:29px;font-weight:700;letter-spacing:-3px;padding-right:4px;font-family:Georgia,serif}.brand-symbol>span{position:absolute;font-size:14px;letter-spacing:0;right:2px;top:0}.brand-type{display:flex;flex-direction:column}.brand-type strong{font-size:19px;letter-spacing:1px}.brand-type small{font-size:10px;letter-spacing:2px;color:#bdcfbc}.header-right{display:flex;gap:26px;align-items:center}.header-note{font-size:12px;letter-spacing:1px;color:#b7cbb7}.notice-trigger{display:flex;align-items:center;gap:7px;background:#ffffff0c;border:1px solid #ffffff30;border-radius:6px;padding:8px 13px;font-size:12px}.notice-trigger:hover{background:#ffffff20}.notice-trigger svg{width:17px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.dashboard{flex:1;min-height:0;max-height:680px;display:grid;grid-template-rows:224px minmax(142px,1fr) 76px;gap:16px;padding-top:18px}.draw-section{min-width:0;background:#fff;border:1px solid var(--line);border-radius:12px;overflow:hidden}.draw-heading{height:32px;display:flex;align-items:center;justify-content:space-between;background:#e7eddf;padding:0 18px;border-bottom:1px solid var(--line)}.draw-heading h1{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:600}.draw-heading h1 i{height:5px;width:5px;border-radius:50%;background:#6b8c4c}.draw-heading h1>span{font-weight:400;font-size:10px;color:#718267;border-left:1px solid #bfcdb4;padding-left:9px;margin-left:3px}.draw-heading>a{font-size:10px;color:#526b45}.draw-heading>a:hover{text-decoration:underline}.lottery-viewport{width:100%;max-width:760px;margin:auto;overflow:hidden;height:190px}.lottery-frame{display:block;width:100%;height:190px;border:0;transform-origin:left top;background:#fff}
.sites-section{display:flex;flex-direction:column;min-height:0}.section-heading{height:34px;display:flex;align-items:flex-start;justify-content:space-between;gap:8px;flex-shrink:0}.section-heading h2{font-size:16px;font-weight:650;letter-spacing:.5px;display:flex;align-items:center;gap:11px}.section-heading h2>span{color:#526e6b;font-size:8px;letter-spacing:1.8px;font-weight:400}.section-heading>span{color:#526e6b;font-size:10px;padding-top:4px}.site-grid{flex:1;min-height:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}.site-card{position:relative;min-width:0;min-height:0;background:#fff;border:1px solid var(--line);border-radius:12px;padding:18px;display:flex;flex-direction:column;transition:background .15s,border-color .15s,box-shadow .15s}.site-card:hover{border-color:#8fa975;background:#fdfff8;box-shadow:0 5px 14px #164e4b10}.site-number{font:11px Consolas,monospace;color:#849475}.site-logo{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;padding:9px 0}.site-logo img{max-width:100%;width:auto;height:auto;max-height:80px;object-fit:contain;border-radius:4px}.site-card-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-top:10px;border-top:1px solid #e9eee3;flex-shrink:0}.site-card h3{font-size:15px;font-weight:600;line-height:1.4;letter-spacing:.5px}.site-domain{font:10px/1.5 Consolas,monospace;color:#839077;word-break:break-all}.card-go{height:29px;width:29px;border-radius:50%;background:#eef3e6;display:flex;align-items:center;justify-content:center;font-size:17px;flex-shrink:0}.site-card:hover .card-go{background:var(--ink);color:var(--lime)}
.backup-section{min-height:0;border-top:1px solid var(--line);display:flex;align-items:center;gap:30px}.backup-heading{flex-shrink:0}.backup-heading h2{font-size:14px;font-weight:600}.backup-heading>span{font-size:9px;color:#526e6b}.backup-links{display:grid;grid-template-columns:repeat(4,minmax(0,1fr)) auto;align-items:center;gap:8px;flex:1;min-width:0}.backup-links a{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:11px;background:#d8ece9;border:1px solid #bad5d1;padding:9px 11px;border-radius:5px;white-space:nowrap}.backup-links a:hover{background:#c9e3de;border-color:#78aaa3}.backup-placeholder{font-size:9px;color:#526e6b;white-space:nowrap;padding-left:2px}.site-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:32px;flex:0 0 40px;margin-top:auto;font-size:10px;color:#526e6b}.site-footer button{background:none;padding:6px 0;font-size:10px;color:#526e6b}
.notice-overlay{position:fixed;inset:0;background:#123e3aa6;backdrop-filter:blur(5px);z-index:100;display:flex;align-items:center;justify-content:center;padding:24px;overflow-y:auto;overscroll-behavior:contain}.notice-dialog{position:relative;background:#f5faf9;border-radius:18px;max-width:450px;width:100%;padding:27px 30px 21px;max-height:calc(100vh - 48px);max-height:calc(100dvh - 48px);overflow-y:auto;box-shadow:0 25px 100px #091c2640}.notice-close{position:absolute;top:10px;right:10px;width:40px;height:40px;font-size:28px;font-weight:300;background:transparent;color:#526e6b;border-radius:50%;line-height:1}.notice-close:hover{background:#d8ece9}.notice-symbol{width:34px;height:34px;border-radius:10px;color:var(--ink);background:#f4e6c7;display:flex;align-items:center;justify-content:center;font-family:Georgia,serif;font-size:22px;margin-bottom:12px}.section-kicker{font-size:8px;letter-spacing:1.5px;color:#526e6b}.notice-dialog h2{font-size:23px;font-weight:600;margin:7px 0 14px}.notice-dialog>p:not(.section-kicker){color:#526e6b;line-height:1.85;font-size:12px}.notice-official{background:var(--ink);border-radius:9px;display:flex;flex-direction:column;padding:13px 16px;color:white;margin:16px 0 12px}.notice-official>span:first-child{font-size:10px;letter-spacing:1px;color:#bed6d2}.notice-official strong{font-size:27px;letter-spacing:1px;font-weight:550;color:var(--lime)}.notice-official .official-url{font:11px Consolas,monospace;color:#e1efec;word-break:break-all}.notice-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.notice-links a{display:flex;align-items:center;justify-content:space-between;background:white;border:1px solid var(--line);border-radius:6px;padding:9px 12px;font-size:11px}.notice-links a:hover{border-color:#78aaa3}.notice-confirm{width:100%;background:var(--ink);color:white;margin-top:17px;display:flex;align-items:center;justify-content:space-between;padding:12px 15px;border-radius:6px;font-size:12px}.notice-dialog .notice-footnote{font-size:9px!important;text-align:center;margin-top:10px}.modal-open{overflow:hidden}
@media(max-width:850px){.shell{width:calc(100% - 32px)}.header-note{display:none}.site-card{padding:12px}.backup-section{gap:15px}.backup-heading>span{display:none}.backup-links{gap:6px}.backup-links a{font-size:10px;padding:8px}.backup-placeholder{font-size:8px}}
@media(max-width:650px){.shell{width:calc(100% - 24px)}.site-header{flex-basis:56px}.brand{gap:9px}.brand-symbol{height:34px;width:34px;font-size:24px;border-radius:9px}.brand-symbol>span{font-size:11px}.brand-type strong{font-size:16px;letter-spacing:.5px;line-height:1.5}.brand-type small{font-size:8px;letter-spacing:1px}.notice-trigger{padding:7px 10px;font-size:11px;gap:5px}.notice-trigger svg{width:15px}.dashboard{max-height:650px;grid-template-rows:218px minmax(136px,1fr) 76px;gap:10px;padding-top:8px}.draw-section{border-radius:8px}.draw-heading{height:26px;padding:0 10px}.draw-heading h1{font-size:11px;gap:5px}.draw-heading h1>span{font-size:8px;padding-left:6px;margin-left:2px}.draw-heading>a{font-size:9px}.section-heading{height:27px;align-items:center}.section-heading h2{font-size:13px;gap:7px}.section-heading h2>span{font-size:7px;letter-spacing:1.2px}.section-heading>span{font-size:8px;padding-top:0}.site-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:8px}.site-card{padding:9px 11px;border-radius:8px}.site-number{position:absolute;top:7px;left:9px;font-size:8px;z-index:1;color:#a0ac95}.site-logo{padding:5px 7px 7px}.site-logo img{max-height:70px}.site-card-footer{padding-top:5px;gap:4px}.site-card h3{font-size:12px;letter-spacing:.2px}.site-domain{font-size:8px}.card-go{width:22px;height:22px;font-size:13px}.backup-section{display:block;border:0;position:relative}.backup-heading{height:22px;display:flex;align-items:center;gap:9px}.backup-heading h2{font-size:11px}.backup-heading>span{display:block;font-size:8px}.backup-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,24px);gap:5px 8px}.backup-links a{padding:3px 9px;font-size:9px;border-radius:4px;gap:7px}.backup-placeholder{position:absolute;right:1px;top:5px;font-size:8px}.site-footer{flex-basis:28px;min-height:28px;font-size:8px}.site-footer button{font-size:8px;padding:4px 0}.notice-overlay{padding:14px}.notice-dialog{padding:23px 23px 19px;border-radius:15px;max-height:calc(100vh - 28px);max-height:calc(100dvh - 28px)}.notice-dialog h2{font-size:21px}.notice-dialog>p:not(.section-kicker){font-size:11px}}
@media(max-width:650px) and (max-height:700px){.site-card{padding:7px 9px}.site-logo{padding:2px 6px 4px}.site-logo img{max-height:46px}.site-card-footer{padding-top:4px}.site-card h3{font-size:11px}.site-domain{font-size:7px}.site-number{top:4px;left:6px;font-size:7px}.card-go{width:20px;height:20px;font-size:12px}}
@media(max-width:650px) and (max-height:590px){.site-header{flex-basis:48px}.brand-symbol{height:30px;width:30px;font-size:22px}.brand-type strong{font-size:14px}.brand-type small{font-size:7px}.dashboard{gap:7px;padding-top:6px;grid-template-rows:218px minmax(118px,1fr) 72px}.section-heading{height:23px}.site-grid{gap:6px}.site-card{padding:5px 8px}.site-logo{padding:1px 5px 3px}.site-logo img{max-height:33px}.site-card-footer{padding-top:3px}.site-card h3{font-size:10px}.site-domain{font-size:7px;line-height:1.3}.site-number{display:none}.card-go{width:18px;height:18px;font-size:11px}.backup-heading{height:20px}.backup-links{grid-template-rows:repeat(2,23px);gap:4px 6px}.site-footer{flex-basis:24px;min-height:24px}}
@media(min-width:651px) and (max-height:650px){.site-header{flex-basis:54px}.dashboard{grid-template-rows:216px minmax(115px,1fr) 54px;gap:8px;padding-top:8px}.draw-heading{height:24px}.draw-heading h1{font-size:11px}.section-heading{height:25px}.site-card{padding:8px 12px}.site-number{display:none}.site-logo{padding:3px 8px}.site-logo img{max-height:42px}.site-card-footer{padding-top:4px}.site-card h3{font-size:12px}.site-footer{flex-basis:28px;min-height:28px}}
@media(orientation:landscape) and (max-height:500px){.site-header{flex-basis:48px}.dashboard{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);grid-template-rows:minmax(0,1fr) 56px;gap:9px 14px;padding-top:9px}.draw-section{grid-column:1;grid-row:1}.sites-section{grid-column:2;grid-row:1}.backup-section{grid-column:1/-1;grid-row:2;display:flex}.draw-heading{height:25px}.site-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:6px}.site-card{padding:5px 8px}.site-card-footer{padding-top:3px}.site-logo img{max-height:34px}.site-number{display:none}.site-card h3{font-size:10px}.site-domain{font-size:8px}.card-go{height:20px;width:20px;font-size:12px}.section-heading{height:25px}.section-heading h2{font-size:12px}.section-heading>span{display:none}.backup-heading{height:auto}.backup-links{display:flex;flex-wrap:wrap}.backup-links a{flex:1;padding:5px 8px}.backup-placeholder{position:static;font-size:8px}.site-footer{flex-basis:24px;min-height:24px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}

/* Compact logo header and simplified entry cards. */
.site-header{flex-basis:100px}.brand{min-width:0}.portal-logo{display:block;width:480px;max-width:100%;height:86px;object-fit:contain;object-position:left center}.dashboard{grid-template-rows:192px minmax(142px,1fr) 76px}.site-logo img{max-height:100%;object-fit:contain}.site-number,.site-domain{display:none}.site-card-footer{padding-top:8px}.site-card h3{font-size:13px}.draw-section{display:flex;align-items:center;justify-content:center}
@media(max-width:650px){.site-header{flex-basis:68px}.brand{flex:1}.portal-logo{width:340px;height:58px}.header-inner{gap:10px}.header-right{flex-shrink:0}.notice-trigger{padding:6px 8px;font-size:10px}.notice-trigger svg{width:13px}.dashboard{grid-template-rows:192px minmax(120px,1fr) 76px}.site-card-footer{padding-top:5px}.site-card h3{font-size:11px}}
@media(max-width:650px) and (max-height:590px){.site-header{flex-basis:58px}.portal-logo{height:50px}.dashboard{grid-template-rows:192px minmax(102px,1fr) 72px}.site-card h3{font-size:10px}}
@media(max-width:650px) and (max-height:540px){.site-header{flex-basis:54px}.portal-logo{height:46px}.dashboard{grid-template-rows:192px minmax(90px,1fr) 66px;gap:6px;padding-top:4px}.section-heading{height:21px}.site-grid{gap:5px}.site-card{display:grid;grid-template-columns:minmax(0,1fr) 30px;align-items:center;gap:5px;padding:6px}.site-logo{padding:0;min-width:0;height:100%;max-height:40px}.site-logo img{max-height:100%}.site-card-footer{border:0;padding:0;display:block}.site-card h3{font-size:10px;white-space:nowrap}.card-go{display:none}.backup-heading{height:18px}.backup-links{grid-template-rows:repeat(2,22px);gap:4px 6px}.site-footer{flex-basis:20px;min-height:20px}}
@media(min-width:651px) and (max-height:650px){.site-header{flex-basis:72px}.portal-logo{height:66px}.dashboard{grid-template-rows:192px minmax(100px,1fr) 54px}}
@media(orientation:landscape) and (max-height:500px){.site-header{flex-basis:52px}.portal-logo{height:47px;width:300px}.dashboard{grid-template-rows:minmax(0,1fr) 50px}.site-card{display:grid;grid-template-columns:minmax(0,1fr) 30px;align-items:center;gap:5px;padding:6px}.site-logo{padding:0;height:100%;max-height:45px}.site-logo img{max-height:100%}.site-card-footer{border:0;padding:0;display:block}.site-card h3{font-size:10px;white-space:nowrap}.card-go{display:none}}
@media(orientation:landscape) and (max-height:500px){.site-footer button{padding:3px 0;font-size:9px}}

/* Image links sit at their natural height, without card frames or empty padding. */
.dashboard{grid-template-rows:192px max-content 76px;align-content:start}
.site-grid{flex:0 0 auto;grid-template-rows:none;grid-auto-rows:auto;align-items:start;gap:8px}
.site-card,.site-card:hover{display:block;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;transform:none}
.site-card>img{display:block;width:100%;height:auto;aspect-ratio:3 / 1;max-height:none;object-fit:fill;border-radius:0}
@media(max-width:650px) and (max-height:590px){.dashboard{grid-template-rows:192px max-content 72px}}
@media(max-width:650px) and (max-height:540px){.dashboard{grid-template-rows:192px max-content 66px}.site-grid{gap:5px}}
@media(min-width:651px) and (max-height:650px){.dashboard{grid-template-rows:192px max-content 54px}}
@media(orientation:landscape) and (max-height:500px){.dashboard{grid-template-rows:minmax(0,1fr) 50px;align-content:stretch}.site-grid{gap:6px}}

/* The Macau banner sits immediately above the draw; notices remain in the footer. */
.site-header{flex:0 0 auto;background:transparent}
.header-inner{display:block;height:auto;padding:0}
.brand{display:block;width:100%;max-width:480px;margin:0 auto}
.portal-logo{display:block;width:100%;height:auto;max-width:100%;max-height:none;object-fit:contain}
@media(max-width:650px) and (max-height:540px){.brand{max-width:216px}.dashboard{grid-template-rows:172px max-content 66px}}
@media(min-width:651px) and (max-height:650px){.brand{max-width:300px}}
@media(orientation:landscape) and (max-height:500px){.brand{max-width:156px}.dashboard{grid-template-rows:minmax(0,1fr) 50px}}

/* Larger backup controls, with narrower gutters around the page. */
.shell{width:calc(100% - 16px);max-width:none}
.dashboard{grid-template-rows:192px max-content 84px}
.backup-heading h2{font-size:17px}
.backup-heading>span{font-size:11px}
.backup-links a{min-height:44px;padding:9px 12px;font-size:15px;line-height:1.3}
.backup-links a>span{font-size:17px}
.backup-placeholder{font-size:11px}
@media(max-width:850px){.backup-links a{font-size:14px;padding:8px 10px}.backup-section{gap:12px}}
@media(max-width:650px){
  .shell{width:calc(100% - 8px)}
  .dashboard{grid-template-rows:192px max-content 122px}
  .backup-heading{height:28px;gap:8px}
  .backup-heading h2{font-size:16px}
  .backup-heading>span{font-size:10px}
  .backup-links{grid-template-rows:repeat(2,42px);gap:8px}
  .backup-links a{min-height:42px;padding:8px 12px;font-size:15px;border-radius:5px}
  .backup-placeholder{top:6px;font-size:10px}
}
@media(max-width:650px) and (max-height:650px) and (orientation:portrait){
  .dashboard{grid-template-rows:minmax(0,1fr) max-content 114px;align-content:stretch}
  .backup-heading{height:26px}
  .backup-links{grid-template-rows:repeat(2,40px);gap:6px}
  .backup-links a{min-height:40px;font-size:14px;padding:7px 10px}
}
@media(max-width:650px) and (max-height:500px) and (orientation:portrait){.brand{max-width:156px}}
@media(orientation:landscape) and (max-height:500px){
  .dashboard{grid-template-rows:minmax(0,1fr) 72px;align-content:stretch}
  .backup-section{display:block;position:relative;border:0}
  .backup-heading{height:26px;display:flex;align-items:center;gap:10px}
  .backup-heading h2{font-size:15px}
  .backup-heading>span{display:block;font-size:10px}
  .backup-links{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:40px;gap:6px}
  .backup-links a{min-height:40px;padding:7px 10px;font-size:14px;gap:5px}
  .backup-placeholder{position:absolute;right:0;top:5px;font-size:10px}
}

/* Let the draw meet the logo and following content without an outer card. */
.dashboard{padding-top:0;row-gap:0;grid-template-rows:minmax(0,190px) max-content 84px;align-content:start}
.draw-section{border:0;border-radius:0;background:transparent;align-items:flex-start}
.lottery-viewport{max-width:none;margin:0}
@media(max-width:650px){.dashboard{grid-template-rows:minmax(0,190px) max-content 122px}}
@media(max-width:650px) and (max-height:650px) and (orientation:portrait){.dashboard{grid-template-rows:minmax(0,190px) max-content 114px;align-content:start}}
@media(orientation:landscape) and (max-height:500px){.dashboard{grid-template-rows:minmax(0,190px) 72px;align-content:start}}

/* Remove the remaining page gutters and upstream draw-page whitespace. */
.shell{width:100%;max-width:none}
.brand{aspect-ratio:2172 / 724;overflow:hidden}
.portal-logo{max-width:none}
.dashboard{grid-template-rows:minmax(0,var(--draw-visible-height,156px)) max-content 84px}
.lottery-viewport{position:relative;overflow:hidden}
.lottery-frame{position:absolute;transform-origin:0 0}
@media(max-width:650px){.dashboard{grid-template-rows:minmax(0,var(--draw-visible-height,156px)) max-content 122px}}
@media(max-width:650px) and (max-height:650px) and (orientation:portrait){.dashboard{grid-template-rows:minmax(0,var(--draw-visible-height,156px)) max-content 114px}}
@media(orientation:landscape) and (max-height:500px){.dashboard{grid-template-rows:minmax(0,var(--draw-visible-height,156px)) 72px}}

.brand-domain{display:block;width:fit-content;max-width:100%;margin:0 auto;padding:2px 8px 4px;color:#164e4b;font-family:Arial,sans-serif;font-size:clamp(16px,4.5vw,24px);font-weight:700;line-height:1.25;letter-spacing:.5px;text-align:center}
.brand-domain:hover{text-decoration:underline}
