/* Игра «X20» — виджет и модальное окно */

.x20Game {
	background: #eceff1;
	border-radius: 16px;
	padding: 16px;
	font-family: inherit;
	color: #1a1a1a;
	margin-top: 16px;
}

.x20Game__header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
	line-height: 1.2;
}

.x20Game__title {
	margin: 0;
	font-size: 20px;
	font-weight: 700;
	line-height: 23px;
}

.x20Game__help {
	border: 0;
	background: none;
	padding: 0;
	margin: 0;
	font-size: 14px;
	font-weight: 400;
	line-height: 16px;
	color: #333;
	cursor: pointer;
	text-decoration: underline;
	white-space: nowrap;
	flex-shrink: 0;
}

.x20Game__card {
	background: #fff;
	border-radius: 14px;
	padding: 16px;
	margin-bottom: 12px;
	text-align: center;
}

.x20Game__cardTitle {
	font-weight: 700;
	margin-bottom: 8px;
}

.x20Game__progress {
	font-size: 15px;
	margin-bottom: 14px;
}

.x20Game__cta {
	display: block;
	text-align: center;
	text-decoration: none;
	box-sizing: border-box;
	width: 100%;
	border: 0;
	border-radius: 10px;
	background: #e53935;
	color: #fff !important;
	font-size: 16px;
	font-weight: 700;
	padding: 12px 16px;
	cursor: pointer;
}

.x20Game__cta:hover {
	background: #d32f2f;
	color: #fff !important;
	text-decoration: none;
}

.x20Game__fastestAvatarWrap {
	position: relative;
	width: 88px;
	height: 88px;
	margin: 8px auto 12px;
}

.x20Game__fastestAvatar {
	width: 88px;
	height: 88px;
	border-radius: 50%;
	object-fit: cover;
	border: 3px solid #f1c40f;
	display: block;
	box-sizing: border-box;
}

.x20Game__fastestBadge {
	position: absolute;
	left: 50%;
	bottom: -6px;
	transform: translateX(-50%);
	background: #f1c40f;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	padding: 5px 10px;
	border-radius: 999px;
	white-space: nowrap;
}

.x20Game__fastestName {
	font-weight: 700;
	margin: 10px 0 4px;
}

.x20Game__fastestName a {
	color: inherit;
	text-decoration: none;
}

.x20Game__fastestName a:hover {
	text-decoration: underline;
}

.x20Game__fastestSummary {
	font-size: 14px;
	color: #333;
}

.x20Game__fastestEmpty {
	font-size: 14px;
	color: #777;
	padding: 8px 0;
}

.x20Game__leaders {
	background: #fff;
	border-radius: 14px;
	overflow: hidden;
}

.x20Game__leadersHead {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 14px;
	background: #f0f2f4;
	font-size: 13px;
	font-weight: 700;
}

.x20Game__leaderRow {
	display: grid;
	grid-template-columns: 24px 1fr auto;
	gap: 8px;
	align-items: center;
	padding: 10px 14px;
	border-top: 1px solid #eceff1;
	font-size: 14px;
}

.x20Game__leaderRank {
	color: #666;
}

.x20Game__leaderName {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.x20Game__leaderName a {
	color: inherit;
	text-decoration: none;
}

.x20Game__leaderName a:hover {
	text-decoration: underline;
}

.x20Game__leaderValue {
	font-weight: 600;
	white-space: nowrap;
}

.x20Game__leaderEmpty {
	padding: 14px;
	text-align: center;
	color: #777;
	font-size: 14px;
}

.x20Game__help,
.x20Game__cta {
	position: relative;
	z-index: 2;
	pointer-events: auto;
}

/* Modal — как Конкурс прогнозов */
#x20Modal {
	padding: 30px;
	background: linear-gradient(45deg, rgb(37 112 109) 0%, rgba(2,0,36,1) 33%, rgba(2,0,36,1) 66%, rgb(96 52 177) 100%);
	border-radius: 0 0 var(--radius-2) var(--radius-2);
	position: relative;
	color: #fff;
	font-family: Helvetica, Arial, sans-serif;
}

#x20Modal .ipsTabs {
	background: transparent;
	padding: 0;
}

#x20Modal .ipsTabs_item {
	color: #FFF;
	font-family: Helvetica, Arial, sans-serif;
	font-size: 14px;
	border-radius: 6px 6px 0 0;
	background: linear-gradient(180deg, rgba(34, 54, 62, 0.90) 0%, rgba(27, 47, 57, 0.90) 113.54%);
	margin-right: 6px;
	font-weight: 700;
}

#x20Modal .ipsTabs_activeItem {
	background: linear-gradient(180deg, #226160 0%, #1C3940 100%);
	color: #FFF !important;
}

#x20Modal .ipsTabs_panel {
	background: transparent;
	font-family: Helvetica, Arial, sans-serif;
	font-size: 16px;
	font-style: normal;
	font-weight: 400;
	line-height: 30px;
	color: #fff;
	padding-bottom: var(--sp-10) !important;
}

#x20Modal .matchcenter_text a {
	color: #fff;
	text-decoration: underline;
}

#x20Modal #matchcenter_topTable .ipsGrid {
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.05);
	margin-bottom: 8px;
	padding: 10px;
}

#x20Modal #matchcenter_topTable .ipsGrid a {
	color: #fff;
}

#x20Modal .periodSpan {
	color: #0DF28B;
}

#x20Modal .periodSpan.periodSpan_neg {
	color: red;
}

.mainIndex_sideBox .x20Game {
	max-width: 100%;
	margin-bottom: 16px;
}

@media (max-width: 767px) {
	#x20Modal {
		padding: 15px;
	}
}

