/* Попап-промо: Стрики + x20 */

.sdGamesPromo {
	--sd-panel: #f4f6f8;
	--sd-card: #ffffff;
	--sd-ink: #12161c;
	--sd-muted: #5a6573;
	--sd-streak: #e85d04;
	--sd-streak-deep: #c44d03;
	--sd-x20: #1b6ca8;
	--sd-x20-deep: #155a8c;
	--sd-line: #dde3ea;
	position: fixed;
	inset: 0;
	z-index: 20000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	font-family: Helvetica, Arial, sans-serif;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

.sdGamesPromo.is-open {
	opacity: 1;
	visibility: visible;
}

.sdGamesPromo__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(8, 12, 18, 0.72);
}

.sdGamesPromo__panel {
	position: relative;
	z-index: 1;
	width: min(720px, 100%);
	max-height: calc(100vh - 40px);
	overflow: auto;
	background: var(--sd-panel);
	border-radius: 20px;
	padding: 28px 28px 24px;
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
	transform: translateY(12px) scale(0.98);
	transition: transform 0.25s ease;
}

.sdGamesPromo.is-open .sdGamesPromo__panel {
	transform: none;
}

.sdGamesPromo__close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: #7a8694;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.sdGamesPromo__close:hover {
	background: #e8ecf0;
	color: var(--sd-ink);
}

.sdGamesPromo__head {
	text-align: center;
	padding: 4px 36px 20px;
}

.sdGamesPromo__title {
	margin: 0 0 10px;
	font-weight: 700;
	font-size: clamp(20px, 3.2vw, 28px);
	letter-spacing: 0.05em;
	text-transform: uppercase;
	line-height: 1.15;
	color: var(--sd-ink);
}

.sdGamesPromo__sub {
	margin: 0;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.45;
	color: var(--sd-muted);
}

.sdGamesPromo__cards {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

.sdGamesPromo__card {
	background: var(--sd-card);
	border-radius: 16px;
	border: 1px solid var(--sd-line);
	padding: 22px 20px 18px;
	display: flex;
	flex-direction: column;
	min-height: 240px;
	position: relative;
	overflow: hidden;
}

.sdGamesPromo__card::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 4px;
}

.sdGamesPromo__card--streaks::before { background: var(--sd-streak); }
.sdGamesPromo__card--x20::before { background: var(--sd-x20); }

.sdGamesPromo__icon {
	width: 48px;
	height: 48px;
	border-radius: 14px;
	display: grid;
	place-items: center;
	margin-bottom: 14px;
	font-size: 24px;
	line-height: 1;
}

.sdGamesPromo__card--streaks .sdGamesPromo__icon {
	background: rgba(232, 93, 4, 0.12);
}

.sdGamesPromo__card--x20 .sdGamesPromo__icon {
	background: rgba(27, 108, 168, 0.12);
}

.sdGamesPromo__cardTitle {
	margin: 0 0 8px;
	font-size: 26px;
	font-weight: 700;
	line-height: 1;
	color: var(--sd-ink);
}

.sdGamesPromo__cardText {
	margin: 0;
	flex: 1;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.5;
	color: var(--sd-muted);
}

.sdGamesPromo__btn {
	margin-top: 18px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 44px;
	border-radius: 12px;
	border: 0;
	font-family: inherit;
	font-size: 15px;
	font-weight: 800;
	letter-spacing: 0.02em;
	color: #fff !important;
	cursor: pointer;
	text-decoration: none !important;
	width: 100%;
}

.sdGamesPromo__card--streaks .sdGamesPromo__btn { background: var(--sd-streak); }
.sdGamesPromo__card--streaks .sdGamesPromo__btn:hover { background: var(--sd-streak-deep); }
.sdGamesPromo__card--x20 .sdGamesPromo__btn { background: var(--sd-x20); }
.sdGamesPromo__card--x20 .sdGamesPromo__btn:hover { background: var(--sd-x20-deep); }

@media (max-width: 640px) {
	.sdGamesPromo__cards { grid-template-columns: 1fr; }
	.sdGamesPromo__card { min-height: 0; }
	.sdGamesPromo__panel { padding: 22px 16px 16px; }
}
