/*
 * Banner module styles.
 *
 * Scope: .spkx-banner
 * Spec: Banner/Popup/Detailpop.txt + Banner/Sticky/Detailst.txt
 */

.spkx-banner {
	font-family: Poppins, "Trebuchet MS", Arial, sans-serif;
	color: #3D2369;
}

.spkx-banner *,
.spkx-banner *::before,
.spkx-banner *::after {
	box-sizing: border-box;
}

.spkx-banner button,
.spkx-banner a {
	font-family: inherit;
}

.spkx-banner img {
	max-width: 100%;
	border: 0;
	border-radius: 0;
}

/* ---------------------------------------------------------------- Popup */

.spkx-dialog {
	border: 0;
	padding: 8px 8px 0;
	/* Fit the full artboard on short viewports, including dialog padding. */
	width: min(436px, 100%, calc((100svh - 8px) * 0.87826087 + 16px));
	max-width: 100%;
	max-height: 100svh;
	background: transparent;
	overflow-x: hidden;
	color: #3D2369;
}

.spkx-dialog::backdrop {
	background: rgba(35, 24, 43, 0.61);
	backdrop-filter: blur(7px);
}

body:has(.spkx-dialog[open]) {
	overflow: hidden;
}

.spkx-popup-art {
	position: relative;
	width: 100%;
	aspect-ratio: 404 / 460;
	container-type: inline-size;
	isolation: isolate;
	filter: drop-shadow(rgba(20, 4, 35, 0.2) 0 18px 24px);
}

