/* Winning numbers only: ten positions per row; never reorder the data. */
#main-content .twenty-ball-grid {
    display: grid !important;
    grid-template-columns: repeat(10, minmax(0, 1fr)) !important;
    grid-auto-flow: row;
    width: min(100%, 374px) !important;
    min-width: 0;
    max-width: 100% !important;
    height: auto !important;
    gap: 4px !important;
    justify-items: center;
    align-items: center;
    box-sizing: border-box;
}
#main-content .twenty-ball-grid > :is(.ball,b) {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 32px;
    height: auto !important;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}
.bingo-summary-balls,.record-winning-numbers {
    grid-template-columns: repeat(10, minmax(0, 1fr)) !important;
    grid-auto-flow: row;
}
/* Fit the two result rows between the console header and the 80-ball board. */
.keno-stage .keno-winning { top: 100px; height: 76px; justify-content: center; gap: 16px; }
.keno-stage .keno-winning > [data-keno-results] {
    grid-template-columns: repeat(10, 36px);
    grid-auto-flow: row;
    width: 396px;
    gap: 4px;
}
.keno-stage .keno-winning .keno-ball { zoom: .82; }
@media(max-width:768px) {
    #main-content .twenty-ball-grid { gap: 3px 2px !important; }
    #main-content .twenty-ball-grid > :is(.ball,b) { font-size: clamp(9px,2.8vw,14px); }
}
