/* Base */
:root {
	--color-bg: #0b0b14;
	--color-frame: #1c1c2e;
	--color-text: #d8d8e8;
	--color-muted: #7a7a96;
	--color-p1: #ff8080;
	--color-p2: #80b8ff;
	--font-pixel: 'Press Start 2P', ui-monospace, monospace;
}
*,
*::before,
*::after {
	box-sizing: border-box;
}
body {
	margin: 0;
}

/* Page */
.page {
	min-height: 100vh;
	display: grid;
	place-items: center;
	background: radial-gradient(ellipse at center, #1a1a2e 0%, var(--color-bg) 70%);
	color: var(--color-text);
	font-family: var(--font-pixel);
}

/* Arcade Cabinet */
.arcade {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.25rem;
	padding: 1rem;
}
.arcade__screen {
	position: relative;
	width: min(94vw, calc((100vh - 190px) * 5 / 3));
	aspect-ratio: 5 / 3;
	border: 6px solid var(--color-frame);
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 0 0 2px #000, 0 0 40px rgba(80, 140, 255, 0.15), 0 20px 60px rgba(0, 0, 0, 0.6);
}
.arcade__canvas {
	display: block;
	width: 100%;
	height: 100%;
	image-rendering: pixelated;
	image-rendering: crisp-edges;
}
.arcade__crt {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		repeating-linear-gradient(to bottom, rgba(0, 0, 0, 0.18) 0, rgba(0, 0, 0, 0.18) 1px, transparent 1px, transparent 3px),
		radial-gradient(ellipse at center, transparent 60%, rgba(0, 0, 0, 0.45) 100%);
	mix-blend-mode: multiply;
}

/* Controls Legend */
.controls {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.75rem 2rem;
	max-width: 900px;
	font-size: 0.55rem;
	line-height: 1.9;
}
.controls__title {
	margin: 0 0 0.35rem;
	font-size: 0.7rem;
}
.controls__player--p1 .controls__title {
	color: var(--color-p1);
}
.controls__player--p2 .controls__title {
	color: var(--color-p2);
}
.controls__row {
	margin: 0;
}
.controls__meta {
	grid-column: 1 / -1;
	margin: 0;
	text-align: center;
	color: var(--color-muted);
}
.controls kbd {
	display: inline-block;
	min-width: 1.6em;
	margin-right: 0.2em;
	padding: 0.1em 0.35em;
	border: 1px solid #3a3a55;
	border-bottom-width: 3px;
	border-radius: 3px;
	background: #1c1c2e;
	font-family: inherit;
	text-align: center;
	color: #fff;
}
@media (max-width: 700px) {
	.controls {
		grid-template-columns: 1fr;
	}
}
