html, body {
	height: 100%;
	color: #fff8ea;
	font-family: "Avenir Next", "Segoe UI", sans-serif;
}
html {
	background: #111313;
}
body {
	display: grid;
	place-items: center;
	min-height: 100dvh;
	padding: 12px;
	overflow: hidden;
	background: transparent;
}
.stage {
	position: relative;
	width: min(440px, 100%);
	height: min(880px, calc(100dvh - 24px));
	padding: 20px 58px 26px;
	border-radius: 0;
	background:
		url(../../../assets/game-match.webp) left center / auto 128% no-repeat,
		url(../../../assets/game-match.webp) right center / auto 128% no-repeat;
	box-shadow: 0 18px 36px rgba(90, 40, 10, .22);
}
.play {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 0;
	padding: 14px 12px 10px;
	overflow: hidden;
	border-radius: 0;
	background:
		linear-gradient(180deg, rgba(16, 18, 40, .28), rgba(8, 16, 28, .08) 30%, rgba(8, 16, 28, .2)),
		url(../images/cover.jpg) center / cover no-repeat;
	box-shadow: inset 0 0 28px 6px rgba(255, 176, 90, .42);
}
.play::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 3;
	pointer-events: none;
	border-radius: inherit;
	box-shadow: inset 0 0 18px 2px rgba(255, 214, 150, .28);
}
.garland {
	position: absolute;
	inset: 0;
	z-index: 4;
	pointer-events: none;
}
.gem {
	position: absolute;
	width: 58px;
	height: 58px;
	background-size: cover;
	filter: drop-shadow(0 8px 6px rgba(70, 24, 8, .35));
}
.g1 { background-image: url(../images/0.png); left: -2px; top: 22%; width: 52px; height: 52px; transform: rotate(-18deg); }
.g2 { background-image: url(../images/2.png); right: 0; top: 18%; width: 44px; height: 44px; transform: rotate(14deg); }
.g3 { background-image: url(../images/1.png); left: -6px; top: 46%; transform: rotate(12deg); }
.g4 { background-image: url(../images/4.png); right: -4px; top: 44%; width: 62px; height: 62px; transform: rotate(-16deg); }
.g5 { background-image: url(../images/3.png); left: 2px; bottom: 16px; width: 50px; height: 50px; transform: rotate(-10deg); }
.g6 { background-image: url(../images/0.png); right: 2px; bottom: 10px; transform: rotate(18deg); }
.g7 { background-image: url(../images/2.png); left: 18px; top: -8px; width: 40px; height: 40px; transform: rotate(8deg); }
.g8 { background-image: url(../images/1.png); right: 16px; bottom: -8px; width: 44px; height: 44px; transform: rotate(-18deg); }
.bar, .hud {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.brand {
	margin: 0;
	font-size: 18px;
	letter-spacing: .04em;
	text-shadow: 0 2px 8px rgba(0, 0, 0, .45);
}
.menu-btn, .sheet button {
	border: 0;
	border-radius: 999px;
	background: linear-gradient(180deg, #fff6c4 0%, #ffb03a 48%, #ef6d2f 100%);
	color: #5a240c;
	font: 700 14px/1 "Avenir Next", "Segoe UI", sans-serif;
	padding: 10px 16px;
	cursor: pointer;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85), 0 3px 0 #c84e16;
}
.hud {
	margin-top: 12px;
	font-size: 13px;
	letter-spacing: .04em;
	text-shadow: 0 2px 8px rgba(0, 0, 0, .45);
}
.hud p { margin: 0; }
.hud-score {
	display: flex;
	flex-direction: column;
	align-items: center;
	font-size: 12px;
}
.hud-score span {
	color: #fff36a;
	font-size: 28px;
	line-height: 1;
}
.score-select {
	position: relative;
	z-index: 2;
	min-height: 22px;
	margin: 8px 0 0;
	opacity: 0;
	color: #fff;
	text-align: center;
	font-size: 15px;
}
.board {
	position: relative;
	flex: 1;
	min-height: 0;
	margin-top: 8px;
	overflow: hidden;
}
.star-list {
	position: absolute;
	right: auto;
	bottom: 8px;
	left: 8px;
	width: 7.5rem;
	height: 7.5rem;
}
.sheet {
	position: absolute;
	z-index: 5;
	inset: 12px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 14px;
	padding: 28px 22px;
	border-radius: 0;
	background:
		linear-gradient(180deg, rgba(255, 236, 214, .94), rgba(255, 214, 176, .9));
	color: #5a240c;
	box-shadow: 0 16px 30px rgba(40, 16, 8, .28);
}
.sheet[hidden] { display: none; }
.sheet-title {
	margin: 0;
	font-size: 28px;
	text-align: center;
}
.sheet-copy {
	margin: 0;
	font-size: 15px;
	line-height: 1.5;
	text-align: center;
}
.sheet button { align-self: center; min-width: 180px; }
.sheet .ghost {
	background: transparent;
	color: #9a3d12;
	box-shadow: inset 0 0 0 2px #ef8a3a;
}
