#sx-scratch-overlay {
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	background: rgba(8, 11, 20, 0.6);
	backdrop-filter: blur(6px) saturate(1.1);
	-webkit-backdrop-filter: blur(6px) saturate(1.1);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

#sx-scratch-overlay.sx-hidden {
	display: none;
}

#sx-scratch-overlay .sx-card {
	position: relative;
	width: min(460px, 100%);
	background: linear-gradient(180deg, #ffffff 0%, #f7f8fc 100%);
	border: 1px solid rgba(255, 255, 255, 0.6);
	border-radius: 28px;
	box-shadow:
		0 2px 6px rgba(9, 14, 29, 0.08),
		0 24px 60px rgba(9, 14, 29, 0.35),
		0 60px 120px rgba(99, 102, 241, 0.18);
	padding: 44px 28px 28px;
	margin-top: 34px;
	text-align: center;
	font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	animation: sx-pop .45s cubic-bezier(.18, 1.1, .3, 1.08);
}

@keyframes sx-pop {
	from { transform: translateY(24px) scale(.92); opacity: 0; }
	to   { transform: translateY(0) scale(1);     opacity: 1; }
}

#sx-scratch-overlay .sx-badge {
	position: absolute;
	top: -34px;
	left: 50%;
	transform: translateX(-50%);
	width: 68px;
	height: 68px;
	border-radius: 50%;
	background: linear-gradient(135deg, #6366f1 0%, #a855f7 55%, #ec4899 100%);
	box-shadow: 0 10px 24px rgba(139, 92, 246, 0.45), inset 0 2px 6px rgba(255, 255, 255, 0.35);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 32px;
	animation: sx-float 3s ease-in-out infinite;
}

@keyframes sx-float {
	0%, 100% { transform: translateX(-50%) translateY(0); }
	50%      { transform: translateX(-50%) translateY(-5px); }
}

#sx-scratch-overlay .sx-close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: 50%;
	background: rgba(15, 23, 42, 0.05);
	font-size: 20px;
	line-height: 1;
	color: #64748b;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background .15s ease, color .15s ease, transform .15s ease;
}

#sx-scratch-overlay .sx-close:hover {
	background: rgba(15, 23, 42, 0.1);
	color: #0f172a;
	transform: rotate(90deg);
}

#sx-scratch-overlay .sx-headline {
	margin: 0 0 6px;
	font-size: clamp(24px, 5vw, 30px);
	font-weight: 800;
	color: #0f172a;
	letter-spacing: -0.03em;
	line-height: 1.15;
}

#sx-scratch-overlay .sx-tagline {
	margin: 0 0 20px;
	font-size: 14.5px;
	color: #64748b;
}

/* Animuotas gradiento rėmelis aplink kortelę */
#sx-scratch-overlay .sx-frame {
	padding: 3px;
	border-radius: 20px;
	background: linear-gradient(120deg, #6366f1, #a855f7, #ec4899, #f59e0b, #6366f1);
	background-size: 300% 300%;
	animation: sx-sheen 7s ease infinite;
	box-shadow: 0 10px 30px rgba(139, 92, 246, 0.25);
}

@keyframes sx-sheen {
	0%   { background-position: 0% 50%; }
	50%  { background-position: 100% 50%; }
	100% { background-position: 0% 50%; }
}

#sx-scratch-overlay .sx-scratch-wrap {
	position: relative;
	width: 100%;
	aspect-ratio: 8 / 5;
	border-radius: 17px;
	overflow: hidden;
	touch-action: none;
	user-select: none;
	-webkit-user-select: none;
	isolation: isolate;
}

#sx-scratch-overlay .sx-prize {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background:
		radial-gradient(90% 120% at 85% 10%, rgba(168, 85, 247, 0.55) 0%, rgba(168, 85, 247, 0) 55%),
		radial-gradient(80% 110% at 10% 90%, rgba(37, 99, 235, 0.6) 0%, rgba(37, 99, 235, 0) 60%),
		radial-gradient(70% 90% at 80% 95%, rgba(236, 72, 153, 0.4) 0%, rgba(236, 72, 153, 0) 55%),
		#0b1220;
	color: #fff;
	padding: 14px 20px;
}

#sx-scratch-overlay .sx-prize-emoji {
	font-size: 30px;
	line-height: 1;
}

#sx-scratch-overlay .sx-prize-title {
	font-size: clamp(22px, 6vw, 34px);
	font-weight: 900;
	line-height: 1.1;
	max-width: 100%;
	letter-spacing: -0.02em;
	background: linear-gradient(92deg, #93c5fd 0%, #e9d5ff 45%, #fbcfe8 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: transparent;
	filter: drop-shadow(0 4px 18px rgba(167, 139, 250, 0.45));
}

#sx-scratch-overlay .sx-prize-sub {
	font-size: clamp(13px, 3vw, 15px);
	color: rgba(255, 255, 255, 0.85);
	font-weight: 500;
}

#sx-scratch-overlay .sx-prize-note {
	margin-top: 6px;
	font-size: clamp(11px, 2.4vw, 12.5px);
	color: rgba(255, 255, 255, 0.6);
	line-height: 1.35;
	max-width: 90%;
}

