.game-cards-grid {
	display: grid;
	grid-template-columns: repeat(var(--game-card-desktop-columns, 6), minmax(0, 1fr));
	gap: 20px;
	width: 100%;
	max-width: 100%;
	margin-bottom: 30px;
	box-sizing: border-box;
}

.game-card-item {
	width: min(100%, var(--game-card-width, 130px));
	max-width: 100%;
	min-width: 0;
	justify-self: center;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	box-sizing: border-box;
}

.game-card-image-wrapper {
	position: relative;
	width: 100%;
	max-width: 100%;
	height: var(--game-card-height, 190px);
	border-radius: 10px;
	overflow: hidden;
	background-color: #f0f0f0;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	box-sizing: border-box;
}

.game-card-image-wrapper img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.game-card-image-wrapper:hover img,
.game-card-image-wrapper:focus-within img {
	transform: scale(1.08);
}

.game-card-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 10px;
	background-color: rgba(0, 0, 0, 0.75);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.game-card-image-wrapper:hover .game-card-overlay,
.game-card-image-wrapper:focus-within .game-card-overlay {
	opacity: 1;
}

.btn-play,
.btn-demo {
	display: inline-block;
	max-width: 100%;
	padding: 9px 18px;
	border: 0;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
	transition: transform 0.2s ease, filter 0.2s ease;
}

.btn-play:hover,
.btn-demo:hover,
.btn-play:focus,
.btn-demo:focus {
	color: #fff;
	filter: brightness(1.12);
	transform: translateY(-2px);
}

.game-card-title {
	display: -webkit-box;
	width: 100%;
	max-width: 100%;
	margin-top: 8px;
	overflow: hidden;
	color: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	overflow-wrap: anywhere;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	box-sizing: border-box;
}

.game-card-editor-preview {
	margin-top: 12px;
	padding: 12px;
	background: #f0f0f0;
}

@media (max-width: 1000px) {
	.game-cards-grid {
		grid-template-columns: repeat(var(--game-card-desktop-columns, 6), minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.game-cards-grid {
		grid-template-columns: repeat(var(--game-card-mobile-columns, 2), minmax(0, 1fr));
		gap: 15px;
	}
}
