/* Игра «Взял мяч» — виджет (как X20) + скрытый мяч + анимация */

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

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

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

.gotballGame__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;
	position: relative;
	z-index: 2;
}

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

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

.gotballGame__progress {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	font-size: 28px;
	font-weight: 800;
	margin-bottom: 14px;
	line-height: 1;
}

.gotballGame__ballIcon {
	width: 28px;
	height: 28px;
	object-fit: contain;
}

.gotballGame__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;
	position: relative;
	z-index: 2;
}

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

.gotballGame__leaders {
	background: #fff;
	border-radius: 14px;
	overflow: hidden;
	margin: 0;
}

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

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

.gotballGame__leaderRank {
	color: #666;
}

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

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

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

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

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

.gotballGame__loading {
	padding: 16px;
	color: #888;
	font-size: 14px;
}

/* Модалка: акцент и сетка рейтинга */
.sdgm--gotball {
	--sdgm-accent: #f07a1a;
	--sdgm-glow: rgba(240, 122, 26, .45);
}

.sdgm--gotball .sdgm-icon img {
	display: block;
	width: 28px;
	height: 28px;
}

.sdgm-row--gotball {
	grid-template-columns: 34px 36px minmax(0, 1fr) 56px;
}

.sdgm-row--gotball.sdgm-row--head > span:nth-child(2) {
	grid-column: 2 / 4;
}

.sdgm-row--gotball .sdgm-val {
	text-align: right;
}

/* Плашка на странице новости/видео, если мяч уже забрали */
.gotball-pageClaim {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	background: #fff8e6;
	border: 1px solid #ffe0a3;
	border-radius: 12px;
	padding: 10px 14px;
	margin: 20px 0 12px;
	font-size: 14px;
	line-height: 1.35;
	color: #1a1a1a;
}

