
html {
    scrollbar-gutter: stable;
}

html body {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}

body .mj-main {
    display: block !important;
    width: 100% !important;
    max-width: 1280px !important;
    min-width: 0 !important;
    margin-inline: auto !important;
}

.mj-main .mj-layout {
    width: 100%;
    min-width: 0;
}

.mj-main .mj-layout > * {
    min-width: 0;
}

.mj-main .mj-table {
    width: 100%;
    min-width: 0;
}

.mj-main .mj-hand {
    display: grid !important;
    grid-template-columns: repeat(14,minmax(0,1fr)) !important;
    width: 100% !important;
    max-width: 838px;
    min-width: 0;
    margin-inline: auto;
    gap: 2px;
    align-items: end;
    justify-content: initial;
    justify-items: stretch;
}

.mj-main .mj-hand .mj-tile {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 0.74;
    margin: 0 !important;
    padding: 0 !important;
}

.mj-main .mj-hand.cpu {
    max-width: 544px;
}

.mj-main .mj-hand .mj-tile.drawn {
    outline: 2px solid #ddbe78;
    outline-offset: -2px;
}

.mj-main .mj-hand .mj-tile.choice {
    outline: 2px solid #ffda64;
}

@media(max-width:540px) {
    .mj-main .mj-hand {
        gap: 1px;
    }
}
