:root {
	--gg-accent: var(--color-contrast, #14a884); /* берём цвет прямо из настроек темы сайта (Настройщик → Цветовая тема сайта) */
	--gg-text: #1a1a1a;
}

.games-grid-block {
	margin: 32px 0;
}

.games-grid-block__title {
	font-size: 26px;
	font-weight: 700;
	margin: 0 0 8px;
	color: var(--gg-text);
}

.games-grid-block__desc {
	color: #666;
	margin: 0 0 20px;
}

.games-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 14px;
}

.games-grid__item,
.games-grid__item:link,
.games-grid__item:visited,
.games-grid__item:hover,
.games-grid__item:focus,
.games-grid__item:active {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	background: color-mix(in srgb, var(--gg-accent) 20%, #ffffff);
	border: 1.5px solid color-mix(in srgb, var(--gg-accent) 25%, #ffffff);
	border-radius: 10px;
	text-decoration: none !important;
	border-bottom-style: solid;
	box-shadow: none;
	color: var(--gg-text) !important;
	transition: border-color .2s ease, box-shadow .2s ease, transform .15s ease, background .2s ease;
}

.games-grid__item:hover,
.games-grid__item:focus {
	border-color: var(--gg-accent);
	border-width: 2px;
	background: color-mix(in srgb, var(--gg-accent) 30%, #ffffff);
	box-shadow: 0 4px 14px color-mix(in srgb, var(--gg-accent) 25%, transparent);
	transform: translateY(-2px);
}

.games-grid__name,
.games-grid__arrow {
	text-decoration: none !important;
	border-bottom: none !important;
	box-shadow: none !important;
}

.games-grid__name {
	font-weight: 700;
	font-size: 18px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	color: var(--gg-text) !important;
}

.games-grid__arrow {
	font-size: 22px;
	line-height: 1;
	color: var(--gg-accent) !important;
	margin-left: 12px;
	flex-shrink: 0;
}

@media (max-width: 900px) {
	.games-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 560px) {
	.games-grid {
		grid-template-columns: 1fr;
	}
	.games-grid__name {
		font-size: 16px;
	}
}
