/* CS Datagame front-page responsive layout. */
.best-page {
	width: 100%;
	max-width: none;
	margin: 0;
}

.best-page .front-page-main {
	width: 88.89%;
	max-width: 1280px;
	margin-left: auto;
	margin-right: auto;
}

.best-page .loop-container {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 29px;
}

.best-page .tabl-best {
	width: auto;
	min-width: 0;
	min-height: 150px;
	height: auto;
	float: none;
	margin: 0;
	display: flex;
	align-items: stretch;
}

.best-page .tabl-best > a {
	display: flex;
	flex: 0 0 50%;
	width: 50%;
	align-items: stretch;
}

.best-page .loop-container:after {
	display: none;
}

.best-page .top-text {
	margin-right: 0;
	max-width: 100%;
}

.best-page .top-text h1 {
	line-height: 1.25;
	overflow-wrap: anywhere;
}

.best-page .bestimg {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.best-page .right-best {
	display: flex;
	flex: 1 1 50%;
	flex-direction: column;
	width: 50%;
	height: auto;
	float: none;
}

.best-page .promocode-best {
	flex: 1 0 auto;
	height: auto;
	min-height: 0;
	padding: 9px 8px;
}

.best-page .linkout {
	flex: 0 0 auto;
}

.best-page .linkout a {
	display: flex;
	align-items: center;
	justify-content: center;
	height: auto;
	min-height: 50px;
	padding: 11px 8px;
}

.best-page .codepout {
	width: fit-content !important;
	max-width: 100%;
	overflow-wrap: anywhere;
}

.best-page .promocode-best p {
	overflow-wrap: anywhere;
}

.best-page .mba,
.best-page .mbam {
	box-sizing: border-box;
	max-width: 100%;
	height: auto;
}

@media screen and (max-width: 1200px) {
	.best-page .loop-container {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media screen and (min-width: 701px) and (max-width: 1200px) {
	.best-page .tabl-best {
		flex-direction: row;
		height: auto;
		min-height: 160px;
	}

	.best-page .tabl-best > a {
		display: flex;
		flex: 0 0 50%;
		width: 50%;
		align-items: center;
		overflow: hidden;
		position: relative;
		align-self: stretch;
		background: #191818;
	}

	.best-page .bestimg {
		position: absolute;
		inset: 0;
		width: 100%;
		height: 100%;
		max-height: none;
		min-height: 0;
		object-fit: cover;
		object-position: center;
		float: none;
		border-right: 1px solid #b9b6b6;
		border-bottom: 0;
	}

	.best-page .right-best {
		flex: 1 1 50%;
		width: 50%;
		min-width: 0;
		height: auto;
	}

	.best-page .promocode-best {
		flex: 1 0 auto;
		height: auto;
		min-height: 106px;
		padding: 10px 8px;
	}

	.best-page .linkout {
		flex: 0 0 auto;
	}

	.best-page .linkout a {
		display: flex;
		align-items: center;
		justify-content: center;
		min-height: 54px;
		height: auto;
		padding: 15px 8px;
	}
}

@media screen and (max-width: 700px) {
	.best-page {
		width: 100%;
		max-width: none;
	}

	.best-page .front-page-main {
		width: 88.89%;
		max-width: none;
	}

	.best-page .loop-container {
		grid-template-columns: minmax(0, 1fr);
		gap: 16px;
	}

	.best-page .top-text {
		display: block;
		padding: 14px 16px;
		margin-bottom: 20px;
		font-size: 0.82rem;
	}

	.best-page .top-text h1 {
		font-size: clamp(1.2rem, 5vw, 1.5rem) !important;
		margin-top: 0;
	}

	.best-page .tabl-best {
		flex-direction: column;
		height: auto;
		min-height: 0;
	}

	.best-page .tabl-best > a {
		display: block;
		flex: 0 0 auto;
		width: 100%;
		overflow: hidden;
	}

	.best-page .bestimg {
		width: 100%;
		height: auto;
		max-height: none;
		min-height: 0;
		float: none;
		border-right: 0;
		border-bottom: 1px solid #b9b6b6;
	}

	.best-page .right-best {
		flex: 1 1 auto;
		width: 100%;
		min-width: 0;
		height: auto;
	}

	.best-page .promocode-best {
		flex: 1 0 auto;
		height: auto;
		min-height: 96px;
		padding: 10px 8px;
	}

	.best-page .linkout a {
		min-height: 54px;
		padding: 15px 8px;
	}

	.best-page .mba,
	.best-page .mbam {
		width: 100%;
		margin-bottom: 16px;
	}
}

@media screen and (min-width: 1201px) {
	.best-page .tabl-best > a {
		flex-basis: 56%;
		width: 56%;
	}

	.best-page .bestimg {
		object-fit: cover;
		object-position: center;
	}

	.best-page .right-best {
		flex-basis: 44%;
		width: 44%;
	}
}
