/* [top_games] / [bbc_top_slots] shortcode. */
.mgb-top-games {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	margin: 0 auto;
	max-width: 1120px;
	width: 100%;
}

.mgb-top-game {
	background:
		linear-gradient(180deg, rgba(30, 33, 43, 0.96) 0%, rgba(28, 31, 40, 0.94) 46%, rgba(4, 32, 25, 0.98) 100%);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 8px;
	box-shadow: 0 12px 22px rgba(18, 19, 25, 0.2);
	box-sizing: border-box;
	color: #fff;
	display: grid;
	min-height: 265px;
	overflow: hidden;
	padding: 12px;
	position: relative;
	transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.mgb-top-game,
.mgb-top-game * {
	box-sizing: border-box;
}

.mgb-top-game:hover,
.mgb-top-game:focus-within {
	border-color: rgba(53, 212, 127, 0.5);
	box-shadow: 0 18px 32px rgba(18, 19, 25, 0.26);
	transform: translateY(-3px);
}

.mgb-top-game__rank,
.mgb-top-game__rtp {
	align-items: center;
	background: rgba(11, 13, 18, 0.78);
	border-radius: 6px;
	color: #aeb3be;
	display: inline-flex;
	font-size: 10px;
	font-weight: 950;
	height: 26px;
	justify-content: center;
	line-height: 1;
	position: absolute;
	top: 10px;
	z-index: 3;
}

.mgb-top-game__rank {
	left: 10px;
	width: 30px;
}

.mgb-top-game__rtp {
	color: #35d47f;
	letter-spacing: 0.7px;
	padding: 0 9px;
	right: 10px;
}

.mgb-top-game__media {
	align-items: center;
	display: flex;
	inset: 44px 12px 72px;
	justify-content: center;
	position: absolute;
	z-index: 1;
}

.mgb-top-game__media img {
	border-radius: 8px;
	filter: saturate(0.88) brightness(0.58);
	height: 100%;
	object-fit: cover;
	opacity: 0.72;
	width: 100%;
}

.mgb-top-game__media span {
	font-size: 30px;
	filter: saturate(0.8);
	opacity: 0.32;
}

.mgb-top-game__body {
	align-self: end;
	position: relative;
	z-index: 3;
}

.mgb-top-game__body h3 {
	color: #f5f6f8;
	font-size: 16px;
	font-weight: 950;
	line-height: 1.15;
	margin: 0;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.mgb-top-game__body p {
	color: #8f98a2;
	font-size: 11px;
	font-weight: 850;
	letter-spacing: 1.1px;
	line-height: 1.2;
	margin: 10px 0 0;
}

.mgb-top-game__actions {
	align-items: center;
	background: linear-gradient(180deg, rgba(20, 23, 31, 0.18), rgba(7, 11, 15, 0.82));
	display: grid;
	gap: 8px;
	inset: 0;
	justify-content: center;
	opacity: 0;
	padding: 18px;
	pointer-events: none;
	position: absolute;
	transform: translateY(6px);
	transition: opacity 160ms ease, transform 160ms ease;
	z-index: 4;
}

.mgb-top-game:hover .mgb-top-game__actions,
.mgb-top-game:focus-within .mgb-top-game__actions {
	opacity: 1;
	pointer-events: auto;
	transform: translateY(0);
}

.mgb-top-game__play,
.mgb-top-game__demo {
	align-items: center;
	border-radius: 999px;
	display: inline-flex;
	font-size: 12px;
	font-weight: 950;
	justify-content: center;
	min-height: 38px;
	min-width: 126px;
	text-decoration: none;
	transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 160ms ease;
}

.mgb-top-game__play {
	background: linear-gradient(180deg, #50e692 0%, #35d47f 100%);
	box-shadow: 0 10px 18px rgba(33, 185, 105, 0.2);
	color: #0b1215 !important;
}

.mgb-top-game__play:hover,
.mgb-top-game__play:focus-visible {
	box-shadow: 0 14px 26px rgba(33, 185, 105, 0.34);
	transform: translateY(-2px);
}

.mgb-top-game__demo {
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.22);
	color: #fff !important;
}

.mgb-top-game__demo:hover,
.mgb-top-game__demo:focus-visible {
	background: rgba(255, 255, 255, 0.15);
	border-color: rgba(255, 255, 255, 0.38);
	transform: translateY(-2px);
}

@media screen and (max-width: 1023px) {
	.mgb-top-games {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media screen and (max-width: 560px) {
	.mgb-top-games {
		grid-template-columns: 1fr;
	}
}
