html {
	scroll-padding-top: env(safe-area-inset-top, 0px);
	min-height: 100%;
	background: var(--b2);
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	height: 100vh;
	overflow: hidden;
	color: var(--fg);
	background: linear-gradient(var(--b1), var(--b2));
	font: 16px/1.5 Inter, system-ui, "Segoe UI", Arial, sans-serif;
}

main {
	--page-margin: clamp(24px, 4vw, 64px);
	display: grid;
	grid-template-columns: minmax(0, 1fr) clamp(340px, 28vw, 440px);
	align-items: center;
	gap: 24px;
	height: 100vh;
	max-width: 1500px;
	margin: 0 auto;
	padding: 16px var(--page-margin);
}

@media (max-width: 900px) {
	/* The stacked layout is taller than the screen: the page has to scroll. */
	body {
		height: auto;
		min-height: 100vh;
		overflow-x: hidden;
		overflow-y: auto;
	}

	main {
		display: block;
		height: auto;
		padding: 16px 18px 24px;
	}
}

h1 {
	font-size: 2rem;
	line-height: 1.15;
	letter-spacing: -.02em;
	font-weight: 700;
	margin: 0 0 6px;
}

.sub {
	margin: 0;
	color: var(--mut);
	font-size: 1.05rem;
}

.stage {
	position: relative;
	height: 100%;
}

@media (max-width: 900px) {
	.stage {
		height: auto;
		aspect-ratio: 10 / 9;
		margin: 0 -18px 6px;
	}
}

.shadow {
	position: absolute;
	left: 10%;
	right: 10%;
	bottom: 4%;
	height: 12%;
	background: radial-gradient(ellipse at center, var(--sh), transparent 70%);
	filter: blur(8px);
}

/* The canvas covers the whole viewport, over the stage but under the card, so that a zoomed wheel is never cropped. */
#wheel-canvas-holder {
	position: fixed;
	inset: 0;
	z-index: 1;
	pointer-events: none;
}

#wheel-canvas-holder canvas {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}
