.tg-games {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	grid-auto-rows: 1fr;
	gap: 1rem 0.875rem;
	margin-block: var(--space-block);
	padding: 0;
	list-style: none;
}

.tg-games:first-child {
	margin-block-start: 0;
}

.tg-games:last-child {
	margin-block-end: 0;
}

.tg-games__card {
	--game-ornament: url("data:image/svg+xml,%3Csvg preserveAspectRatio='none' overflow='visible' style='display: block%3B' width='67.3996' height='67.3996' viewBox='0 0 67.3996 67.3996' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg id='Group'%3E%3Cpath id='Vector' d='M33.6996 18.4996L48.8996 33.6996L33.6996 48.8996L18.4996 33.6996L33.6996 18.4996ZM33.6996 27.9996L39.3996 33.6996L33.6996 39.3996L27.9996 33.6996L33.6996 27.9996Z' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round' stroke='%23F5B800' stroke-opacity='0.12'/%3E%3Cpath id='Vector_2' d='M33.7 18.5V14.7C33.7 6.15 28 1.4 21.35 1.4C14.7 1.4 9.95 6.15 9.95 11.85C9.95 17.55 13.75 21.35 18.5 21.35C22.3 21.35 25.15 18.5 25.15 14.7C25.15 11.85 23.25 9.95 20.4 9.95' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round' stroke='%23F5B800' stroke-opacity='0.12'/%3E%3Cpath id='Vector_3' d='M48.8996 33.6998H52.6996C61.2496 33.6998 65.9996 27.9998 65.9996 21.3498C65.9996 14.6998 61.2496 9.9498 55.5496 9.9498C49.8496 9.9498 46.0496 13.7498 46.0496 18.4998C46.0496 22.2998 48.8996 25.1498 52.6996 25.1498C55.5496 25.1498 57.4496 23.2498 57.4496 20.3998' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round' stroke='%23F5B800' stroke-opacity='0.12'/%3E%3Cpath id='Vector_4' d='M33.6998 48.8996V52.6996C33.6998 61.2496 39.3998 65.9996 46.0498 65.9996C52.6998 65.9996 57.4498 61.2496 57.4498 55.5496C57.4498 49.8496 53.6498 46.0496 48.8998 46.0496C45.0998 46.0496 42.2498 48.8996 42.2498 52.6996C42.2498 55.5496 44.1498 57.4496 46.9998 57.4496' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round' stroke='%23F5B800' stroke-opacity='0.12'/%3E%3Cpath id='Vector_5' d='M18.5 33.7H14.7C6.15 33.7 1.4 39.4 1.4 46.05C1.4 52.7 6.15 57.45 11.85 57.45C17.55 57.45 21.35 53.65 21.35 48.9C21.35 45.1 18.5 42.25 14.7 42.25C11.85 42.25 9.95 44.15 9.95 47' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round' stroke='%23F5B800' stroke-opacity='0.12'/%3E%3C/g%3E%3C/svg%3E");
	--game-ornament-size: 2.9375rem;
	--game-ornament-position: top 0.1875rem right 0.1875rem;

	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	block-size: 100%;
	min-block-size: 6.125rem;
	padding: 0.75rem;
	border: 1px solid var(--border-muted);
	border-radius: 0.75rem;
	background: var(--game-ornament) var(--game-ornament-position) / var(--game-ornament-size) no-repeat,
		var(--gradient-blue) center / cover no-repeat;
	background-clip: padding-box;
	color: inherit;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	overflow-wrap: anywhere;
}

a.tg-games__card:is(:hover, :focus-visible) {
	border-color: rgba(245, 184, 0, 0.38);
	background-color: var(--color-black-600);
	background-image: var(--game-ornament);
}

.tg-games .tg-games__image {
	flex: none;
	inline-size: 2.5rem;
	block-size: 2.5rem;
	object-fit: contain;
}

@media (min-width: 48em) {
	.tg-games {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.tg-games__card {
		--game-ornament-size: 3.46875rem;
		min-block-size: 6.875rem;
		padding: 0.875rem 1.125rem;
		font-size: 1.125rem;
	}

	.tg-games .tg-games__image {
		inline-size: 2.875rem;
		block-size: 2.875rem;
	}
}

@media (min-width: 75em) {
	.tg-games {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 1.375rem 1.25rem;
	}

	.tg-games__card {
		--game-ornament-size: 4.2125rem;
		--game-ornament-position: right 0.25rem center;
		flex-direction: row;
		justify-content: flex-start;
		min-block-size: 5.75rem;
		padding-inline: 1.25rem;
		text-align: start;
	}

	.tg-games .tg-games__image {
		inline-size: 3.875rem;
		block-size: 3.875rem;
	}
}
