/* Lobby game tiles — 6-up Bootstrap squares (col-lg-2). */

#contenthere,
#provider-games-section {
	--lobby-tile-radius: 10px;
	--lobby-tile-bg: #120822;
	--lobby-media-bg: #1a1230;
	--lobby-overlay: rgba(10, 6, 22, 0.55);
}

#contenthere .casino-provider-browse__grid,
#provider-games-section .casino-provider-browse__grid {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	overflow: visible;
	margin-left: 0;
	margin-right: 0;
	margin-bottom: 12px;
	clear: both;
}

#contenthere .casino-provider-browse__grid::before,
#contenthere .casino-provider-browse__grid::after,
#provider-games-section .casino-provider-browse__grid::before,
#provider-games-section .casino-provider-browse__grid::after {
	display: none !important;
	content: none !important;
}

#contenthere .casino-provider-browse__grid > [class*="col-"],
#provider-games-section .casino-provider-browse__grid > [class*="col-"] {
	position: relative;
	min-width: 0;
	animation: none;
}

#contenthere .game-card,
#provider-games-section .game-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	border-radius: var(--lobby-tile-radius);
	overflow: visible;
	cursor: pointer;
	background: var(--lobby-tile-bg);
	border: 0;
	text-decoration: none;
	color: inherit;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#contenthere .game-card:hover,
#provider-games-section .game-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

#contenthere .game-card__link,
#provider-games-section .game-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: inherit;
	text-decoration: none;
}

/* One aspect per grid. Square by default so CQ9 1:1 art is not cropped; live stays portrait. */
#contenthere .game-img-wrap,
#provider-games-section .game-img-wrap {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;
	height: auto;
	background: var(--lobby-media-bg);
	overflow: hidden;
	flex-shrink: 0;
	border-radius: var(--lobby-tile-radius);
}

#contenthere [data-tile-shape="portrait"] .game-img-wrap,
#provider-games-section [data-tile-shape="portrait"] .game-img-wrap,
#provider-games-section[data-tile-shape="portrait"] .game-img-wrap {
	aspect-ratio: 3 / 4;
}

#contenthere [data-tile-shape="landscape"] .game-img-wrap,
#provider-games-section [data-tile-shape="landscape"] .game-img-wrap,
#provider-games-section[data-tile-shape="landscape"] .game-img-wrap {
	aspect-ratio: 1 / 1;
}

#contenthere [data-tile-shape="square"] .game-img-wrap,
#provider-games-section [data-tile-shape="square"] .game-img-wrap,
#provider-games-section[data-tile-shape="square"] .game-img-wrap {
	aspect-ratio: 1 / 1;
}

#contenthere .game-img-squre,
#provider-games-section .game-img-squre {
	display: none;
	pointer-events: none;
}

@supports not (aspect-ratio: 1 / 1) {
	#contenthere .game-img-squre,
	#provider-games-section .game-img-squre {
		display: block;
		width: 100%;
		height: 0;
		padding-top: 100%;
	}

	#contenthere [data-tile-shape="portrait"] .game-img-squre,
	#provider-games-section [data-tile-shape="portrait"] .game-img-squre,
	#provider-games-section[data-tile-shape="portrait"] .game-img-squre {
		padding-top: 133.333%;
	}

	#contenthere [data-tile-shape="landscape"] .game-img-squre,
	#provider-games-section [data-tile-shape="landscape"] .game-img-squre,
	#provider-games-section[data-tile-shape="landscape"] .game-img-squre {
		padding-top: 100%;
	}

	#contenthere [data-tile-shape="square"] .game-img-squre,
	#provider-games-section [data-tile-shape="square"] .game-img-squre,
	#provider-games-section[data-tile-shape="square"] .game-img-squre {
		padding-top: 100%;
	}
}

#contenthere .game-card img,
#provider-games-section .game-card img,
#contenthere .game-img-wrap .casino__img,
#provider-games-section .game-img-wrap .casino__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	border: 0;
	display: block;
	box-sizing: border-box;
	object-fit: cover;
	object-position: center center;
	background: var(--lobby-media-bg);
	transform: none;
	border-radius: var(--lobby-tile-radius);
}

#contenthere .overlay-box,
#provider-games-section .overlay-box {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--lobby-overlay);
	opacity: 0;
	transition: opacity 0.2s ease;
	pointer-events: none;
	border-radius: var(--lobby-tile-radius);
}

#contenthere .game-card:hover .overlay-box,
#provider-games-section .game-card:hover .overlay-box {
	opacity: 1;
}

#contenthere .overlay-box__title,
#contenthere .overlay-box h4,
#provider-games-section .overlay-box__title,
#provider-games-section .overlay-box h4,
#contenthere .overlay-box__provider,
#provider-games-section .overlay-box__provider {
	display: none;
}

#contenthere .game-card__meta,
#provider-games-section .game-card__meta {
	padding: 8px 6px 10px;
	text-align: center;
	min-height: 58px;
	overflow: visible;
	display: flex;
	flex-direction: column;
	justify-content: center;
	background: var(--lobby-tile-bg);
}

#contenthere .game-card__title,
#provider-games-section .game-card__title {
	margin: 0;
	color: #fff;
	font-weight: 800;
	font-size: 12px;
	line-height: 1.35;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

@media (min-width: 576px) {
	#contenthere .game-card__title,
	#provider-games-section .game-card__title {
		font-size: 13px;
	}
}

#contenthere .game-card__provider,
#provider-games-section .game-card__provider {
	margin: 2px 0 0;
	color: rgba(255, 255, 255, 0.72);
	font-weight: 600;
	font-size: 10px;
	line-height: 1.35;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

#contenthere .game-card__play,
#provider-games-section .game-card__play,
#contenthere .overlay-box .btn-secondary,
#provider-games-section .overlay-box .btn-secondary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 0;
	height: 32px;
	margin: 0;
	padding: 0 20px;
	border: 0;
	border-radius: 999px;
	background: linear-gradient(135deg, #9b59d0 0%, #6b3fa0 100%);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	text-transform: none;
	box-shadow: none;
	cursor: pointer;
	transition: background 0.2s ease;
}

#contenthere .game-card:hover .game-card__play,
#provider-games-section .game-card:hover .game-card__play,
#contenthere .game-card:hover .overlay-box .btn-secondary,
#provider-games-section .game-card:hover .overlay-box .btn-secondary {
	transform: none;
	background: linear-gradient(135deg, #ab69e0 0%, #7b4fb0 100%);
	color: #fff;
	box-shadow: none;
}

#contenthere .game-card__play svg,
#provider-games-section .game-card__play svg {
	display: none;
}

#contenthere .overlay-box .btn-secondary:hover,
#provider-games-section .overlay-box .btn-secondary:hover {
	background: linear-gradient(135deg, #ab69e0 0%, #7b4fb0 100%);
	color: #fff;
}

#contenthere .lobbyImg {
	margin-bottom: 8px;
}

#contenthere .lobbyImg img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: contain;
	object-position: center;
	background: var(--lobby-media-bg);
	border-radius: var(--lobby-tile-radius);
}
