:root {
	color-scheme: dark;
	font-family: system-ui, sans-serif;
}

body {
	box-sizing: border-box;
	display: grid;
	min-height: 100vh;
	min-height: 100dvh;
	margin: 0;
	padding: 1rem;
	place-items: center;
	background: #292929;
	color: #fff;
}

.age-check-background {
	overflow: hidden;
	position: fixed;
	inset: 0;
	pointer-events: none;
	user-select: none;
}

.age-check-track {
	position: absolute;
	inset: -32px auto -32px -32px;
	display: flex;
	width: max-content;
	filter: grayscale(1) blur(2px) brightness(.55);
	animation: age-check-scroll 300s linear infinite;
}

.age-check-tiles {
	display: grid;
	flex: none;
	width: max(320vw, 320vh);
	min-width: calc(100vw + 64px);
	grid-template-columns: repeat(16, minmax(0, 1fr));
	grid-template-rows: repeat(4, minmax(0, 1fr));
}

.age-check-tile {
	overflow: hidden;
	background: #444;
}

.age-check-tile img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

@keyframes age-check-scroll {
	from { transform: translateX(-50%); }
	to { transform: translateX(0); }
}

.age-check-panel {
	position: relative;
	box-sizing: border-box;
	width: min(100%, 29rem);
	padding: clamp(1.25rem, 5vw, 2.5rem);
	border: 1px solid #ffffff40;
	border-radius: 1rem;
	background: #161616ed;
	text-align: center;
}

.age-check-panel h1 {
	margin: 0;
}

.age-check-panel p {
	margin: 1rem 0 1.5rem;
	line-height: 1.65;
}

.age-check-panel form {
	display: grid;
	gap: .75rem;
}

.age-check-panel button {
	min-height: 3rem;
	padding: .5rem;
	border: 1px solid #aaa;
	border-radius: .5rem;
	background: transparent;
	color: inherit;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.age-check-panel button[value="adult"] {
	background: #fff;
	color: #191919;
}

.age-check-panel button:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
	.age-check-track { animation: none; }
}