.gotball-pageClaim__ball {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

.gotball-pageClaim__name a {
	font-weight: 700;
	color: inherit;
}

/* Скрытый мяч на странице */
.gotball-hidden {
	position: absolute;
	width: 18px;
	height: 18px;
	padding: 0;
	margin: 0;
	border: 0;
	background: transparent url('/interactive/gotball.svg') center / contain no-repeat;
	cursor: pointer;
	z-index: 40;
	pointer-events: auto;
	opacity: 0.95;
	transition: transform 0.15s ease;
	-webkit-tap-highlight-color: transparent;
}

.gotball-hidden:hover,
.gotball-hidden:focus {
	transform: scale(1.15);
	outline: none;
}

.gotball-hidden.is-claimed {
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.25s ease, transform 0.25s ease;
	transform: scale(2.4) rotate(40deg);
}

/* ===== Arcade FX overlay ===== */
.gotball-fx {
	position: fixed;
	inset: 0;
	z-index: 100000;
	pointer-events: none;
	overflow: hidden;
	background: radial-gradient(ellipse at center, rgba(8, 12, 40, 0.55) 0%, rgba(4, 6, 20, 0.82) 100%);
	animation: gotball-fx-in 0.25s ease-out;
}

.gotball-fx.is-outro {
	animation: gotball-fx-out 0.35s ease-in forwards;
}

.gotball-fx__vignette {
	position: absolute;
	inset: 0;
	box-shadow: inset 0 0 120px 40px rgba(0, 0, 0, 0.55);
	pointer-events: none;
}

.gotball-fx__flash {
	position: absolute;
	inset: 0;
	background: #fff;
	opacity: 0;
	pointer-events: none;
}

.gotball-fx__flash.is-bang {
	animation: gotball-flash 0.35s ease-out;
}

.gotball-fx__scan {
	position: absolute;
	inset: 0;
	background: repeating-linear-gradient(
		0deg,
		transparent,
		transparent 2px,
		rgba(255, 255, 255, 0.03) 2px,
		rgba(255, 255, 255, 0.03) 4px
	);
	mix-blend-mode: overlay;
	pointer-events: none;
	opacity: 0.6;
}

.gotball-fx__rain {
	position: absolute;
	inset: 0;
	overflow: hidden;
}

.gotball-fx__drop {
	position: absolute;
	top: -48px;
	width: 22px;
	height: 22px;
	background: url('/interactive/gotball.svg') center / contain no-repeat;
	animation: gotball-fall linear forwards;
	opacity: 0.95;
	filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
	will-change: transform;
}

.gotball-fx__burst {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 0;
	height: 0;
	pointer-events: none;
}

.gotball-fx__spark {
	position: absolute;
	left: 0;
	top: 0;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #ffe566;
	box-shadow: 0 0 10px #ffcc33, 0 0 2px #fff;
	animation: gotball-spark 0.7s ease-out forwards;
}

.gotball-fx__ring {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 40px;
	height: 40px;
	margin: -20px 0 0 -20px;
	border: 3px solid #ffcc33;
	border-radius: 50%;
	opacity: 0;
	pointer-events: none;
}

.gotball-fx__ring.is-bang {
	animation: gotball-ring 0.55s ease-out forwards;
}

.gotball-fx__words {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	perspective: 800px;
}

.gotball-fx__word {
	font-family: "Arial Black", "Helvetica Neue", Arial, "Segoe UI", sans-serif;
	font-weight: 900;
	font-size: clamp(64px, 16vw, 128px);
	line-height: 0.95;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #fff;
	-webkit-text-stroke: 3px #0a0e24;
	paint-order: stroke fill;
	text-shadow:
		0 0 12px rgba(255, 180, 40, 0.85),
		0 0 40px rgba(255, 120, 0, 0.55),
		0 8px 0 #1a1208,
		0 14px 28px rgba(0, 0, 0, 0.55);
	opacity: 0;
	transform: scale(3) rotateX(40deg);
	position: absolute;
	white-space: nowrap;
	user-select: none;
}

.gotball-fx__word.is-show {
	animation: gotball-slam 1.05s cubic-bezier(0.15, 0.85, 0.25, 1) forwards;
}

.gotball-fx__word--vy {
	color: #ffe566;
}

.gotball-fx__word--vzyali {
	color: #fff;
}

.gotball-fx__word--myach {
	color: #ff8a3d;
}

.gotball-fx__plus {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.08em;
	opacity: 0;
	transform: scale(0.2) rotate(-12deg);
	position: absolute;
	user-select: none;
	text-align: center;
}

.gotball-fx__plusNum {
	font-family: "Arial Black", "Helvetica Neue", Arial, "Segoe UI", sans-serif;
	font-weight: 900;
	font-size: clamp(96px, 22vw, 180px);
	line-height: 0.9;
	color: #39ff14;
	-webkit-text-stroke: 4px #06200a;
	paint-order: stroke fill;
	text-shadow:
		0 0 20px rgba(57, 255, 20, 0.9),
		0 0 60px rgba(57, 255, 20, 0.5),
		0 10px 0 #0a3d12,
		0 18px 36px rgba(0, 0, 0, 0.55);
}

.gotball-fx__plusLabel {
	font-family: "Arial Black", "Helvetica Neue", Arial, "Segoe UI", sans-serif;
	font-weight: 900;
	font-size: clamp(22px, 5.5vw, 42px);
	line-height: 1;
	letter-spacing: 0.14em;
	color: #ffe566;
	-webkit-text-stroke: 2px #1a1208;
	paint-order: stroke fill;
	text-shadow:
		0 0 12px rgba(255, 180, 40, 0.85),
		0 4px 0 #1a1208,
		0 10px 22px rgba(0, 0, 0, 0.45);
}

.gotball-fx__plus.is-show {
	animation: gotball-score 1.35s cubic-bezier(0.2, 0.9, 0.25, 1) forwards;
}

.gotball-fx.is-shake {
	animation: gotball-shake 0.45s linear;
}

@keyframes gotball-fx-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes gotball-fx-out {
	to { opacity: 0; }
}

@keyframes gotball-flash {
	0% { opacity: 0.85; }
	100% { opacity: 0; }
}

@keyframes gotball-fall {
	0% {
		transform: translate3d(0, 0, 0) rotate(0deg) scale(0.6);
		opacity: 0;
	}
	10% {
		opacity: 1;
	}
	100% {
		transform: translate3d(var(--drift, 0px), 115vh, 0) rotate(720deg) scale(1);
		opacity: 0.75;
	}
}

@keyframes gotball-slam {
	0% {
		opacity: 0;
		transform: scale(3.2) rotateX(55deg) translateY(-40px);
		filter: blur(6px);
	}
	12% {
		opacity: 1;
		transform: scale(0.88) rotateX(0deg) translateY(0);
		filter: blur(0);
	}
	22% {
		transform: scale(1.12) rotateX(0deg);
	}
	35% {
		transform: scale(1) rotateX(0deg);
	}
	78% {
		opacity: 1;
		transform: scale(1) translateY(0);
	}
	100% {
		opacity: 0;
		transform: scale(1.35) translateY(-18px);
		filter: blur(2px);
	}
}

@keyframes gotball-score {
	0% {
		opacity: 0;
		transform: scale(0.15) rotate(-18deg);
		filter: blur(4px);
	}
	14% {
		opacity: 1;
		transform: scale(1.25) rotate(4deg);
		filter: blur(0);
	}
	28% {
		transform: scale(0.92) rotate(-2deg);
	}
	42% {
		transform: scale(1.08) rotate(1deg);
	}
	70% {
		opacity: 1;
		transform: scale(1) rotate(0deg);
	}
	100% {
		opacity: 0;
		transform: scale(1.4) translateY(-30px);
	}
}

@keyframes gotball-ring {
	0% {
		opacity: 1;
		transform: scale(0.4);
	}
	100% {
		opacity: 0;
		transform: scale(6);
	}
}

@keyframes gotball-spark {
	0% {
		opacity: 1;
		transform: translate(0, 0) scale(1);
	}
	100% {
		opacity: 0;
		transform: translate(var(--sx), var(--sy)) scale(0.2);
	}
}

@keyframes gotball-shake {
	0%, 100% { transform: translate(0, 0); }
	15% { transform: translate(-10px, 4px); }
	30% { transform: translate(12px, -6px); }
	45% { transform: translate(-8px, -3px); }
	60% { transform: translate(9px, 5px); }
	75% { transform: translate(-5px, 2px); }
}

.sdgm__rules p {
	margin: 0 0 12px;
	font-size: 15px;
	line-height: 1.45;
}
