/* Reference ball artwork and typography, verified against all 49 numbers. */
.ball.hk-reference-ball,.history-table .ball.hk-reference-ball{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;flex:0 0 33.6px;width:33.6px;height:33.6px;min-width:33.6px;padding:0;border:0;border-radius:0;background-color:transparent;background-position:center;background-repeat:no-repeat;background-size:100% 100%;box-shadow:none;font:700 16.8px/33.6px -apple-system,system-ui,"Helvetica Neue",Helvetica,"Segoe UI",Arial,Roboto,"PingFang SC",miui,"Hiragino Sans GB","Microsoft Yahei",sans-serif;color:#333;text-shadow:none;letter-spacing:normal;text-align:center;vertical-align:middle;}
.hk-reference-ball .marksix-number{display:block;padding:0;line-height:1;font-variant-numeric:tabular-nums;font-feature-settings:"tnum";transform:translateY(-1.1px)}
.ball.hk-reference-ball.hk-ball-1,.ball.hk-reference-ball.hk-ball-2,.ball.hk-reference-ball.hk-ball-7,.ball.hk-reference-ball.hk-ball-8,.ball.hk-reference-ball.hk-ball-12,.ball.hk-reference-ball.hk-ball-13,.ball.hk-reference-ball.hk-ball-18,.ball.hk-reference-ball.hk-ball-19,.ball.hk-reference-ball.hk-ball-23,.ball.hk-reference-ball.hk-ball-24,.ball.hk-reference-ball.hk-ball-29,.ball.hk-reference-ball.hk-ball-30,.ball.hk-reference-ball.hk-ball-34,.ball.hk-reference-ball.hk-ball-35,.ball.hk-reference-ball.hk-ball-40,.ball.hk-reference-ball.hk-ball-45,.ball.hk-reference-ball.hk-ball-46{background-image:url("/brand/marksix-reference/red.png");}
.ball.hk-reference-ball.hk-ball-3,.ball.hk-reference-ball.hk-ball-4,.ball.hk-reference-ball.hk-ball-9,.ball.hk-reference-ball.hk-ball-10,.ball.hk-reference-ball.hk-ball-14,.ball.hk-reference-ball.hk-ball-15,.ball.hk-reference-ball.hk-ball-20,.ball.hk-reference-ball.hk-ball-25,.ball.hk-reference-ball.hk-ball-26,.ball.hk-reference-ball.hk-ball-31,.ball.hk-reference-ball.hk-ball-36,.ball.hk-reference-ball.hk-ball-37,.ball.hk-reference-ball.hk-ball-41,.ball.hk-reference-ball.hk-ball-42,.ball.hk-reference-ball.hk-ball-47,.ball.hk-reference-ball.hk-ball-48{background-image:url("/brand/marksix-reference/blue.png");}
.ball.hk-reference-ball.hk-ball-5,.ball.hk-reference-ball.hk-ball-6,.ball.hk-reference-ball.hk-ball-11,.ball.hk-reference-ball.hk-ball-16,.ball.hk-reference-ball.hk-ball-17,.ball.hk-reference-ball.hk-ball-21,.ball.hk-reference-ball.hk-ball-22,.ball.hk-reference-ball.hk-ball-27,.ball.hk-reference-ball.hk-ball-28,.ball.hk-reference-ball.hk-ball-32,.ball.hk-reference-ball.hk-ball-33,.ball.hk-reference-ball.hk-ball-38,.ball.hk-reference-ball.hk-ball-39,.ball.hk-reference-ball.hk-ball-43,.ball.hk-reference-ball.hk-ball-44,.ball.hk-reference-ball.hk-ball-49{background-image:url("/brand/marksix-reference/green.png");}
/* Hong Kong identity sits beside the title instead of in a separate column. */
article:is([data-game="hk6"],[data-game="macao_old6"],[data-game="macao_new6"]) .result-top{grid-template-columns:minmax(0,1fr) 180px}
article:is([data-game="hk6"],[data-game="macao_old6"],[data-game="macao_new6"]) .game-name{display:inline-flex;align-items:center;gap:8px}
article:is([data-game="hk6"],[data-game="macao_old6"],[data-game="macao_new6"]) .game-name .game-icon{width:24px;height:28px;flex:0 0 24px;object-fit:contain}
@media(max-width:760px){article:is([data-game="hk6"],[data-game="macao_old6"],[data-game="macao_new6"]) .result-top{grid-template-columns:minmax(0,1fr)}article:is([data-game="hk6"],[data-game="macao_old6"],[data-game="macao_new6"]) .clock-side{grid-column:1}}

article:is([data-game="hk6"],[data-game="macao_old6"],[data-game="macao_new6"]) .game-name .hk-title-flag{display:block;width:24px;height:16px;flex:0 0 24px;object-fit:contain;border-radius:1px}

/* Shared blue ball surface for circular UK games in this information site. */
.ball.uk-blue-reference,.history-table .ball.uk-blue-reference{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;flex:0 0 33.6px;width:33.6px;height:33.6px;min-width:33.6px;padding:0;border:0;border-radius:0;background:transparent url("/brand/marksix-reference/blue.png") center/100% 100% no-repeat;box-shadow:none;font:700 16.8px/33.6px -apple-system,system-ui,"Helvetica Neue",Helvetica,"Segoe UI",Arial,Roboto,"PingFang SC",miui,"Hiragino Sans GB","Microsoft Yahei",sans-serif;color:#333;text-shadow:none;letter-spacing:normal;text-align:center;vertical-align:middle}
.uk-blue-reference .marksix-number{display:block;padding:0;line-height:1;font-variant-numeric:tabular-nums;font-feature-settings:"tnum";transform:translateY(-1.1px)}
.ball.uk-multiplier{font-size:13px}

.ball.uk-blue-reference.uk-multiplier,.history-table .ball.uk-blue-reference.uk-multiplier{background-image:url("/brand/marksix-reference/red.png")}

.ball.uk-blue-reference.uk-marksix-red,.history-table .ball.uk-blue-reference.uk-marksix-red{background-image:url("/brand/marksix-reference/red.png")}
.ball.uk-blue-reference.uk-marksix-green,.history-table .ball.uk-blue-reference.uk-marksix-green{background-image:url("/brand/marksix-reference/green.png")}

article[data-game="hk6"] .result-top{grid-template-columns:minmax(0,1fr) 275px}.hk-next-draw{font-size:13px;line-height:1.8;color:#4d5560;margin-bottom:7px}.hk-next-draw strong,.hk-next-draw span,.hk-next-draw small{display:block}.hk-next-draw strong{font-size:13px;color:#30343a}.hk-next-draw small{font-size:11px;color:#8a9099}.hk-date-source{font-size:10px;color:#92969d;margin-top:8px}.hk-date-source a{display:block;color:#727f92;margin-top:3px}@media(max-width:760px){article[data-game="hk6"] .result-top{grid-template-columns:minmax(0,1fr)}article[data-game="hk6"] .clock-side{display:block}.hk-next-draw{margin-top:6px}}

.ball.cn-ball,.history-table .ball.cn-ball{display:inline-flex;align-items:center;justify-content:center;flex:0 0 33.6px;width:33.6px;height:33.6px;min-width:33.6px;border:0;border-radius:0;box-shadow:none;background:transparent url('/brand/marksix-reference/blue.png') center/100% 100% no-repeat;color:#333;font:700 16.8px/1 -apple-system,system-ui,sans-serif;text-shadow:none}.ball.cn-red{background-image:url('/brand/marksix-reference/red.png')}.cn-ball .marksix-number{transform:translateY(-1.1px);font-variant-numeric:tabular-nums}.categories{grid-template-columns:repeat(9,minmax(0,1fr))}.categories a{flex-wrap:wrap;column-gap:5px;row-gap:3px}.categories a small{font-size:8px}.hall-column-welfare h3:before{background:#d93546}.hall-column-sports h3:before{background:#287bb2}@media(max-width:760px){.categories{grid-template-columns:repeat(3,minmax(0,1fr))}.categories a{min-height:46px}}

/* Mainland games follow the source official sites, independently of Mark Six. */
.ball.cn-ball,.history-table .ball.cn-ball{border-radius:50%;color:#fff;background-image:none;background-color:#db1e2f;font-size:17px}.cn-ball .marksix-number{transform:none}.ball.cn-ball.fc-blue{background-color:#1e66db}.ball.cn-ball.tc-red{background:transparent url("/brand/china/ball-red.png") center/100% 100% no-repeat}.ball.cn-ball.tc-blue{background:transparent url("/brand/china/ball-blue.png") center/100% 100% no-repeat}.ball.cn-ball.tc-purple{background:transparent url("/brand/china/ball-purple.png") center/100% 100% no-repeat}.ball.cn-ball.tc-pink{background:transparent url("/brand/china/ball-pink.png") center/100% 100% no-repeat}.ball.cn-ball.tc-lightGreen{background:transparent url("/brand/china/ball-lightGreen.png") center/100% 100% no-repeat}

/* Balanced category navigation: brand and title on one row, subtitle below. */
.categories a{display:grid;grid-template-columns:auto auto;grid-template-rows:24px 14px;align-content:center;justify-content:center;align-items:center;column-gap:6px;row-gap:3px;min-height:66px;padding:8px 5px;box-sizing:border-box}.categories a .category-label{white-space:nowrap;font-size:13px}.categories a small{grid-column:1 / -1;text-align:center;font-size:8px;line-height:14px;letter-spacing:.4px}.categories a .category-flag{width:22px;height:16px;object-fit:contain;margin:0}.categories a .category-brand{width:24px;height:24px}.categories a.active .category-brand{background:#fff;border-radius:3px;padding:2px;box-sizing:border-box}@media(max-width:760px){.categories a .category-label{font-size:12px}}

.categories a .category-label{grid-column:2;grid-row:1}.categories a .category-flag{grid-column:1;grid-row:1}.categories a small{grid-row:2;display:block;margin:0;padding:0}

.categories{grid-template-columns:repeat(7,minmax(0,1fr))}@media(max-width:760px){.categories{grid-template-columns:repeat(3,minmax(0,1fr))}}
.title-live-button{display:inline-flex;vertical-align:middle;align-items:center;gap:5px;margin-left:12px;padding:4px 10px;border:1px solid #ffd2cf;border-radius:20px;background:#fff2f0;color:#ec493e;font-size:12px;font-weight:600;line-height:20px;transition:background .15s,box-shadow .15s}.title-live-button svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round}.title-live-button:hover{background:#ffe5e1;box-shadow:0 3px 10px #e74b4020}.live-popup{width:min(900px,94vw);max-width:94vw;max-height:94vh;padding:0;border:0;border-radius:16px;background:white;box-shadow:0 24px 90px #0005;overflow:hidden}.live-popup::backdrop{background:#101826aa;backdrop-filter:blur(5px)}.live-popup-heading{height:58px;display:flex;align-items:center;justify-content:space-between;padding:0 20px;border-bottom:1px solid #eee}.live-popup-heading>div{display:flex;align-items:center;gap:9px}.live-popup-dot{width:8px;height:8px;border-radius:50%;background:#ef4b40;box-shadow:0 0 0 4px #fff0ee}.live-popup-heading button{width:32px;height:32px;border-radius:50%;background:#f4f5f7;color:#727783;font-size:25px;line-height:1}.live-popup iframe{display:block;width:100%;height:min(650px,78vh);border:0}nav.reference-nav>a[href="/live.html"]{display:none}

.live-popup iframe{height:min(506px,76vh)}

article:is([data-game="hk6"],[data-game="macao_old6"],[data-game="macao_new6"]) .result-top{grid-template-columns:minmax(0,1fr) max-content}
article:is([data-game="hk6"],[data-game="macao_old6"],[data-game="macao_new6"]) .clock{white-space:nowrap;width:max-content;margin-left:auto}
@media(max-width:760px){article:is([data-game="hk6"],[data-game="macao_old6"],[data-game="macao_new6"]) .result-top{grid-template-columns:minmax(0,1fr)}article:is([data-game="hk6"],[data-game="macao_old6"],[data-game="macao_new6"]) .clock-side{flex-wrap:wrap}article:is([data-game="hk6"],[data-game="macao_old6"],[data-game="macao_new6"]) .clock{margin-left:0}article:is([data-game="hk6"],[data-game="macao_old6"],[data-game="macao_new6"]) .clock b{font-size:13px;margin:0 2px;padding:2px 3px}article:is([data-game="hk6"],[data-game="macao_old6"],[data-game="macao_new6"]) .draw-countdown-label{font-size:11px;margin-right:8px}}
