.mj-hand {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1px;
	vertical-align: -0.3em;
	margin: 0 0.1em;
	text-emphasis: none;
}

.mj-tile {
	height: 1.55em;
	width: auto;
	aspect-ratio: 19 / 26;
	max-width: none;
	display: block;
}

.mj-gap {
	width: 0.25em;
	display: inline-block;
}

td .mj-hand {
	margin: 0;
	vertical-align: middle;
	flex-wrap: nowrap;
}

td .mj-tile {
	height: 1.38em;
}

table.mj-table {
	table-layout: auto;
	font-size: 0.9em;
}

table.mj-table th,
table.mj-table td {
	padding: 0.4em 0.45em;
}

table.mj-table th:nth-child(n+4),
table.mj-table td:nth-child(n+4) {
	white-space: nowrap;
}

@media (max-width: 44.375em) {
	td .mj-hand {
		flex-wrap: wrap;
	}
}

.mj-scroll {
	overflow-x: auto;
	margin: 0 0 1.75em;
}

.mj-scroll > table {
	margin-bottom: 0;
}

table.mj-matrix {
	table-layout: auto;
	font-size: 0.875em;
	text-align: center;
}

table.mj-matrix th,
table.mj-matrix td {
	padding: 0.4em 0.45em;
	vertical-align: middle;
	white-space: nowrap;
}

table.mj-matrix thead th {
	text-align: center;
	background-color: #f7f8fa;
	line-height: 1.35;
}

table.mj-matrix tbody th {
	text-align: start;
	background-color: #f7f8fa;
}

table.mj-matrix td {
	font-variant-numeric: tabular-nums;
}

table.mj-matrix td.mj-win {
	background-color: #eaf6ee;
	color: #1b6b3a;
	font-weight: 700;
}

table.mj-matrix td.mj-loss {
	background-color: #fdf0ee;
	color: #9e3226;
}

table.mj-matrix td.mj-self {
	background-color: #f4f4f4;
	color: #888;
}

table.mj-matrix .mj-sub {
	display: block;
	font-size: 0.82em;
	font-weight: 400;
	line-height: 1.25;
}

.mj-note {
	color: #686868;
	margin-top: -1em;
}

.mj-note > small {
	font-size: 0.875em;
}
