/* Game count and available space determine one uniform grid. */
.apk-download{display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;border:1px solid #c7a458;border-radius:10px;background:#1b2230;color:#f3d88e;text-decoration:none}
.apk-download svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.apk-download:hover,.apk-download:focus-visible{background:#30384a;outline:2px solid #f3d88e;outline-offset:2px}
.apk-download[hidden]{display:none!important}
#s-lobby #v-home .modes{
 grid-template-columns:repeat(var(--game-columns,1),minmax(0,1fr));
 grid-template-rows:repeat(var(--game-rows,1),minmax(96px,1fr));
 grid-auto-rows:minmax(96px,1fr);gap:10px;overflow:auto;overscroll-behavior:contain;
}
#s-lobby #v-home .modes>.mode-card{
 box-sizing:border-box;width:100%;height:100%;min-width:0;min-height:0;max-width:none;max-height:none;
 grid-column:auto;grid-row:auto;overflow:hidden;container-type:size;padding:10px 12px;
}
#s-lobby #v-home .modes>.mode-card>b{
 max-width:100%;font-size:clamp(12px,min(12cqw,18cqh),34px);line-height:1.1;letter-spacing:.04em;overflow-wrap:anywhere;
}
#s-lobby #v-home .modes>.mode-card>small{font-size:clamp(8px,6cqh,10px);letter-spacing:.08em}
#s-lobby #v-home .modes>#mode-poker>i{font-size:clamp(16px,20cqh,40px)}
#s-lobby #v-home .modes>.mode-card[hidden]{display:none}
