.root-font {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

:root {
	--bg-start: #f8fafc;
	--bg-end: #eef2ff;
	--card-bg: #ffffff;
	--muted: #6b7280;
	--accent: #7c3aed; /* violet-600 */
	--accent-2: #06b6d4; /* teal-500 */
	--shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
	--radius: 12px;
}

html, body {
	height: 100%;
	margin: 0;
	padding: 0;
}

body {
	background: linear-gradient(180deg, var(--bg-start), var(--bg-end));
	color: #0f172a;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	padding: 40px 20px;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Card layout */
.card {
	background: linear-gradient(180deg, var(--card-bg), #fbfdff);
	box-shadow: var(--shadow);
	border-radius: var(--radius);
	max-width: 860px;
	width: 100%;
	margin: 24px auto;
	text-align: center;
	padding: 28px;
	transition: transform 220ms ease, box-shadow 220ms ease;
}

.card:hover {
	transform: translateY(-6px);
	box-shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
}

.card img {
	border-radius: 10px;
	display: block;
	margin: 0 auto 12px auto;
	max-width: 100%;
	max-height: 360px;
	width: auto;
	height: auto;
	object-fit: contain;
	background: linear-gradient(180deg, rgba(0,0,0,0.02), rgba(0,0,0,0.01));
	padding: 6px;
}

h1 {
	margin: 18px 0 6px;
	font-size: 28px;
	letter-spacing: -0.02em;
}

.title {
	color: var(--muted);
	font-size: 16px;
	margin-bottom: 18px;
}

.lead {
	color: #0b1220;
	margin: 8px 0 18px;
}

/* Simple nav/link row */
.links {
	display: flex;
	gap: 12px;
	justify-content: center;
	flex-wrap: wrap;
	margin-top: 10px;
}

.links a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	border-radius: 10px;
	text-decoration: none;
	color: #0b1220;
	background: rgba(99,102,241,0.08);
	border: 1px solid rgba(99,102,241,0.12);
	font-weight: 600;
	transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.links a:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 30px rgba(99,102,241,0.08);
	opacity: 0.95;
}

/* Buttons */
button, .btn {
	border: none;
	outline: 0;
	padding: 10px 16px;
	color: white;
	background: linear-gradient(90deg, var(--accent), var(--accent-2));
	text-align: center;
	cursor: pointer;
	border-radius: 10px;
	font-size: 15px;
	font-weight: 700;
}

button.secondary, .btn.secondary {
	background: transparent;
	color: var(--accent);
	border: 1px solid rgba(124,58,237,0.12);
}

button:focus, .btn:focus {
	box-shadow: 0 0 0 6px rgba(124,58,237,0.12);
}

/* Responsive tweaks */
@media (max-width: 640px) {
	.card {
		padding: 18px;
		margin: 12px;
	}
	h1 { font-size: 22px; }
	.links a { padding: 8px 12px; font-size: 14px; }
}

/* Utility */
.muted { color: var(--muted); }
.center { text-align: center; }

/* Small helper for inline icons from FA */
.fa { margin-right: 6px; color: rgba(11,18,32,0.6); }

/* Games grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    padding: 12px;
    max-width: 1200px;
    margin: 0 auto;
}

.game-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.2s ease-in-out;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    text-decoration: none;
    color: inherit;
    display: block;
}

.game-card:hover {
    transform: translateY(-4px);
}

.game-card img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    background: linear-gradient(180deg, var(--bg-start), var(--bg-end));
    padding: 12px;
}

.game-card .content {
    padding: 16px;
}

.game-card h3 {
    margin: 0;
    font-size: 18px;
    color: #1a1a1a;
}

.game-card p {
    margin: 8px 0 0;
    font-size: 14px;
    color: var(--muted);
}
