.macau-lottery,.macau-lottery *{box-sizing:border-box}
.lay-macau-lottery>div{width:100%;min-width:0;flex:1}
.macau-lottery{container-type:inline-size;width:100%;background:#fff;color:#222;border-radius:10px;box-shadow:0 2px 7px #0000000b;font-family:"Microsoft YaHei",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;overflow:hidden}
.macau-lottery__heading{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:10px 12px 5px;line-height:1.4}
.macau-lottery__title{margin:0;white-space:nowrap;font-size:16px;font-size:clamp(14px,4.2cqw,19px);font-weight:600;letter-spacing:.2px}
.macau-lottery__name{color:#bd382c}
.macau-lottery__period{font-variant-numeric:tabular-nums}
.macau-lottery__balls{display:grid;grid-template-columns:repeat(6,minmax(0,1fr)) 12px minmax(0,1.1fr);gap:5px;align-items:center;padding:7px 10px 11px}
.macau-lottery__ball{--wave:#b7bdc5;display:flex;flex-direction:column;justify-content:center;align-items:center;height:47px;height:clamp(38px,12cqw,62px);min-width:0;border-radius:7px;background:var(--wave);color:#fff;box-shadow:0 2px 4px #00000018;transition:background-color .18s ease}
.macau-lottery__ball--special{height:52px;height:clamp(42px,13.2cqw,68px);border-radius:8px}
.macau-lottery__ball[data-color=red]{--wave:#df3a2c}
.macau-lottery__ball[data-color=blue]{--wave:#4b98c6}
.macau-lottery__ball[data-color=green]{--wave:#65b976}
.macau-lottery__number{font-size:22px;font-size:clamp(17px,5.3cqw,28px);line-height:1.08;font-weight:700;font-variant-numeric:tabular-nums}
.macau-lottery__attribute{font-size:14px;font-size:clamp(10px,3.7cqw,19px);line-height:1.25;margin-top:3px;white-space:nowrap;font-weight:500}
.macau-lottery__plus{font-size:21px;line-height:1;text-align:center;color:#333;font-weight:600}
.macau-lottery__footer{border-top:1px solid #f4f4f4;padding:7px 10px 10px}
.macau-lottery__next{display:flex;flex-wrap:wrap;align-items:baseline;column-gap:5px;row-gap:2px;font-size:13px;font-size:clamp(11px,3.35cqw,15px);font-weight:700;line-height:1.6;min-width:0;color:#222}
.macau-lottery__next-period,.macau-lottery__next-date,.macau-lottery__countdown-line{white-space:nowrap}
.macau-lottery__countdown-line{color:#b83b30}
.macau-lottery__countdown{font-weight:inherit;font-variant-numeric:tabular-nums;letter-spacing:.1px}
.macau-lottery__status{display:block;margin-top:3px;color:#a77522;font-size:10px;line-height:1.5}
.macau-lottery__status:empty{display:none}
.macau-lottery__refresh{font-family:inherit;border:0;background:transparent;color:#999;width:28px;height:28px;padding:0;border-radius:50%;flex-shrink:0;font-size:22px;line-height:28px;cursor:pointer;transition:background .15s,color .15s}
.macau-lottery__refresh:hover{background:#f6f6f6;color:#bd382c}
.macau-lottery__refresh:focus-visible{outline:2px solid #bd382c;outline-offset:2px}
.macau-lottery[data-attribute-mode=zodiac] .macau-lottery__attribute{font-size:16px;font-size:clamp(12px,4.2cqw,21px)}
.macau-lottery[data-number-style=ring] .macau-lottery__balls{grid-template-columns:repeat(6,minmax(0,1fr)) 12px minmax(0,1fr);gap:5px;padding-top:4px;padding-bottom:9px}
.macau-lottery[data-number-style=ring] .macau-lottery__ball{height:auto;border-radius:0;background:transparent;color:#222;box-shadow:none}
.macau-lottery[data-number-style=ring] .macau-lottery__number{display:flex;justify-content:center;align-items:center;align-self:center;width:100%;max-width:50px;aspect-ratio:1;border:3px solid var(--wave);border-radius:50%;font-size:20px;font-size:clamp(15px,4.6cqw,25px);font-weight:500;line-height:1;background:#fff}
.macau-lottery[data-number-style=ring] .macau-lottery__attribute{color:#666;font-size:12px;font-size:clamp(10px,3.2cqw,16px);margin-top:4px;font-weight:400}
.macau-lottery[data-number-style=ring] .macau-lottery__plus{align-self:start;padding-top:clamp(8px,2.3cqw,14px)}
.macau-lottery__empty{padding:12px;text-align:center;color:#8a8a8a;font-size:12px}
@media(prefers-reduced-motion:reduce){.macau-lottery *{transition:none!important}}

/* Older WebView fallbacks. Modern browsers retain the existing sizing. */
.macau-lottery__ball[data-color=red]{background-color:#df3a2c}.macau-lottery__ball[data-color=blue]{background-color:#4b98c6}.macau-lottery__ball[data-color=green]{background-color:#65b976}
.macau-lottery[data-number-style=ring] .macau-lottery__ball{background:transparent}
.macau-lottery[data-number-style=ring] .macau-lottery__number{height:38px;border-color:#b7bdc5}
.macau-lottery[data-number-style=ring] [data-color=red] .macau-lottery__number{border-color:#df3a2c}.macau-lottery[data-number-style=ring] [data-color=blue] .macau-lottery__number{border-color:#4b98c6}.macau-lottery[data-number-style=ring] [data-color=green] .macau-lottery__number{border-color:#65b976}
@supports(aspect-ratio:1){.macau-lottery[data-number-style=ring] .macau-lottery__number{height:auto}}
@supports not (display:grid){.macau-lottery__balls{display:flex;justify-content:space-between}.macau-lottery__ball{width:12%;flex-shrink:1}.macau-lottery__plus{width:12px}}
@supports not (font-size:1cqw){.macau-lottery__next{font-size:11px}.macau-lottery__next-period,.macau-lottery__next-date{margin-right:5px}}
