:root {
	--text: var(--light);
	--bg: var(--dark);
	--link: var(--light-blue);
	--hover: var(--lighter-blue);
	--visited: var(--purple);
	--active: var(--red);
	--highlight: var(--orange);

	--black: 0 0 0;
	--white: 1 1 1;
	--light: 0.80 0.87 1.00;
	--dark: 0.00 0.07 0.40;
	--red: 1.00 0.25 0.25;
	--orange: 1.00 0.69 0.25;
	--light-orange: 1.00 0.80 0.55;
	--yellow: 1.00 0.84 0.40;
	--green: 0.28 0.70 0.35;
	--light-green: 0.60 0.85 0.60;
	--blue: 0.30 0.42 1.00;
	--light-blue: 0.50 0.58 1.00;
	--lighter-blue: 0.65 0.74 1.00;
	--purple: 0.67 0.50 1.00;
	--light-purple: 0.82 0.75 1.00;

	--crane: 0.33 0.65 0.38;
	--boar: 1.00 0.68 0.25;
	--deer: 0.55 0.33 0.22;
	--frog: 0.24 0.25 0.30;
	--tiger: 0.90 0.27 0.27;
	--dragon: 0.53 0.48 0.80;
	--fox: 0.95 0.92 0.91;
	--tanuki: 0.50 0.43 0.43;

	--fool: 1 1 1;
	--mage: 1.00 0.73 0.20;
	--jack: 0.00 0.24 0.65;
	--queen: 0.00 0.60 0.34;
	--king: 0.80 0.00 0.15;

	--max-width: 640px;
	--figure-width: 50%;

	--sans: "MDUI", system-ui, tbudgothic-std, sans-serif;
	--serif: -apple-system-ui-serif, ui-serif, tbudmincho-std, serif;

	--logo: url(/files/junior.svg);
	--logojp: url(/files/junior-jp.svg);
	--club: url(/files/club.svg);
}
@font-face {
	font-family: "MDUI";
	src: url("/files/fonts/MD/MDUI-VF.woff2") format('woff2-variations');
	font-weight: 100 900;
}
::selection {
	background: color(display-p3 var(--blue) / 0.375);
	color: color(display-p3 var(--white) / 1);
}
html {
	scroll-behavior: smooth;
	scroll-padding-top: 5.5em;
}
body {
	margin: 0;
	font-family: var(--sans);
	line-height: 1.5em;
	background: color(display-p3 var(--bg) / 1);
	color: color(display-p3 var(--text) / 1);
}
body::after {
	background: linear-gradient(color(display-p3 var(--blue) / 0.25), color(display-p3 var(--blue) / 0));
	width: 100%;
	height: 100%;
	min-height: 32rem;
	z-index: -100;
	position: fixed;
	content: "";
	top: 0;
	left: 0;
}
a.logo, a.logo:visited, h1 a, h1 a:visited, h2 a, h2 a:visited, h3 a, h3 a:visited {
	color: color(display-p3 var(--text) / 1);
}
a.logo:visited:hover, h1 a:hover, h2 a:hover, h3 a:hover {
	color: color(display-p3 var(--hover) / 1);
}
a {
	color: color(display-p3 var(--link) / 1);
	text-decoration-color: color(display-p3 var(--link) / 0.5);
	text-underline-offset: 2px;
	text-decoration-thickness: 1.5px;
}
a:visited {
	color: color(display-p3 var(--visited) / 1);
	text-decoration-color: color(display-p3 var(--visited) / 0.5);
}
a:hover {
	color: color(display-p3 var(--hover) / 1);
	text-decoration-color: color(display-p3 var(--hover) / 0.75);
	text-decoration: underline;
}
a:active {
	color: color(display-p3 var(--active) / 1) !important;
	text-decoration-color: color(display-p3 var(--active) / 0.5) !important;
}
a:focus {
	outline: none;
}
header {
	position: fixed;
	top: 0;
	margin: 0;
	padding: 0 2em;
	z-index: 1000;
	width: 100%;
	box-sizing: border-box;
	background:
		linear-gradient(color(display-p3 var(--bg) / 0.75), color(display-p3 var(--bg) / 0.375)),
		linear-gradient(color(display-p3 var(--blue) / 0.5), color(display-p3 var(--blue) / 0.25));
	backdrop-filter: blur(12px);
	box-shadow:
		inset 0 1px 0 color(display-p3 var(--light-blue) / 0.5),
		inset 0 -1px 0 color(display-p3 var(--light-blue) / 0.125),
		0 0.5px 0.5px color(display-p3 var(--black) / 0.25),
		0 0.5px 0.5px color(display-p3 var(--bg) / 0.75),
		0 2px 6px color(display-p3 var(--bg) / 0.25),
		0 8px 24px color(display-p3 var(--bg) / 0.5);
}
footer {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: flex-end;
	font-size: 0.75rem;
	margin: auto;
	width: calc(100% - 3rem);
	max-width: var(--max-width);
	box-sizing: border-box;
	padding: 0.5em 0 2rem 0;
	border-top: 1.5px solid color(display-p3 var(--blue) / 0.5);
}
footer p {
	line-height: 1.25em;
	margin: 1em 0;
	text-wrap: balance;
}
footer .logo {
	width: 2rem;
	height: 2rem;
	top: 0;
	padding: 0;
	margin-bottom: 1em;
	background-color: color(display-p3 var(--blue) / 0.5);
	mask: var(--club) no-repeat;
	-webkit-mask: var(--club) no-repeat;
}
footer .logo:active, footer .logo:hover {
	background-color: currentColor;
}
.logo {
	flex: 0 0 auto;
	display: inline-block;
	width: 8rem;
	height: 2rem;
	position: relative;
	top: -0.25em;
	background-color: currentColor;
	mask: var(--logo) no-repeat;
	-webkit-mask: var(--logo) no-repeat;
	text-decoration: none !important;
}
.logo:lang(ja) {
	mask: var(--logojp);
	-webkit-mask: var(--logojp);
}
nav {
	margin: auto;
	width: 100%;
	max-width: var(--max-width);
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem 0;
}
nav ul {
	margin: 0;
	padding: 0;
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	align-items: center;
	list-style-type: none;
}
nav li {
	margin: auto;
}
nav li a, nav li a:visited, a.button, button {
	display: inline-block;
	font-weight: 600;
	white-space: nowrap;
	font-size: 1em;
	line-height: 1em;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	padding: 0.5em 1.25em 0.625em 1.25em;
	margin: 3px;
	border-radius: 4em;
	box-sizing: border-box;
	text-decoration: none !important;
	color: color(display-p3 var(--text) / 1);
	outline: 1.5px solid color(display-p3 var(--link) / 0.5);
	outline-offset: 1.5px;
	border: none;
	background: color(display-p3 var(--link) / 0.25);
}
a.button, button, label, input {
	cursor: pointer;
}
a.button.buy {
	color: color(display-p3 var(--light-green) / 1);
	outline: 1.5px solid color(display-p3 var(--green) / 0.5);
	background: color(display-p3 var(--green) / 0.25);
}
button.destructive {
	color: color(display-p3 var(--active) / 1);
	outline: 1.5px solid color(display-p3 var(--active) / 0.5);
	background: color(display-p3 var(--active) / 0.25);
}
nav li a:hover, a.button:hover, a.button.buy:hover, button:hover, button.destructive:hover {
	color: color(display-p3 var(--text) / 1);
	outline: 1.5px solid color(display-p3 var(--hover) / 0.75);
	background: color(display-p3 var(--hover) / 0.25);
}
nav li a:active, a.button:active, a.button.buy:active, button:active, button.destructive:active {
	color: color(display-p3 var(--active) / 1);
	outline: 1.5px solid color(display-p3 var(--active) / 0.5);
	background: color(display-p3 var(--active) / 0.25);
}
a.button + a.button, button + button {
	margin-left: 0.75rem;
}
main {
	position: relative;
	margin: 2rem;
	padding-top: 3rem;
}
article {
	margin: auto;
	width: 100%;
	max-width: var(--max-width);
}
section {
	position: relative;
	padding-bottom: 0.5rem;
}
img, th:has(img), td:has(img), th:has(input), td:has(input), td[data-action], th:has(select), td:has(select) {
	user-drag: none;
	-webkit-user-drag: none;
	user-select: none;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
}
th:has(img), td:has(img) {
	cursor: default;
	padding: 0.125em;
}
small {
	font-size: 1em;
	color: color(display-p3 var(--lighter-blue) / 0.875);
}
hr {
	margin: 1.5rem 0;
	border-top: none;
	border-right: none;
	border-bottom: 1.5px solid color(display-p3 var(--blue) / 0.5);
	border-left: none;
}
h1 {
	font-weight: 400;
	font-style: italic;
	font-size: 2em;
	margin: 1.5rem 0;
	display: flex;
	justify-content: space-between;
	align-items: baseline;
}
h1 a + a {
	float: right;
	font-family: var(--sans);
	font-size: 0.5em;
	font-weight: bolder;
}
h1, h2 {
	font-family: var(--serif);
	padding-bottom: 0.25em;
	border-bottom: 1.5px solid color(display-p3 var(--blue) / 0.5);
}
ul.toc a, h1 a, h2 a, h3 a, .grid a {
	text-decoration: none !important;
}
p.main-article, p.see-also {
	overflow: hidden;
	font-style: oblique;
	padding: 0.5em 0.875em;
	border-radius: 8px;
	background: color(display-p3 var(--blue) / 0.125);
}
p.main-article:before {
	content: "Main article: "
}
p.see-also:before {
	content: "See also: "
}
p.kome::before {
	content: "※";
	font-weight: 300;
	opacity: 0.5;
	margin-right: 0.25em;
}
p.asterisk::before {
	content: "＊";
	font-weight: 300;
	opacity: 0.5;
	margin-right: 0.25em;
}
/* h2 a::before, h3 a::before{
	content: "§";
	font-weight: lighter;
	color: color(display-p3 var(--blue) / 0.5);
	margin-right: 0.25em;
} */
h2 a:hover::before, h3 a:hover::before {
	color: color(display-p3 var(--hover) / 0.75);
}
h2 a:active::before, h3 a:active::before {
	color: color(display-p3 var(--active) / 0.5);
}
h2 {
	font-weight: 500;
	font-size: 1.5em;
	display: flex;
	flex-direction: row;
	align-items: baseline;
	margin: 1.5rem 0;
}
td ul {
	margin: 0;
}
h3 {
	color: color(display-p3 var(--lighter-blue) / 0.875);
	font-size: 1.25em;
	margin: 0.5em 0;
}
h3 + ul {
	margin-top: 0.5rem;
}
table:not(.data) td:not(:has(img)):not(.contents) {
	font-family: var(--serif);
	font-weight: 900;
	font-size: 2em;
	margin: 0;
	color: color(display-p3 var(--text) / 1);
}
table.data col {
	width: 25%;
}
table.data col:nth-child(2) {
	width: 50%;
}
table.data img {
	aspect-ratio: 3 / 2;
	object-fit: cover;
	border-radius: 0.25rem;
	margin: 0;
	max-width: unset;
}
table.data td:nth-of-type(2), table.data th:nth-of-type(2) {
	text-align: left;
}
table.data td:not(:has(img)), table.data th {
	padding: 0.25rem 0.75rem;
}
table.data td:not(:has(img)) span {
	display: inline-block;
}
table.data td:hover {
	color: color(display-p3 var(--light) / 1);
}
table.data td:hover span {
	color: color(display-p3 var(--light-orange) / 1);
}
table.scoring td.plus {
	font-size: 1em;
	color: color(display-p3 var(--text) / 1);
}
table small:not(.contents small) {
	font-weight: 500;
	font-size: 0.75em;
}
h4 {
	color: color(display-p3 var(--light-blue) / 1);
	font-size: 1em;
	font-weight: bold;
	margin: 0.25em 0;
	line-height: 1em;
}
td.contents h4 {
	font-size: 1.25em;
	color: color(display-p3 var(--text) / 1);
}
td.contents span {
	margin: 0.25em 0;
	line-height: 1.375em;
}
td.contents {
	font-size: 0.875em;
	text-align: left;
	padding: 0.25rem 0.5rem;
}
td:has(.hover) {
	position: relative;
}
td:has(.hover) img {
	max-width: 6rem;
}
td:has(.hover) img.hover {
	display: none;
}
td:has(.hover):hover img:not(.hover) {
	display: none;
}
td:has(.hover):hover img.hover {
	display: inline;
}
section:has(h1) {
	margin-top: 2rem;
}
section:first-of-type:not(:has(h1)) {
	margin-top: 2.5rem;
}
time {
	font-weight: 600;
	color: color(display-p3 var(--text) / 1);
}
p:has(time) {
	color: color(display-p3 var(--lighter-blue) / 0.875);
}
ul + h3, p + h3 {
	margin-top: 1.5rem;
}
sup {
	vertical-align: super;
	font-size: 0.75em;
	font-weight: 600;
	line-height: 1;
}
sup a {
	background: color(display-p3 var(--link) / 0.25);
	border: 1px solid color(display-p3 var(--link) / 0.5);
	margin: 0 0.125em;
	padding: 0.03125em 0.375em;
	border-radius: 0.25em;
	text-decoration: none !important;
}
sup a:visited {
	background: color(display-p3 var(--visited) / 0.25);
	border: 1px solid color(display-p3 var(--visited) / 0.5);
}
sup a:hover {
	background: color(display-p3 var(--hover) / 0.25);
	border: 1px solid color(display-p3 var(--hover) / 0.75);
}
sup a:active {
	background: color(display-p3 var(--active) / 0.25);
	border: 1px solid color(display-p3 var(--active) / 0.5);
}
table sup {
	vertical-align: baseline;
	font-size: 1em;
	font-weight: 800;
	line-height: inherit;
}
table sup a {
	margin: 0.25em;
	padding: 0.0625em 0.375em;
}
.grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
	margin:  0.5rem 0 1rem 0;
}
.grid figure {
	float: none;
	margin: 0;
	clear: none;
	max-width: none;
	width: 100%;
}
.grid figure img {
	aspect-ratio: 3 / 2;
	object-fit: cover;
	cursor: revert;
}
.grid.shop figure img {
	aspect-ratio: 1 / 1;
	object-fit: cover;
	cursor: revert;
	background: linear-gradient(color(display-p3 var(--blue) / 0), color(display-p3 var(--blue) / 0.5));
}
.grid figure p {
	color: color(display-p3 var(--text) / 1);
}
.grid a:hover p  {
	color: color(display-p3 var(--hover) / 1);
}
.grid a:active p  {
	color: color(display-p3 var(--active) / 1);
}
.grid a:hover figure {
	border: 1.5px solid color(display-p3 var(--hover) / 0.75);
}
.grid a:active figure {
	border: 1.5px solid color(display-p3 var(--active) / 0.5);
}
.grid figure:hover img {
	opacity: 0.875;
}
.grid figure:active img {
	opacity: 0.5;
}
figure {
	float: right;
	margin: 0 0 1rem 1rem;
	clear: both;
	max-width: var(--figure-width);
	width: 100%;
	box-sizing: border-box;
	border-radius: 8px;
	padding: 1.5px;
	border: 1.5px solid color(display-p3 var(--blue) / 0.5);
	/* transition: max-width 100ms; */
}
figure.expanded {
	max-width: 100%;
	float: none;
	margin: 0 0 0 auto;
}
figure img {
	width: 100%;
	border-radius: 5px;
	cursor: zoom-in;
}
figure:has(img:hover) {
	border: 1.5px solid color(display-p3 var(--hover) / 0.75);
}
figure:has(figcaption) img {
	border-radius: 5px 5px 1.5px 1.5px;
}
figure.expanded img {
	cursor: zoom-out;
}
figcaption {
	font-style: oblique !important;
	font-size: 0.875em;
	line-height: 1.375em;
	margin: 0.5em 0;
}
figcaption p {
	margin: 0.25em 0.5em;
}
table {
	touch-action: manipulation;
	line-height: 0;
	table-layout: fixed;
	width: 100%;
	text-align: center;
	border-collapse: separate;
	background: none;
	margin: 1rem 0;
	border: 1.5px solid color(display-p3 var(--blue) / 0.5);
	border-radius: 8px;
	border-spacing: 1.5px;
}
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}
input[type="number"] {
	-moz-appearance: textfield;
}
select {
	max-width: fit-content;
}
table input[type="number"], select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	background: none;
	color: inherit;
	outline: none;
	border: none;
	border-radius: 0;
	font-family: inherit;
	font-weight: inherit;
	font-size: inherit;
	text-align: center;
	width: 100%;
	margin: 0;
	height: 100%;
}
input[type="checkbox"] {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	width: 2em;
	height: 2em;
	margin: 0;
	background: color(display-p3 var(--blue) / 1);
	border-radius: 0.125em;
	border: 1.5px solid color(display-p3 var(--blue) / 1);
	background-color: color(display-p3 var(--bg) / 1);
}
td.circle input[type="checkbox"] {
	border-radius: 100%;
}
td.diamond input[type="checkbox"] {
	transform: rotate(45deg);
	margin: 0 0.75em;
}
td.diamond {
	line-height: 0;
}
input[type="checkbox"]:hover {
	border-color: color(display-p3 var(--text) / 1);
}
input[type="checkbox"]:checked {
	border: none;
	background-color: color(display-p3 var(--yellow) / 1);
}
input[type="checkbox"]:checked:hover {
	border-color: color(display-p3 var(--white) / 1);
	background-color: color(display-p3 var(--yellow) / 1);
}
input[type="checkbox"]:active,
input[type="checkbox"]:disabled,
input[type="checkbox"]:checked:active {
	border-color: color(display-p3 var(--yellow) / 1);
	background-color: color(display-p3 var(--yellow) / 0.5);
}
table tr.half {
	font-size: 0.5em;
}
table tr.three-quarters {
	font-size: 0.75em;
}
table.scoring:has(img) th:first-child {
	text-align: left;
	padding-left: 0.5em;
	padding-right: 0.5em;
}
tr:first-of-type td:first-child,
tr:first-of-type th:first-child {
	border-top-left-radius: 5px;
}
tr:first-of-type td:last-child,
tr:first-of-type th:last-child {
	border-top-right-radius: 5px;
}
tr:last-of-type td:first-child {
	border-bottom-left-radius: 5px;
}
tr:last-of-type td:last-child {
	border-bottom-right-radius: 5px;
}
table img {
	width: 100%;
	max-width: 4rem;
	margin: 0.5rem auto;
}
td.ghost img {
	opacity: 0.8;
}
td.ghost + td.ghost img {
	opacity: 0.6;
}
td.ghost + td.ghost + td.ghost img {
	opacity: 0.4;
}
td.ghost + td.ghost + td.ghost + td.ghost img {
	opacity: 0.2;
}
th.green, tr.green th{
	background-color: color(display-p3 var(--green) / 0.5);
}
td.green:not(:empty):hover {
	background-color: color(display-p3 var(--green) / 0.375);
}
td.green {
	background-color: color(display-p3 var(--green) / 0.25);
}
th.purple, tr.purple th {
	background-color: color(display-p3 var(--purple) / 0.5);
}
td.purple:not(:empty):hover {
	background-color: color(display-p3 var(--purple) / 0.375);
}
td.purple {
	background-color: color(display-p3 var(--purple) / 0.25);
}
th.orange, tr.orange th {
	background-color: color(display-p3 var(--orange) / 0.5);
}
td.orange:not(:empty):hover {
	background-color: color(display-p3 var(--orange) / 0.375);
}
td.orange {
	background-color: color(display-p3 var(--orange) / 0.25);
}
td.green:has(.hover) {
	background: linear-gradient(color(display-p3 var(--green) / 0.5), color(display-p3 var(--green) / 0.25));
}
td.purple:has(.hover) {
	background: linear-gradient(color(display-p3 var(--purple) / 0.5), color(display-p3 var(--purple) / 0.25));
}
td.orange:has(.hover) {
	background: linear-gradient(color(display-p3 var(--orange) / 0.5), color(display-p3 var(--orange) / 0.25));
}
th:not(:empty):active, td:not(:empty):not(:has(input)):active {
	opacity: 0.5;
}
th:not(:empty):active,
td:not(:empty):active,
td:not(:empty):active h3,
td:not(:empty):active h4 {
	color: color(display-p3 var(--light-blue) / 1) !important;
}
th:active img, td:active img {
	transform: scale(0.9375);
}
td:not(td[colspan="3"]):has(img:nth-of-type(2)) img {
	margin: 0.25em -0.5625em;
}
td:not(td[colspan="3"]):has(img:nth-of-type(3)) img {
	margin: 0.25em -1.125em;
}
td:not(td[colspan="3"]):not(td[colspan="3"]):has(img:nth-of-type(6)) img {
	margin: 0.25em -1.5em;
}
td:has(img:nth-of-type(2)) img {
	margin: 0.25em -0.5em;
}
td:has(img:nth-of-type(6)) img {
	margin: 0.25em -1.25em;
}
tr.overlap td img {
	margin: 0.25em -1.25em !important;
}
td span {
	font-size: 0.875em;
	display: block;
	margin: 0.5em auto;
	line-height: 1em;
}
.inline img, .inline span {
	display: inline-block;
	vertical-align: middle;
}
td, th {
	top: 0;
	height: 2em;
}
th {
	font-weight: 700;
	background-color: color(display-p3 var(--blue) / 0.5);
}
td {
	font-weight: 600;
	color: color(display-p3 var(--text) / 0.75);
	background-color: color(display-p3 var(--blue) / 0.125);
}
td:not(:empty):hover {
	background-color: color(display-p3 var(--blue) / 0.25);
}
td:not(:empty):hover span {
	color: color(display-p3 var(--text) / 1);
}
ul, ol {
	padding: 0;
	list-style-position: outside;
}
ul {
	list-style-type: square;
}
ul ul {
	padding-left: 1.5em;
}
ul li::marker {
	color: color(display-p3 var(--blue) / 0.5);
}
li {
	margin-left: 1.125rem;
	text-indent: -0.125rem;
}
ul.split {
	column-count: 3;
	column-gap: 1rem;
}
strong:has(.translation) {
	color: color(display-p3 var(--light-orange) / 1);
}
.tag {
	font-weight: bolder;
	font-style: normal;
	font-size: 0.75em;
	line-height: 1em;
	vertical-align: middle;
	text-transform: uppercase;
	color: color(display-p3 var(--light-green) / 1);
	background: color(display-p3 var(--green) / 0.25);
	border-radius: 1em;
	padding: 0.25em 0.75em;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
	word-break: keep-all;
	line-break: strict;
}
.tag.new {
	color: color(display-p3 var(--yellow) / 1);
	background: color(display-p3 var(--orange) / 0.25);
}
.tag.broken {
	color: color(display-p3 var(--red) / 1);
	background: color(display-p3 var(--red) / 0.25);
}
.translation {
	font-weight: normal;
	color: color(display-p3 var(--orange) / 1);
	background: color(display-p3 var(--orange) / 0.25);
	border-radius: 0.25em;
	padding: 0.125em 0.375em;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
	word-break: keep-all;
	line-break: strict;
}
aside .translation, figure .translation {
	color: color(display-p3 var(--orange) / 1);
	background: none;
	padding: 0;
}
/* External Links */
a[href]:not([href*="junior.cards"]):not([href=""]):not([href^="/"]):not([href^="#"]):not(.button):not(.grid a)::after,
.grid a[href]:not([href*="junior.cards"]):not([href=""]):not([href^="/"]):not([href^="#"]) p::after {
	content: " ↗";
	vertical-align: 0.3125em;
	font-size: 0.75em;
	font-weight: 600;
	line-height: 1.375em;
}
/* PDF Download */
a[href$=".pdf"] {
	font-weight: 600;
}
/* Chat UI */
aside {
	clear: both;
	max-width: 512px;
	margin: 2rem auto;
}
aside img {
	display: inline-block;
	width: 80px;
}
blockquote {
	display: block;
	padding: 0.5em 0.875em;
	width: fit-content;
	max-width: 65%;
	font-size: 0.875em;
	line-height: 1.375em;
	margin: 0.5em 0;
	box-shadow:
		inset 0 1px 0.5px color(display-p3 var(--blue) / 1),
		inset 0 0 0.5px 1px color(display-p3 var(--blue) / 0.375),
		inset 0 -8px 24px color(display-p3 var(--blue) / 0.375);
	color: color(display-p3 var(--lighter-blue) / 1);
	background-color: color(display-p3 var(--blue) / 0.0625);
	position: relative;
	border-radius: 1.125em;
}
cite {
	font-style: normal;
}
li blockquote {
	margin-left: 0;
	border-top-left-radius: 0.125rem;
}
li:has(blockquote) {
	text-indent: 0;
}
ul:has(blockquote) li {
	margin: 1em 0;
}
ul:has(blockquote) {
	list-style: none;
	margin: 0;
	padding: 0;
}
aside .question::before, aside .answer::before {
	content: "";
	position: absolute;
	bottom: 0;
	display: inline-block;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background-size: 90% auto;
	background-position: center;
	background-repeat: no-repeat;
}
aside.group .question::before, aside.group .answer::before {
	display: block;
}
aside.group .question:has(+ .question), aside.group .question + .question {
	margin-top: 1em;
}
aside .question::before, aside .answer::before {
	display: none;
}
aside .question:not(:has(+ .question))::before, aside .answer:not(:has(+ .answer))::before {
	display: block;
}
aside .question + .question,
aside .answer + .answer {
	margin-top: 0.125em;
}
aside .question:not(:has(+ .answer)),
aside .answer:not(:has(+ .question)) {
	margin-bottom: 0.125em;
}
aside .question:not(:has(+ .question)), aside.group .question {
	border-bottom-left-radius: 0.125rem;
}
aside .answer:not(:has(+ .answer)) {
	border-bottom-right-radius: 0.125rem;
}
aside .question {
	margin-left: 48px;
	box-shadow:
		inset 0 1px 0.5px color(display-p3 var(--purple) / 1),
		inset 0 0 0.5px 1px color(display-p3 var(--purple) / 0.75),
		inset 0 -8px 24px color(display-p3 var(--purple) / 0.75);
	color: color(display-p3 var(--light-purple) / 1);
	background-color: color(display-p3 var(--purple) / 0.125);
}
aside .question::before {
	box-shadow:
		inset 0 1px 0.5px color(display-p3 var(--purple) / 1),
		inset 0 0 0.5px 1px color(display-p3 var(--purple) / 0.75);
	left: -48px;
}
aside .answer {
	margin-left: auto;
	margin-right: 48px;
	box-shadow:
		inset 0 1px 0.5px color(display-p3 var(--green) / 1),
		inset 0 0 0.5px 1px color(display-p3 var(--green) / 0.75),
		inset 0 -8px 24px color(display-p3 var(--green) / 0.75);
	color: color(display-p3 var(--light-green) / 1);
	background-color: color(display-p3 var(--green) / 0.125);
}
aside .answer::before {
	box-shadow:
		inset 0 1px 0.5px color(display-p3 var(--green) / 1),
		inset 0 0 0.5px 1px color(display-p3 var(--green) / 0.75);
	right: -48px;
}
aside:not(:has(.question)) .answer {
	left: -24px;
	margin-left: auto;
	margin-right: auto;
}
aside:not(:has(.answer)) .question {
	right: -24px;
	margin-left: auto;
	margin-right: auto;
}
aside .question small {
	color: color(display-p3 var(--light-purple) / 0.75);
}
aside .answer small {
	color: color(display-p3 var(--light-green) / 0.75);
}
aside .crane::before {
	background-image: url("/files/characters/crane-neutral.webp");
	background-color: color(display-p3 var(--crane) / 1);
}
aside .boar::before {
	background-image: url("/files/characters/boar-neutral.webp");
	background-color: color(display-p3 var(--boar) / 1);
}
aside .deer::before {
	background-image: url("/files/characters/deer-smile.webp");
	background-color: color(display-p3 var(--deer) / 1);
}
aside .frog::before {
	background-image: url("/files/characters/frog-smile.webp");
	background-color: color(display-p3 var(--frog) / 1);
}
aside .tiger::before {
	background-image: url("/files/characters/tiger-smile.webp");
	background-color: color(display-p3 var(--tiger) / 1);
}
aside .dragon::before {
	background-image: url("/files/characters/dragon-smile.webp");
	background-color: color(display-p3 var(--dragon) / 1);
}
aside .fox::before {
	background-image: url("/files/characters/fox-smile.webp");
	background-color: color(display-p3 var(--fox) / 1);
}
aside .tanuki::before {
	background-image: url("/files/characters/tanuki-smile.webp");
	background-color: color(display-p3 var(--tanuki) / 1);
}
aside .fool::before {
	background-image: url("/files/characters/fool-smile.webp");
	background-color: color(display-p3 var(--fool) / 1);
}
aside .mage::before {
	background-image: url("/files/characters/mage-smile.webp");
	background-color: color(display-p3 var(--mage) / 1);
}
aside .jack::before {
	background-image: url("/files/characters/jack-smile.webp");
	background-color: color(display-p3 var(--jack) / 1);
}
aside .queen::before {
	background-image: url("/files/characters/queen-smile.webp");
	background-color: color(display-p3 var(--queen) / 1);
}
aside .king::before {
	background-image: url("/files/characters/king-smile.webp");
	background-color: color(display-p3 var(--king) / 1);
}
td.highlight {
	background-color: color(display-p3 var(--blue) / 0.5);
}
td.highlight:hover {
	background-color: color(display-p3 var(--blue) / 0.75);
}
td.hold {
	background-color: color(display-p3 var(--red) / 0.25);
}
td.hold:hover {
	background-color: color(display-p3 var(--red) / 0.375);
}
td.rolling img {
	opacity: 0.5;
	transition: opacity 250ms;
}
@media (max-width: 640px) {
	header {
		padding: 0 1em;
	}
	footer p {
		max-width: 320px;
	}
	main {
		margin: 1em;
	}
	.grid {
		grid-template-columns: repeat(2, 1fr);
	}
	table {
		font-size: 2.125vw;
		word-wrap: break-word;
		overflow-wrap: break-word;
	}
	table h4 {
		font-size: 1.25em;
	}
	table sup {
		display: none;
	}
	table:has(img:nth-of-type(2)) img {
		width: 4.5em;
	}
}
@media (max-width: 496px) {
	.logo {
		top: -0.125em;
		width: 2.25em;
		height: 2.25em;
		mask: var(--club);
		-webkit-mask: var(--club);
	}
	nav li a, nav li a:visited, a.button, button {
		padding: 0.5em 0.75em 0.625em 0.75em;
	}
}
@media (max-width: 360px) {
	footer {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}
	footer div {
		margin-top: 1rem;
	}
	footer .logo {
		top: 1rem;
	}
	figure {
		max-width: 100%;
		float: none;
		margin: 1em 0;
	}
	nav li a, nav li a:visited, a.button, button {
		border-radius: 0.375em;
		padding: 0.5em 0.5em 0.625em 0.5em;
	}
}
@media print {
	body {
		background: none !important;
	}
	.translation,
	header,
	.main-article,
	footer p.contact,
	section:has(#related),
	a.button,
	button,
	blockquote::before {
		display: none !important;
	}
	blockquote {
		box-shadow: none !important;
		border: 1.5px solid black;
	}
	body, a, small, strong, em, h1, h2, h3, h4, blockquote, span, p, time::before, table, th, td {
		color: black !important;
		text-decoration: none !important;
	}
	section {
		padding-bottom: 0;
	}
	table, th, td {
		break-inside: avoid;
		page-break-inside: avoid;
		border-collapse: collapse;
		border: 1.5px solid black !important;
	}
	footer {
		border-bottom: 1.5px solid black !important;
	}
	h1, h2, hr {
		border-bottom: 1.5px solid black !important;
	}
	main {
		padding-top: 0 !important;
	}
}