#sx-scratch-overlay .sx-scratch-wrap.sx-revealed .sx-prize-emoji {
	animation: sx-bounce .6s cubic-bezier(.2, 1.4, .4, 1);
}

@keyframes sx-bounce {
	0%   { transform: scale(0); }
	70%  { transform: scale(1.25); }
	100% { transform: scale(1); }
}

#sx-scratch-overlay .sx-canvas {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	cursor: grab;
	transition: opacity .6s ease;
	z-index: 2;
}

#sx-scratch-overlay .sx-canvas:active { cursor: grabbing; }
#sx-scratch-overlay .sx-canvas.sx-fade { opacity: 0; pointer-events: none; }

/* Slenkantis blizgesys ant nenutrintos kortelės */
#sx-scratch-overlay .sx-shine {
	position: absolute;
	inset: 0;
	z-index: 3;
	pointer-events: none;
	background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, 0.4) 50%, transparent 62%);
	background-size: 260% 100%;
	animation: sx-shine-move 3.2s ease-in-out infinite;
	transition: opacity .4s ease;
	mix-blend-mode: soft-light;
}

@keyframes sx-shine-move {
	0%   { background-position: 130% 0; }
	60%  { background-position: -60% 0; }
	100% { background-position: -60% 0; }
}

#sx-scratch-overlay .sx-scratch-wrap.sx-revealed .sx-shine { opacity: 0; }

#sx-scratch-overlay .sx-hint {
	margin: 14px 0 0;
	font-size: 13px;
	color: #94a3b8;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
}

#sx-scratch-overlay .sx-hint::before { content: "👆"; font-size: 15px; }

#sx-scratch-overlay .sx-form { margin-top: 18px; }

#sx-scratch-overlay .sx-form.sx-hidden,
#sx-scratch-overlay .sx-thanks.sx-hidden,
#sx-scratch-overlay .sx-error.sx-hidden,
#sx-scratch-overlay .sx-hint.sx-hidden {
	display: none;
}

#sx-scratch-overlay .sx-form-text {
	margin: 0 0 12px;
	font-size: 16px;
	font-weight: 700;
	color: #0f172a;
	letter-spacing: -0.01em;
}

#sx-scratch-overlay .sx-row {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	justify-content: center;
}

#sx-scratch-overlay .sx-phone {
	flex: 1 1 190px;
	min-width: 0;
	padding: 13px 16px;
	font-size: 16px;
	color: #0f172a;
	background: #fff;
	border: 1.5px solid #e2e8f0;
	border-radius: 14px;
	outline: none;
	transition: border-color .15s ease, box-shadow .15s ease;
}

#sx-scratch-overlay .sx-phone::placeholder { color: #94a3b8; }

#sx-scratch-overlay .sx-phone:focus {
	border-color: #8b5cf6;
	box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15);
}

#sx-scratch-overlay .sx-submit {
	flex: 0 0 auto;
	padding: 13px 22px;
	font-size: 15.5px;
	font-weight: 700;
	letter-spacing: 0.01em;
	color: #fff;
	background: linear-gradient(92deg, #6366f1, #a855f7 60%, #ec4899);
	background-size: 160% 100%;
	border: 0;
	border-radius: 14px;
	cursor: pointer;
	box-shadow: 0 8px 20px rgba(139, 92, 246, 0.35);
	transition: transform .15s ease, box-shadow .15s ease, background-position .3s ease;
}

#sx-scratch-overlay .sx-submit:hover {
	transform: translateY(-1px);
	box-shadow: 0 12px 26px rgba(139, 92, 246, 0.45);
	background-position: 100% 0;
}

#sx-scratch-overlay .sx-submit:active { transform: translateY(0); }
#sx-scratch-overlay .sx-submit:disabled { opacity: .6; cursor: default; transform: none; }

#sx-scratch-overlay .sx-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	opacity: 0;
}

#sx-scratch-overlay .sx-consent {
	margin: 12px 0 0;
	font-size: 11.5px;
	color: #94a3b8;
	line-height: 1.45;
}

#sx-scratch-overlay .sx-error {
	margin: 10px 0 0;
	font-size: 13px;
	font-weight: 600;
	color: #e11d48;
}

#sx-scratch-overlay .sx-thanks { margin-top: 20px; }

#sx-scratch-overlay .sx-thanks-icon {
	width: 56px;
	height: 56px;
	margin: 0 auto 12px;
	border-radius: 50%;
	background: linear-gradient(135deg, #10b981, #059669);
	color: #fff;
	font-size: 28px;
	line-height: 56px;
	font-weight: 700;
	box-shadow: 0 10px 24px rgba(16, 185, 129, 0.4);
	animation: sx-bounce .5s cubic-bezier(.2, 1.4, .4, 1);
}

#sx-scratch-overlay .sx-thanks p {
	margin: 0;
	font-size: 16px;
	font-weight: 600;
	color: #0f172a;
}

@media (max-width: 420px) {
	#sx-scratch-overlay .sx-card { padding: 40px 18px 22px; border-radius: 24px; }
	#sx-scratch-overlay .sx-submit { flex: 1 1 100%; }
}
