#games {
	grid-area: games;
	display: flex;
	flex-flow: column nowrap;
	justify-content: start;
	align-items: start;
	margin: 0;
	padding: 0;
	width: 100%;
	min-height: 0;
	overflow: auto;
}

#cards {
	display: flex;
	flex-flow: row wrap;
	justify-content: start;
	align-items: start;
	margin: 0;
	padding: 8px 8px 8px 0;
	width: 100%;
}

.card {
	margin: 8px;
	padding: 0;
	width: calc(25% - 16px);
	height: auto;
	aspect-ratio: 4 / 3;
	background: var(--surface);
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center;
	border-radius: 8px;
	box-shadow: var(--elevation);
	overflow: hidden;
	cursor: pointer;
	transition: transform 0.2s;
}

@media (width <= 1600px) {
	.card {
		width: calc(33% - 16px);
	}
}

@media (width <= 1200px) {
	.card {
		width: calc(50% - 16px);
	}
}

@media (width <= 720px) {
	.card {
		width: calc(100% - 16px);
	}
}

@media (width <= 480px) {
	.card {
		width: calc(100% - 16px);
	}
}

.card-content {
	display: grid;
	grid-template-areas:
		"card-icon"
		"card-title"
		"card-desc";
	grid-template-rows: 1fr auto auto;
	margin: 0;
	padding: 8px;
	width: 100%;
	height: 100%;
	background: var(--overlay);
	overflow: hidden;
}

.card-title {
	grid-area: card-title;
	align-self: end;
	margin: 8px 8px 4px 8px;
	padding: 0;
	font-family: dinpro-medium;
	font-weight: normal;
	font-size: 1.2rem;
	color: var(--white);
}

.card-description {
	grid-area: card-desc;
	align-self: start;
	margin: 4px 8px 8px 8px;
	padding: 0;
	color: var(--white);
	hyphens: auto;
}

.card-icon {
	grid-area: card-icon;
	justify-self: end;
	align-self: start;
	display: flex;
	justify-content: center;
	align-items: center;
	margin: 8px;
	padding: 0;
	width: 32px;
	height: 32px;
	color: var(--orange);
	background: var(--green);
	border-radius: 50%;
	box-shadow: var(--elevation);
}