:root {
	color-scheme: light dark;
	font-family: Garamond, Georgia, serif;
	color: light-dark(#212221, #efefef);
	background: light-dark(#d0d0d0, #111211);
}

* {
	box-sizing: border-box;
}

html,
body {
	margin: 0;
}

#rosary,
#scene {
	width: 100%;
	height: 100dvh;
}

#scene {
	position: relative;
	overflow: hidden;
	touch-action: none;
	user-select: none;
}

canvas {
	display: block;
	width: 100%;
	height: 100%;
}

#splash {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-evenly;
	padding: max(2rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right))
		max(2rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
	background: light-dark(#111211, #efefef);
	color: light-dark(#efefef, #111211);
	text-align: center;
}

h1 {
	font-family: "Old English Text MT", serif;
	font-size: 2rem;
	margin: 0;
}

#splash p {
	font-size: 1.5rem;
	margin: 0;
}

#feedback,
.no-script {
	position: fixed;
	z-index: 3;
	inset-inline: 0.5rem;
	bottom: max(0.75rem, env(safe-area-inset-bottom));
	width: fit-content;
	max-width: calc(100% - 1rem);
	margin: 0 auto;
	padding: 0.75rem;
	background: light-dark(#efefef, #212221);
	color: light-dark(#212221, #efefef);
	border: 1px solid currentColor;
}

#splash[hidden],
#feedback[hidden] {
	display: none;
}

.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}
