*, *::before, *::after {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: 'Roboto Mono', monospace;
	font-size: 16px;
	line-height: 1.6;
	color: #212529;
	background: #fff;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	color: inherit;
}

h1, h2, h3 {
	line-height: 1.25;
	margin: 0 0 .5rem;
}

.container {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 16px;
}

.muted {
	color: #6c757d;
}

.small {
	font-size: .875rem;
}

/* Header: centered logo + tagline */
.site-header {
	text-align: center;
	padding: 50px 0 10px;
}

.site-header img {
	width: 200px;
	margin: 0 auto 20px;
}

.site-header p {
	margin: 0;
}

/* Game grid: 1 column on mobile, 3 on desktop */
.games {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
	padding: 48px 0;
}

@media (min-width: 768px) {
	.games {
		grid-template-columns: repeat(3, 1fr);
	}
}

.card {
	display: block;
	border: 1px solid #e5e5e5;
	border-radius: 6px;
	overflow: hidden;
	text-decoration: none;
	transition: transform .15s ease, box-shadow .15s ease;
}

.card:hover,
.card:focus-visible {
	transform: translateY(-4px);
	box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
}

.cover {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	background: #f1f1f1;
}

.card-body {
	padding: 16px;
}

.card-body h2 {
	font-size: 1.1rem;
}

.card-body p {
	margin: 0;
}

/* Inner pages */
.page {
	padding-top: 32px;
	padding-bottom: 48px;
}

.page-logo {
	display: block;
	width: max-content;
	margin: 0 auto;
}

.page-logo img {
	width: 120px;
	margin: 0 auto 24px;
}

.back {
	display: inline-block;
	margin-bottom: 24px;
}

.game {
	display: grid;
	gap: 32px;
}

@media (min-width: 768px) {
	.game {
		grid-template-columns: 7fr 5fr;
		align-items: start;
	}
}

.game .cover {
	border-radius: 6px;
}

/* Stacked images (cover + gameplay); text goes below them on mobile */
.media {
	display: grid;
	gap: 24px;
}

.btn {
	display: inline-block;
	padding: 8px 16px;
	margin: 0 8px 8px 0;
	border: 1px solid #212529;
	border-radius: 4px;
	text-decoration: none;
	font-size: .9rem;
}

.btn-dark {
	background: #212529;
	color: #fff;
}

.page > header {
	margin-bottom: 48px;
}

section {
	margin-bottom: 48px;
}

section .games {
	padding-top: 16px;
}

.list {
	list-style: none;
	padding: 0;
}

.list li {
	margin-bottom: 8px;
}

.site-footer {
	text-align: center;
	padding: 24px 0;
}
