:root {
	--bg: #ffffff;
	--text: #111111;
	--muted: #666666;
	--line: #e9e9e9;
	--footer-link: #7a7f8a;
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: system-ui, "Segoe UI", Roboto, sans-serif;
	line-height: 1.6;
}

.container {
	max-width: 960px;
	margin: 0 auto;
	padding: 1.25rem;
}

nav.site-nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem 1rem;
	padding: 0.5rem 0 1rem;
	border-bottom: 1px solid var(--line);
	font-family: "Plus Jakarta Sans", system-ui, sans-serif;
}

a.brand {
	font-size: 0.95rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: inherit;
	text-decoration: none;
}

a.brand:hover {
	text-decoration: underline;
}

.nav-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 5px;
	margin-left: auto;
	padding: 0.45rem 0.55rem;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: #fff;
	cursor: pointer;
}

.nav-toggle-bar {
	display: block;
	width: 20px;
	height: 2px;
	background: var(--text);
	border-radius: 1px;
}

.nav-links {
	display: flex;
	gap: 2.5rem;
	align-items: center;
	flex-wrap: wrap;
}

.nav-item {
	position: relative;
}

.nav-link {
	color: var(--text);
	text-decoration: none;
	font-size: 0.95rem;
	font-weight: 500;
	display: inline-block;
}

.nav-link:hover {
	text-decoration: underline;
}

.nav-link[aria-current="page"] {
	font-weight: 600;
}

.game-menu {
	position: absolute;
	top: calc(100% + 0.35rem);
	left: 0;
	min-width: 230px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 8px;
	padding: 0.4rem;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-4px);
	transition: opacity 140ms ease, transform 140ms ease, visibility 140ms ease;
	z-index: 10;
}

.nav-item.game:hover .game-menu,
.nav-item.game:focus-within .game-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.game-menu a {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	padding: 0.45rem 0.55rem;
	border-radius: 6px;
	color: #4a5568;
	text-decoration: none;
	font-size: 0.92rem;
}

.game-menu a:hover {
	background: #f7f7f7;
}

.game-menu-icon {
	width: 18px;
	height: 18px;
	object-fit: contain;
	flex: 0 0 auto;
}

@media (max-width: 719px) {
	.nav-toggle {
		display: flex;
	}

	.nav-links {
		display: none;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		width: 100%;
		flex-basis: 100%;
		padding-top: 0.75rem;
		margin-top: 0.25rem;
		border-top: 1px solid var(--line);
	}

	.site-nav.is-open .nav-links {
		display: flex;
	}

	.nav-links > .nav-link {
		padding: 0.65rem 0;
		border-bottom: 1px solid #f0f0f0;
	}

	.nav-links > .nav-link:last-child {
		border-bottom: none;
	}

	.nav-item.game {
		padding: 0.65rem 0;
		border-bottom: 1px solid #f0f0f0;
	}

	.nav-item.game > .nav-link {
		padding: 0;
	}

	.nav-item.game .game-menu {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		box-shadow: none;
		border: none;
		border-radius: 0;
		padding: 0.35rem 0 0 0.75rem;
		margin-top: 0.35rem;
		min-width: 0;
	}

	.nav-item.game:hover .game-menu,
	.nav-item.game:focus-within .game-menu {
		opacity: 1;
		visibility: visible;
		transform: none;
	}
}

main {
	padding: 1.5rem 0 2rem;
}

h1 {
	font-size: clamp(1.75rem, 2.7vw, 2.5rem);
	line-height: 1.2;
	margin: 0 0 0.75rem;
	font-weight: 600;
}

.subtitle {
	margin: 0 0 1.5rem;
	color: var(--muted);
	max-width: 52ch;
	font-size: 0.95rem;
}

footer {
	border-top: 1px solid var(--line);
	padding: 1rem 0 2rem;
	color: var(--muted);
	font-size: 0.88rem;
}

footer a {
	color: var(--footer-link);
	text-decoration: none;
}

footer a:hover {
	color: #5c6370;
	text-decoration: underline;
}
