.main-nav .nav-active {
	background: var(--black);
	color: var(--paper-2);
	border-color: var(--black);
}


/* =========================================================
   SECTION 01
   ========================================================= */

.games-intro {
	display: grid;
	grid-template-columns: minmax(0,1.15fr) minmax(360px,.85fr);
	align-items: center;
	gap: clamp(44px,7vw,110px);
	background:
		radial-gradient(circle at 82% 22%, rgba(20,168,74,.07), transparent 27%),
		var(--paper);
}

.games-title-heading {
	grid-template-columns: 70px 1fr;
	margin-bottom: 34px;
}

.games-title-heading h1 {
	font-size: clamp(68px,7.5vw,120px);
	line-height: .8;
}

.games-title-heading .lead {
	margin-top: 30px;
	max-width: 780px;
}

.games-body {
	max-width: 880px;
	margin: 0 0 18px;
	color: var(--muted);
	font-size: 14px;
	line-height: 1.8;
}

.games-body a {
	color: var(--ink);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.games-body a:hover,
.games-body a:focus-visible {
	color: var(--green);
}

.games-stats {
	display: grid;
	grid-template-columns: repeat(2,minmax(0,1fr));
	border: 1px solid var(--ink);
}

.games-stats > div {
	min-height: 145px;
	padding: 18px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	border-right: 1px solid var(--ink);
	border-bottom: 1px solid var(--ink);
}

.games-stats > div:nth-child(2n) {
	border-right: 0;
}

.games-stats > div:nth-last-child(-n+2) {
	border-bottom: 0;
}

.games-stats small,
.games-stats span {
	color: var(--muted);
	font-size: 10px;
	line-height: 1.5;
}

.games-stats strong {
	font-family: "VT323", monospace;
	font-size: 38px;
	font-weight: 400;
	line-height: 1;
}


/* =========================================================
   SECTION 02
   ========================================================= */

.games-list-screen {
	background: var(--paper-2);
}

.games-table-note {
	max-width: 900px;
	margin: 0 0 34px 99px;
	padding: 17px 20px;
	border: 1px solid var(--ink);
	box-shadow: inset 4px 0 0 var(--green);
	background: rgba(255,255,255,.25);
}

.games-table-note p {
	margin: 0;
	color: var(--muted);
	font-size: 12px;
	line-height: 1.7;
}

.games-table-wrap {
	width: 100%;
	overflow-x: auto;
	border: 1px solid var(--ink);
	background: rgba(255,255,255,.14);
}

.games-table {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
}

.games-table th,
.games-table td {
	padding: 13px 16px;
	border-bottom: 1px solid rgba(21,21,21,.18);
	text-align: left;
	vertical-align: top;
}

.games-table th {
	position: static;
	padding: 0;
	background: var(--black);
	color: var(--paper-2);
}

.games-table th:nth-child(1),
.games-table td:nth-child(1) {
	width: auto;
}

.games-table th:nth-child(2),
.games-table td:nth-child(2) {
	width: 160px;
}

.games-table th:nth-child(3),
.games-table td:nth-child(3) {
	width: 100px;
}

.games-table tbody tr:last-child td {
	border-bottom: 0;
}

.games-table tbody tr:hover {
	background: rgba(20,168,74,.06);
}

.games-table td {
	font-size: 12px;
	line-height: 1.55;
}

.games-table td:nth-child(2),
.games-table td:nth-child(3) {
	white-space: nowrap;
}

.sort-button {
	width: 100%;
	min-height: 48px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 0 16px;
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	cursor: pointer;
}

.sort-button:hover,
.sort-button:focus-visible,
.sort-button.is-active {
	color: var(--cyan);
	outline: none;
}

.sort-indicator {
	font-family: "VT323", monospace;
	font-size: 20px;
}


/* =========================================================
   SECTION 03
   ========================================================= */

.games-lessons {
	min-height: calc(100svh - var(--footer-h));
	padding-bottom: 54px;
	background:
		radial-gradient(circle at 18% 82%, rgba(20,168,74,.055), transparent 24%),
		var(--paper);
}

.games-lesson-grid {
	display: grid;
	grid-template-columns: repeat(2,minmax(0,1fr));
	border: 1px solid var(--ink);
}

.games-lesson-grid article {
	padding: 28px;
	border-right: 1px solid var(--ink);
	border-bottom: 1px solid var(--ink);
}

.games-lesson-grid article:nth-child(2n) {
	border-right: 0;
}

.games-lesson-grid article:nth-last-child(-n+2) {
	border-bottom: 0;
}

.games-lesson-grid article > span {
	display: block;
	margin-bottom: 34px;
	color: var(--muted);
	font-size: 11px;
}

.games-lesson-grid h3 {
	margin-bottom: 20px;
	font-size: 26px;
}

.games-lesson-grid p {
	margin: 0 0 16px;
	color: var(--muted);
	font-size: 13px;
	line-height: 1.75;
}

.games-lesson-grid p:last-child {
	margin-bottom: 0;
}

.games-next {
	margin-top: 48px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {

	.games-intro {
		grid-template-columns: 1fr;
		align-items: start;
	}

	.games-stats {
		max-width: 760px;
	}

	.games-table-note {
		margin-left: 0;
	}
}

@media (max-width: 620px) {

	.games-title-heading {
		grid-template-columns: 44px minmax(0,1fr);
		gap: 12px;
	}

	.games-title-heading h1 {
		font-size: clamp(54px,17vw,76px);
	}

	.games-title-heading .lead {
		margin-top: 22px;
	}

	.games-stats {
		grid-template-columns: 1fr;
	}

	.games-stats > div,
	.games-stats > div:nth-child(2n),
	.games-stats > div:nth-last-child(-n+2) {
		min-height: 105px;
		border-right: 0;
		border-bottom: 1px solid var(--ink);
	}

	.games-stats > div:last-child {
		border-bottom: 0;
	}

	.games-table {
		min-width: 720px;
	}

	.games-table th {
		top: 0;
	}

	.games-lesson-grid {
		grid-template-columns: 1fr;
	}

	.games-lesson-grid article,
	.games-lesson-grid article:nth-child(2n),
	.games-lesson-grid article:nth-last-child(-n+2) {
		border-right: 0;
		border-bottom: 1px solid var(--ink);
	}

	.games-lesson-grid article:last-child {
		border-bottom: 0;
	}
}
