.bluegam-home-category-carousel {
	background-color: var(--wp--preset--color--surface-soft);
	color: var(--wp--preset--color--text-primary);
	margin-block: 0;
	min-inline-size: 0;
	overflow: hidden;
	padding-block: var(--wp--preset--spacing--60) var(--wp--preset--spacing--70);
}

.bluegam-home-category-carousel__shell {
	inline-size: 100%;
	margin-inline: auto;
	max-inline-size: var(--wp--style--global--wide-size);
	padding-inline: var(--wp--custom--layout--container-padding--desktop);
}

.bluegam-home-category-carousel__title {
	color: var(--wp--preset--color--text-primary);
	font-size: 20px;
	font-weight: 750;
	line-height: 1.4;
	margin: 0 0 var(--wp--preset--spacing--40);
}

.bluegam-home-category-carousel__viewport {
	-webkit-overflow-scrolling: touch;
	direction: rtl;
	inline-size: 100%;
	overflow-x: auto;
	overflow-y: hidden;
	overscroll-behavior-inline: contain;
	scroll-behavior: smooth;
	scroll-snap-type: inline proximity;
	scrollbar-width: none;
}

.bluegam-home-category-carousel__viewport::-webkit-scrollbar {
	display: none;
}

.bluegam-home-category-carousel__viewport:focus-visible {
	border-radius: 8px;
	outline: 2px solid var(--wp--preset--color--primary);
	outline-offset: 4px;
}

.bluegam-home-category-carousel__track {
	display: flex;
	gap: var(--wp--preset--spacing--40);
	inline-size: max-content;
	list-style: none;
	margin: 0;
	min-inline-size: 100%;
	padding: 0;
}

.bluegam-home-category-carousel__item {
	flex: 0 0 112px;
	min-inline-size: 0;
	scroll-snap-align: start;
}

.bluegam-home-category-carousel__link {
	align-items: center;
	color: var(--wp--preset--color--text-primary);
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--30);
	inline-size: 100%;
	text-decoration: none;
	transition: transform 180ms ease;
}

.bluegam-home-category-carousel__visual {
	align-items: center;
	background-color: var(--wp--preset--color--blue-50);
	border-radius: 18px;
	color: var(--wp--preset--color--primary);
	display: flex;
	justify-content: center;
	block-size: 80px;
	inline-size: 80px;
	overflow: hidden;
}

.bluegam-home-category-carousel__visual.has-thumbnail {
	background-color: transparent;
	border-radius: 0;
}

.bluegam-home-category-carousel__visual svg {
	block-size: 50px;
	fill: none;
	inline-size: 50px;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2.4;
}

.bluegam-home-category-carousel__image {
	block-size: 100%;
	inline-size: 100%;
	object-fit: contain;
}

.bluegam-home-category-carousel__name {
	display: -webkit-box;
	font-size: 14px;
	font-weight: 650;
	line-height: 1.45;
	min-block-size: 2.9em;
	overflow: hidden;
	text-align: center;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.bluegam-home-category-carousel__item--offer .bluegam-home-category-carousel__visual:not(.has-thumbnail) {
	background-color: color-mix(in srgb, var(--wp--preset--color--error) 9%, var(--wp--preset--color--surface));
	color: #b42318;
}

.bluegam-home-category-carousel__item--offer .bluegam-home-category-carousel__name {
	color: #b42318;
}

.bluegam-home-category-carousel__link:hover {
	color: var(--wp--preset--color--primary);
	transform: translateY(-2px);
}

.bluegam-home-category-carousel__all {
	align-items: center;
	color: var(--wp--preset--color--primary);
	display: flex;
	font-size: 14px;
	font-weight: 700;
	gap: var(--wp--preset--spacing--20);
	inline-size: fit-content;
	margin-block-start: var(--wp--preset--spacing--40);
	margin-inline-start: auto;
	min-block-size: 44px;
	text-decoration: none;
}

.bluegam-home-category-carousel__all:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

@media (max-width: 1024px) {
	.bluegam-home-category-carousel__shell {
		padding-inline: var(--wp--custom--layout--container-padding--tablet);
	}
}

@media (max-width: 600px) {
	.bluegam-home-category-carousel {
		padding-block: var(--wp--preset--spacing--30);
	}

	.bluegam-home-category-carousel__shell {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		padding-inline: var(--wp--custom--layout--container-padding--mobile);
		row-gap: var(--wp--preset--spacing--20);
	}

	.bluegam-home-category-carousel__title {
		font-size: 16px;
		grid-column: 1;
		grid-row: 1;
		margin: 0;
	}

	.bluegam-home-category-carousel__viewport {
		grid-column: 1 / -1;
		grid-row: 2;
		scroll-padding-inline: 0;
	}

	.bluegam-home-category-carousel__track {
		gap: var(--wp--preset--spacing--10);
	}

	.bluegam-home-category-carousel__item {
		flex-basis: clamp(68px, 20vw, 82px);
	}

	.bluegam-home-category-carousel__link {
		gap: var(--wp--preset--spacing--10);
	}

	.bluegam-home-category-carousel__visual {
		border-radius: 12px;
		block-size: 48px;
		inline-size: 48px;
	}

	.bluegam-home-category-carousel__visual svg {
		block-size: 32px;
		inline-size: 32px;
		stroke-width: 2.6;
	}

	.bluegam-home-category-carousel__name {
		font-size: 12px;
		line-height: 1.35;
		min-block-size: 2.7em;
	}

	.bluegam-home-category-carousel__all {
		font-size: 12px;
		grid-column: 2;
		grid-row: 1;
		margin: 0;
		min-block-size: 44px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bluegam-home-category-carousel__link {
		transition: none;
	}

	.bluegam-home-category-carousel__viewport {
		scroll-behavior: auto;
	}
}
