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

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

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

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

.streaksGame__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;
}

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

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

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

.streaksGame__circles {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 7px;
	margin-bottom: 16px;
	overflow: visible;
}

.streaksGame__circlesRow {
	display: flex;
	justify-content: center;
	gap: 7px;
	overflow: visible;
}

.streaksGame__circle {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	flex-shrink: 0;
	position: relative;
}

.streaksGame__circle--empty {
	background: #e0e0e0;
}

.streaksGame__circle--win {
	background: transparent url('/interactive/streaks-ball.png') center / contain no-repeat;
	box-shadow: none;
}

.streaksGame__circle--loss {
	background: #eceff1;
	border: 0;
	color: #e53935;
	font-size: 22px;
	font-weight: 700;
	line-height: 1;
}

.streaksGame__circle--link {
	text-decoration: none;
	cursor: pointer;
}

.streaksGame__circle--link:hover,
.streaksGame__circle--link:focus {
	transform: scale(1.06);
	outline: none;
}

.streaksGame__circle[data-tooltip]::after {
	content: attr(data-tooltip);
	position: absolute;
	left: 50%;
	bottom: calc(100% + 8px);
	transform: translateX(-50%);
	padding: 6px 10px;
	border-radius: 6px;
	background: #1a1a1a;
	color: #fff;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.35;
	white-space: normal;
	max-width: min(260px, 72vw);
	text-align: center;
	opacity: 0;
	pointer-events: none;
	visibility: hidden;
	transition: opacity .12s ease;
	z-index: 40;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
}

.streaksGame__circle[data-tooltip]::before {
	content: '';
	position: absolute;
	left: 50%;
	bottom: calc(100% + 2px);
	transform: translateX(-50%);
	border: 6px solid transparent;
	border-top-color: #1a1a1a;
	opacity: 0;
	pointer-events: none;
	visibility: hidden;
	transition: opacity .12s ease;
	z-index: 40;
}

.streaksGame__circle[data-tooltip]:hover::after,
.streaksGame__circle[data-tooltip]:focus::after,
.streaksGame__circle[data-tooltip]:hover::before,
.streaksGame__circle[data-tooltip]:focus::before {
	opacity: 1;
	visibility: visible;
}

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

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

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

.streaksGame__leadersHead,
.streaksGame__leaderRow {
	display: flex;
	justify-content: space-between;
	padding: 10px 14px;
}

.streaksGame__leadersHead {
	background: #f5f5f5;
	font-weight: 700;
	font-size: 14px;
}

.streaksGame__leaderRow + .streaksGame__leaderRow {
	border-top: 1px solid #eee;
}

.streaksGame__leaderValue {
	font-weight: 700;
}

.streaksGame__leaderEmpty {
	padding: 16px;
	text-align: center;
	color: #666;
}

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

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

.streaksGame__help,
.streaksGame__cta {
	position: relative;
	z-index: 2;
	pointer-events: auto;
	cursor: pointer;
}

/* Modal — как Конкурс прогнозов (matchCenter_noId / #matchcenterModal) */
#streaksModal {
	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;
}

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

#streaksModal .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;
}

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

#streaksModal .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;
}

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

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

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

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

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

.mainIndex_sideBox .streaksGame {
	max-width: 100%;
	margin-bottom: 16px;
	overflow: visible;
}

.mainIndex_sideBox .streaksGame__circles {
	gap: 7px;
}

.mainIndex_sideBox .streaksGame__circlesRow {
	gap: 7px;
}

.mainIndex_sideBox .streaksGame__circle {
	width: 32px;
	height: 32px;
}

.mainIndex_sideBox .streaksGame__circle--loss {
	font-size: 18px;
}

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

