:root {
	--bg: #0a0a18;
	--bg-panel: #13132a;
	--text: #e4e4f2;
	--muted: #9a9ac0;
	--cyan: #2de2e6;
	--magenta: #ff3ea5;
	--yellow: #f9f871;
	--pixel: 'Press Start 2P', monospace;
	--crt: 'VT323', monospace;
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
	margin: 0;
	min-height: 100vh;
	color: var(--text);
	font-family: var(--crt);
	font-size: 22px;
	line-height: 1.3;
	background:
		radial-gradient(ellipse at top, rgba(45, 226, 230, .12), transparent 60%),
		linear-gradient(rgba(255, 62, 165, .05) 1px, transparent 1px) 0 0 / 100% 32px,
		linear-gradient(90deg, rgba(255, 62, 165, .05) 1px, transparent 1px) 0 0 / 32px 100%,
		var(--bg);
}

/* CRT scanlines over everything */
body::after {
	content: '';
	position: fixed;
	inset: 0;
	pointer-events: none;
	background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, .22) 0 1px, transparent 1px 3px);
	z-index: 10;
}

a { color: inherit; }

/* Header */
.marquee {
	text-align: center;
	padding: 56px 16px 24px;
}

.player {
	margin: 0 0 28px;
	font-family: var(--pixel);
	font-size: 12px;
	color: var(--magenta);
	letter-spacing: 2px;
}

.player span { color: var(--text); margin-left: 8px; }

h1 {
	margin: 0;
	font-family: var(--pixel);
	font-size: clamp(28px, 7vw, 64px);
	line-height: 1.25;
	color: var(--cyan);
	text-transform: uppercase;
	text-shadow: 0 0 6px rgba(45, 226, 230, .8), 0 0 24px rgba(45, 226, 230, .45), 4px 4px 0 var(--magenta);
}

.tagline {
	max-width: 36em;
	margin: 24px auto 0;
	color: var(--muted);
}

.press-start {
	margin: 32px 0 0;
	font-family: var(--pixel);
	font-size: 14px;
	color: var(--yellow);
	text-transform: uppercase;
	animation: blink 1.2s steps(1) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

/* Game grid */
.cabinets {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 28px;
	max-width: 1180px;
	margin: 24px auto 0;
	padding: 0 16px;
}

.cabinet {
	display: flex;
	flex-direction: column;
	padding: 16px;
	text-decoration: none;
	background: var(--bg-panel);
	border: 3px solid #2a2a52;
	box-shadow: 6px 6px 0 #05050d;
	transition: transform .12s, border-color .12s, box-shadow .12s;
}

.cabinet:hover,
.cabinet:focus-visible {
	outline: none;
	transform: translate(-3px, -3px);
	border-color: var(--magenta);
	box-shadow: 9px 9px 0 #05050d, 0 0 24px rgba(255, 62, 165, .35);
}

.stage {
	font-family: var(--pixel);
	font-size: 10px;
	color: var(--magenta);
	letter-spacing: 1px;
	text-transform: uppercase;
}

.screen {
	display: block;
	margin: 12px 0 16px;
	aspect-ratio: 5 / 3;
	overflow: hidden;
	background: #000;
	border: 3px solid #000;
	outline: 2px solid #2a2a52;
}

.screen img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top left;
	image-rendering: auto;
	filter: saturate(1.1) contrast(1.05);
}

.cabinet h2 {
	margin: 0;
	font-family: var(--pixel);
	font-size: 16px;
	line-height: 1.4;
	color: var(--yellow);
	text-transform: uppercase;
}

.cabinet p {
	flex: 1;
	margin: 12px 0 18px;
	color: var(--text);
}

.play {
	align-self: flex-start;
	padding: 10px 14px;
	font-family: var(--pixel);
	font-size: 11px;
	text-transform: uppercase;
	color: var(--bg);
	background: var(--cyan);
	box-shadow: 3px 3px 0 var(--magenta);
}

.cabinet:hover .play,
.cabinet:focus-visible .play { background: var(--yellow); }

/* Footer */
footer {
	padding: 56px 16px 40px;
	text-align: center;
	color: var(--muted);
}

footer p { margin: 6px 0; }

footer a {
	font-family: var(--pixel);
	font-size: 11px;
	color: var(--cyan);
	text-decoration: none;
}

footer a:hover { color: var(--yellow); }

@media (prefers-reduced-motion: reduce) {
	.press-start { animation: none; }
	.cabinet { transition: none; }
}