.spkx-card-surface {
	position: absolute;
	left: 9.1584%;
	top: 4.7826%;
	width: 81.6832%;
	height: 76.5217%;
	border: 1.5693cqw solid #FFE183;
	border-radius: 34px 34px 24px 24px;
	background: linear-gradient(0deg, #C1A1FF 2.51%, #FFFFFF 55.5%);
}

.spkx-brand-badge {
	position: absolute;
	z-index: 2;
	top: 0.2587%;
	left: 30.0074%;
	width: 41.1892%;
	height: 8.8984%;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0.5891cqw solid #FFE183;
	border-radius: 28px;
	background: #FFFFFF;
}

.spkx-brand-badge img {
	display: block;
	width: 84%;
	height: auto;
}

.spkx-banner .spkx-close-button {
	position: absolute;
	z-index: 3;
	left: 93.5644%;
	top: 0.2174%;
	width: 5.9406%;
	height: 5.2174%;
	display: grid;
	place-items: center;
	padding: 0;
	min-width: 0;
	min-height: 0;
	line-height: 1;
	border: 0;
	border-radius: 50%;
	color: #F5F5F5;
	background: transparent;
	cursor: pointer;
}

.spkx-banner .spkx-close-button img {
	display: block;
	width: 100%;
	height: 100%;
	pointer-events: none;
	filter: brightness(0) invert(1) brightness(0.960784);
}

.spkx-banner .spkx-close-button::before {
	content: "";
	position: absolute;
	right: 0;
	top: 0;
	width: max(44px, 100%);
	height: max(44px, 100%);
}

.spkx-banner .spkx-close-button:hover,
.spkx-banner .spkx-close-button:focus {
	border: 0;
	background: transparent;
	color: #F5F5F5;
	box-shadow: none;
}

.spkx-banner .spkx-close-button:hover img {
	opacity: 0.8;
}

.spkx-banner .spkx-close-button:focus-visible {
	outline: 2px solid #FFFFFF;
	outline-offset: 2px;
	background: rgba(255, 255, 255, 0.15);
}

.spkx-offer {
	position: absolute;
	top: 13.7%;
	left: 11%;
	width: 78%;
	text-align: center;
}

.spkx-limited {
	font-size: 3.4653cqw;
	font-weight: 700;
	color: #6700E5;
	line-height: 1.65;
	margin: 0;
}

.spkx-limited span { color: #F5B92B; }

.spkx-promo-title {
	position: relative;
	font-family: inherit;
	font-size: 4.703cqw;
	font-weight: 700;
	line-height: 1.45;
	margin: 0 auto;
	width: fit-content;
	color: #3D2369;
	letter-spacing: normal;
	text-transform: none;
}

.spkx-promo-title strong {
	display: block;
	color: #F55A00;
	font-size: 5.4455cqw;
	font-weight: 700;
	line-height: 1.3;
}

.spkx-money {
	position: absolute;
	left: -7.5cqw;
	top: 0;
	font-size: 5.7cqw;
	line-height: 1.2;
	display: inline-block;
	transform: rotate(8.63deg);
	transform-origin: center center;
	font-weight: 700;
	color: #000000;
}

.spkx-countdown-label {
	margin: 3.4653cqw 0 1.2376cqw;
	font-size: 2.9703cqw;
	font-weight: 700;
	color: #896EAB;
}

.spkx-timer {
	display: grid;
	grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
	align-items: start;
	gap: 1.2376cqw;
	margin: 0 2cqw;
	font-weight: 700;
	color: #F55A00;
	font-variant-numeric: tabular-nums;
}

.spkx-timer > div {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.spkx-timer span {
	font-size: 7.9208cqw;
	line-height: 1.25;
	letter-spacing: 0;
}

.spkx-timer small {
	color: #896EAB;
	font-size: 2.9703cqw;
	margin-top: 0.7426cqw;
	font-weight: 700;
}

.spkx-sep {
	align-self: start;
	color: #F55A00;
	font-size: 7.9208cqw;
	line-height: 1.25;
}

/* Band + grass stage */
.spkx-stage-base {
	position: absolute;
	left: 0.0198%;
	top: 64.35%;
	width: 99.9629%;
	height: 35.2839%;
	border-radius: 50% 50% 50% 50% / 35.07465% 35.07465% 64.92535% 64.92535%;
	overflow: hidden;
	background: linear-gradient(180deg, #A4D467 68.3%, #7AC55E 98.93%);
}

.spkx-stage-top {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 70.1493%;
	border-radius: 50%;
	background: linear-gradient(109.32deg, #BDE082 -0.5%, #8DD066 33.65%, #4DBA4E 67.8%, #3DB549 77.22%);
}

.spkx-band {
	position: absolute;
	left: 10.5074%;
	top: 50.6522%;
	width: 80.0509%;
	filter: drop-shadow(0 4px 3px #32691D30);
}

.spkx-band img {
	width: 100%;
	height: auto;
	display: block;
}

.spkx-music-note {
	position: absolute;
	color: #8660BF;
	font-weight: 700;
	font-size: 24px;
}
.spkx-note-left { left: 15%; top: 52%; transform: rotate(-18deg); }
.spkx-note-right { right: 15%; top: 52%; transform: rotate(15deg); }

.spkx-claim-button {
	position: absolute;
	left: 29.2079%;
	top: 86.5217%;
	width: 40.099%;
	height: 8.2653%;
	display: flex;
	gap: 1.0223cqw;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	border-radius: 41.33px;
	color: #FFFFFF;
	font-size: 3.6832cqw;
	line-height: 1;
	font-weight: 700;
	text-decoration: none;
	background: #7C3AED;
	box-shadow: rgba(66, 36, 114, 0.125) 0 3px 8px;
	transition: transform 0.15s, box-shadow 0.15s;
	z-index: 3;
}

.spkx-claim-button img {
	width: 4.703cqw;
	height: 4.703cqw;
}

.spkx-claim-button:hover {
	transform: translateY(-2px);
	box-shadow: #5C27BB 0 7px 0, rgba(66, 36, 114, 0.25) 0 11px 20px;
}

.spkx-claim-button:active {
	transform: translateY(2px);
	box-shadow: #5C27BB 0 2px 0;
}

/* --------------------------------------------------------------- Sticky */

.spkx-sticky {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 9990;
	border-top: 5px solid #1DAD2D;
	background: #FFFFFF;
	padding-bottom: env(safe-area-inset-bottom, 0px);
	box-shadow: rgba(52, 33, 75, 0.04) 0 -4px 24px;
	max-height: 50svh;
	overflow-y: auto;
	font-family: Poppins, "Trebuchet MS", Arial, sans-serif;
}

.spkx-sticky-inner {
	max-width: 1040px;
	min-height: 90px;
	margin: 0 auto;
	padding: 16px 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 28px;
}

.spkx-sticky-message {
	display: flex;
	align-items: center;
	gap: 9px;
	flex-shrink: 0;
}

.spkx-sticky-money {
	display: inline-block;
	transform: rotate(8.63deg);
	transform-origin: center;
	color: #000000;
	font-weight: 700;
	font-size: 36.69px;
	line-height: 1.25;
	flex-shrink: 0;
}

.spkx-sticky-eyebrow {
	margin: 0;
	color: #6700E5;
	font-size: 14px;
	font-weight: 700;
	line-height: 23px;
	text-align: center;
}

.spkx-sticky-eyebrow span { color: #FFC83D; }

.spkx-sticky-headline {
	margin: 0;
	color: #3D2369;
	font-size: 19px;
	font-weight: 700;
	line-height: 33px;
}

.spkx-sticky-headline strong {
	color: #F55A00;
	font-weight: 700;
}

.spkx-sticky-countdown {
	display: flex;
	align-items: center;
	gap: 16px;
	border-left: 2px solid #C8C8C8;
	padding-left: 24px;
}

.spkx-sticky-label {
	margin: 0;
	color: #8D8D8D;
	font-size: 12px;
	font-weight: 700;
	white-space: nowrap;
}

.spkx-sticky-timer {
	display: grid;
	grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
	gap: 6px;
	color: #F55A00;
	font-size: 27px;
	font-weight: 700;
	line-height: 1.2;
	font-variant-numeric: tabular-nums;
}

.spkx-sticky-timer > div {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 37px;
}

.spkx-sticky-timer small {
	color: #8D8D8D;
	font-size: 10px;
	line-height: 1.5;
	font-weight: 400;
}

.spkx-sticky-claim {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	flex: 0 0 196px;
	width: 196px;
	min-height: 46px;
	padding: 3px 12px;
	border: 0;
	border-radius: 50px;
	background: #1DAD2D;
	color: #FFFFFF;
	font-size: 18px;
	font-weight: 700;
	line-height: 40px;
	text-decoration: none;
}

.spkx-sticky-claim img {
	width: 24px;
	height: 24px;
}

.spkx-sticky-claim:hover {
	background: #169124;
}

.spkx-sticky-claim:focus-visible {
	outline: 3px solid #3D2369;
	outline-offset: 2px;
}

/* Reserve room so the sticky never covers page content. */
body.spkx-has-sticky {
	padding-bottom: var(--spkx-sticky-height, 110px);
}

/* ----------------------------------------------------------- Responsive */

@media (max-width: 1000px) {
	.spkx-sticky-inner {
		gap: 20px;
	}
	.spkx-sticky-countdown {
		flex-direction: column;
		gap: 3px;
		padding-left: 20px;
	}
}

@media (max-width: 800px) {
	.spkx-sticky-inner {
		display: grid;
		grid-template-columns: 1fr auto;
		gap: 10px 20px;
		max-width: 560px;
		padding: 12px 16px;
	}
	.spkx-sticky-message {
		grid-column: 1 / -1;
		justify-content: center;
	}
	.spkx-sticky-countdown {
		border-left: 0;
		padding-left: 0;
		align-items: flex-start;
	}
	.spkx-sticky-eyebrow {
		font-size: 12px;
		line-height: 20px;
	}
	.spkx-sticky-headline {
		font-size: 16px;
		line-height: 25px;
	}
	.spkx-sticky-money {
		font-size: 28px;
	}
	.spkx-sticky-claim {
		width: 170px;
		font-size: 16px;
	}
	.spkx-sticky-timer {
		font-size: 24px;
		gap: 4px;
	}
	.spkx-sticky-timer > div {
		min-width: 32px;
	}
	.spkx-sticky-label {
		font-size: 10px;
	}
	body.spkx-has-sticky {
		--spkx-sticky-height: 175px;
	}
}

@media (max-width: 420px) {
	.spkx-sticky-inner {
		gap: 10px;
		padding: 10px 12px;
	}
	.spkx-sticky-headline {
		font-size: 14px;
	}
	.spkx-sticky-claim {
		width: 134px;
		font-size: 13px;
		padding: 3px 8px;
	}
	.spkx-sticky-claim img {
		width: 20px;
		height: 20px;
	}
	.spkx-sticky-timer {
		font-size: 21px;
		gap: 3px;
	}
	.spkx-sticky-timer > div {
		min-width: 27px;
	}
	.spkx-sticky-timer small {
		font-size: 9px;
	}
}

@media (max-width: 340px) {
	.spkx-sticky-inner { grid-template-columns: 1fr; }
	.spkx-sticky-message { gap: 4px; }
	.spkx-sticky-countdown { align-items: center; }
	.spkx-sticky-claim { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	.spkx-banner *,
	.spkx-banner *::before,
	.spkx-banner *::after {
		transition: none !important;
	}
}
