/* Jackpotz Christmas v1.1: thank-you and account page touches. */

.jpz-xmp-sky, .jpz-xmp-flake, .jpz-xmp-present, .jpz-xmp-treeico, .jpz-xmp-holly, .jpz-xmp-bauble,
.jpz-xmp-snowman, .jpz-xmp-hat, .jpz-xmp-tag, .jpz-xmp-gifts,
.jpz-xmp-banner__moon, .jpz-xmp-banner__ground, .jpz-xmp-banner__gifts { pointer-events: none; }

/* Snow resting along the top edge of a box */
.jpz-xmp-snowtop { position: absolute; left: 0; top: 0; width: 100%; height: 12px; z-index: 4; pointer-events: none; display: block; }
.jpz-xmp-snowtop.is-banner { height: 11px; }
.jpz-xmp-snowtop.is-card { height: 13px; }
.jpz-xm-acc .jpz-dh > .jpz-xmp-snowtop { z-index: 0; }
a.jpz-xmp-snowy { position: relative; overflow: hidden; }
.jpz-xmp-snowtop.is-btn { height: 8px; }

/* Mini snowfall canvas fills its box, behind the text */
.jpz-xmp-sky { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }

/* ======================= Thank-you page ======================= */

/* 1. Snowy Christmas night banner */
main.thankyou > .jpz-xmp-banner {
	position: relative;
	overflow: hidden;
	display: flex;
	align-items: center;
	min-height: 116px;
	margin: 0 0 16px;
	padding: 18px 150px 26px 24px;
	border-radius: 18px;
	box-sizing: border-box;
	color: #fff;
	background:
		radial-gradient(60% 120% at 86% 0%, rgba(160, 200, 255, .22), transparent 60%),
		radial-gradient(80% 140% at 0% 100%, rgba(255, 76, 212, .22), transparent 60%),
		linear-gradient(170deg, #0b1733 0%, #16305e 60%, #0f1f40 100%);
	box-shadow: 0 8px 26px rgba(12, 28, 64, .3);
	font-family: Helvetica, Arial, sans-serif;
	animation: jpz-xmp-rise .5s cubic-bezier(.2, .7, .3, 1) both;
}
main.thankyou > .jpz-xmp-banner::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		radial-gradient(1.4px 1.4px at 12% 22%, rgba(255,255,255,.8), transparent),
		radial-gradient(1px 1px at 30% 64%, rgba(255,255,255,.6), transparent),
		radial-gradient(1.4px 1.4px at 46% 16%, rgba(255,255,255,.7), transparent),
		radial-gradient(1px 1px at 60% 52%, rgba(255,255,255,.5), transparent),
		radial-gradient(1.2px 1.2px at 70% 18%, rgba(255,255,255,.7), transparent),
		radial-gradient(1px 1px at 93% 46%, rgba(255,255,255,.6), transparent);
	animation: jpz-xmp-twinkle 4s ease-in-out infinite alternate;
	pointer-events: none;
}
.jpz-xmp-banner__text { position: relative; z-index: 3; display: flex; flex-direction: column; gap: 4px; }
.jpz-xmp-banner__text strong {
	font-size: 24px;
	line-height: 1.15;
	font-weight: 800;
	letter-spacing: -.01em;
	color: #fff;
	text-shadow: 0 0 14px rgba(190, 220, 255, .55);
}
.jpz-xmp-banner__text span { font-size: 14px; line-height: 1.45; color: rgba(255, 255, 255, .86); }

.jpz-xmp-banner__moon {
	position: absolute;
	top: 12px;
	right: 120px;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	z-index: 1;
	background: radial-gradient(circle at 38% 38%, #ffffff 0%, #eef3ff 55%, #cfdaf2 100%);
	box-shadow: 0 0 22px rgba(220, 232, 255, .5), 0 0 56px rgba(220, 232, 255, .22);
}
/* Snowy ground along the bottom */
.jpz-xmp-banner__ground {
	position: absolute;
	left: -2%;
	right: -2%;
	bottom: -14px;
	height: 30px;
	z-index: 2;
	border-radius: 50% 50% 0 0 / 100% 100% 0 0;
	background: linear-gradient(#ffffff, #e3ecfa);
	opacity: .95;
}
.jpz-xmp-banner__gifts { position: absolute; right: 16px; bottom: 6px; z-index: 3; width: 92px; }
.jpz-xmp-gifts { display: block; width: 100%; height: auto; }

/* 2. Bauble swinging over the order card's header picture */
main.thankyou > section.card.infolot .jpz-xmp-bauble {
	position: absolute;
	top: 0;
	right: 18%;
	z-index: 3;
	display: flex;
	flex-direction: column;
	align-items: center;
	transform-origin: 50% 0;
	animation: jpz-xmp-swing 7s ease-in-out infinite alternate;
}
.jpz-xmp-bauble__ribbon { display: block; width: 2px; height: 54px; background: linear-gradient(#c9a227, #ffd43b); }
.jpz-xmp-bauble svg { display: block; width: 30px; height: auto; margin-top: -1px; filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .25)); }

/* 3. Win cards: warm red-and-gold glow + Ho ho ho! tag */
main.thankyou > section.card.jpz-xmp-win::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: inherit;
	pointer-events: none;
	animation: jpz-xmp-winglow 3.2s ease-in-out infinite;
}
.jpz-xmp-tag {
	position: relative;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin-left: 10px;
	padding: 4px 10px 4px 6px;
	border-radius: 999px;
	background: linear-gradient(95deg, #c0122f, #e11d48 55%, #1f8a4c);
	color: #fff;
	font: 800 11px/1 Helvetica, Arial, sans-serif;
	letter-spacing: .05em;
	text-transform: uppercase;
	vertical-align: 3px;
	white-space: nowrap;
	box-shadow: 0 3px 10px rgba(192, 18, 47, .28);
	transform: rotate(-3deg);
	animation: jpz-xmp-jingle 6s ease-in-out infinite;
}
.jpz-xmp-tag .jpz-xmp-present { width: 15px; height: auto; }

/* 4. No instant win: a snowman saying "Brrr!" */
main.thankyou > section.card.jpz-xmp-nowin { padding-right: 112px !important; }
.jpz-xmp-snowman {
	position: absolute;
	right: 24px;
	top: 50%;
	z-index: 2;
	width: 54px;
	margin-top: -38px;
	transform-origin: 50% 100%;
	animation: jpz-xmp-sway 7s ease-in-out infinite alternate;
}
.jpz-xmp-snowman svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 4px 8px rgba(80, 110, 160, .22)); }
.jpz-xmp-snowman__say {
	position: absolute;
	top: -8px;
	left: -34px;
	padding: 3px 8px;
	border-radius: 10px 10px 2px 10px;
	background: #16305e;
	color: #fff;
	font: 800 11px/1.2 Helvetica, Arial, sans-serif;
	white-space: nowrap;
}

/* 5. Holly in a card corner (order details, account menu) */
.jpz-xmp-corner { position: absolute; top: -4px; right: -4px; z-index: 2; width: 50px; height: auto; }
main.thankyou > section#order-details .jpz-xmp-corner { top: 0; right: 0; }

/* 6. Snowflakes by "What others are entering" */
.jpz-xmp-titleflakes { display: inline-flex; align-items: center; gap: 3px; margin-left: 8px; vertical-align: middle; }
.jpz-xmp-titleflakes .jpz-xmp-flake { width: 16px; height: auto; animation: none; }
.jpz-xmp-titleflakes .jpz-xmp-flake + .jpz-xmp-flake { width: 11px; }

/* 7. Present on Enter Again */
footer.bottom-bar a.btn.primary .jpz-xmp-btnico { display: inline-block; width: 16px; height: auto; margin: 0 6px -3px 0; }

/* ======================= Account pages ======================= */

/* 1. Santa hat on the avatar */
.jpz-xm-acc .jpz-head__avatar { position: relative; overflow: visible !important; }
.jpz-xmp-hat {
	position: absolute;
	/* perched on the top-left corner of the avatar, tipped at a jaunty angle */
	top: -15px;
	left: -9px;
	right: auto;
	width: 42px;
	height: auto;
	margin: 0;
	transform: rotate(-24deg);
	transform-origin: 30% 80%;
	filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .25));
	pointer-events: none;
	z-index: 2;
}

/* 2. Welcome panel: snow behind the content, plus a chip */
.jpz-xm-acc .jpz-dh { isolation: isolate; }
.jpz-xm-acc .jpz-dh > .jpz-xmp-sky { z-index: -1; }
.jpz-xmp-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 10px;
	padding: 5px 11px 5px 7px;
	border-radius: 999px;
	background: rgba(31, 184, 90, .16);
	border: 1px solid rgba(120, 220, 150, .45);
	color: #d9ffe6;
	font: 700 12px/1 Helvetica, Arial, sans-serif;
	letter-spacing: .03em;
}
.jpz-xmp-chip .jpz-xmp-treeico { width: 15px; height: auto; }

/* 3. Points bar: candy-cane stripes */
.jpz-xm-acc .jpz-pts__bar > span {
	background: repeating-linear-gradient(-45deg, #e11d48 0 7px, #ffffff 7px 14px) !important;
}

/* 4. Account menu: holly tucked on the top-right corner */
.jpz-xm-acc .jpz-nav > .jpz-xmp-corner { top: -10px; right: -10px; }

/* 5. Tiles: a little snowflake twirls in on hover */
.jpz-xm-acc .jpz-account a.jpz-tile,
.jpz-xm-acc .jpz-account a.jpz-dw__tile { position: relative; }
.jpz-xmp-peek {
	position: absolute;
	top: 10px;
	right: 12px;
	width: 22px;
	height: auto;
	opacity: 0;
	transform: scale(.4) rotate(-90deg);
	transition: opacity .25s ease, transform .45s cubic-bezier(.2, .8, .3, 1.3);
}
a.jpz-tile:hover .jpz-xmp-peek, a.jpz-dw__tile:hover .jpz-xmp-peek,
a.jpz-tile:focus-visible .jpz-xmp-peek, a.jpz-dw__tile:focus-visible .jpz-xmp-peek {
	opacity: 1;
	transform: scale(1) rotate(0deg);
}
.jpz-xmp-inline { display: inline-block; width: 14px; height: auto; margin: 0 0 -2px 6px; }

/* ======================= Motion ======================= */

@keyframes jpz-xmp-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes jpz-xmp-twinkle { from { opacity: .55; } to { opacity: 1; } }
}
@keyframes jpz-xmp-swing { from { transform: rotate(-2deg); } to { transform: rotate(2deg); } }
@keyframes jpz-xmp-winglow {
	0%, 100% { box-shadow: inset 0 0 0 1.5px rgba(225, 29, 72, .32), inset 0 0 18px rgba(255, 201, 59, .12), inset 0 0 40px rgba(31, 138, 76, .06); }
	50%      { box-shadow: inset 0 0 0 2px rgba(225, 29, 72, .62), inset 0 0 26px rgba(255, 201, 59, .24), inset 0 0 56px rgba(31, 138, 76, .14); }
}
@keyframes jpz-xmp-jingle { 0%, 100% { transform: rotate(-1deg); } 50% { transform: rotate(1deg); } }
@keyframes jpz-xmp-sway { from { transform: rotate(-1.5deg); } to { transform: rotate(1.5deg); } }
@keyframes jpz-xmp-spin { to { transform: rotate(360deg); } }
@keyframes jpz-xmp-tip { 0%, 100% { transform: rotate(-9deg); } 50% { transform: rotate(-7deg); } }

/* ======================= Phones ======================= */

@media (max-width: 767px) {
	main.thankyou > .jpz-xmp-banner { min-height: 104px; padding: 14px 96px 22px 16px; border-radius: 16px; }
	.jpz-xmp-banner__text strong { font-size: 19px; }
	.jpz-xmp-banner__text span { font-size: 12.5px; }
	.jpz-xmp-banner__moon { right: 70px; width: 34px; height: 34px; top: 10px; }
	.jpz-xmp-banner__gifts { right: 8px; width: 70px; }

	main.thankyou > section.card.infolot .jpz-xmp-bauble { right: 12%; }

	.jpz-xmp-tag { margin-left: 6px; font-size: 10px; padding: 3px 8px 3px 5px; }

	main.thankyou > section.card.jpz-xmp-nowin { padding-right: 16px !important; padding-top: 60px !important; }
	.jpz-xmp-snowman { top: 8px; right: 14px; width: 40px; margin-top: 0; }
	.jpz-xmp-snowman__say { left: -34px; top: 4px; font-size: 10px; }

	.jpz-xmp-corner { width: 40px; }
	.jpz-xmp-hat { top: -13px; left: -8px; width: 36px; }
	.jpz-xmp-peek { width: 20px; }
}

@media (prefers-reduced-motion: reduce) {
	.jpz-xmp-banner, .jpz-xmp-banner::before, .jpz-xmp-banner *, .jpz-xmp-bauble, .jpz-xmp-tag,
	.jpz-xmp-snowman, .jpz-xmp-hat, .jpz-xmp-flake, .jpz-xmp-peek,
	main.thankyou > section.card.jpz-xmp-win::after { animation: none !important; }
}
@media print {
	.jpz-xmp-banner, .jpz-xmp-bauble, .jpz-xmp-tag, .jpz-xmp-snowman, .jpz-xmp-hat, .jpz-xmp-sky,
	.jpz-xmp-chip, .jpz-xmp-corner, .jpz-xmp-peek, .jpz-xmp-titleflakes { display: none !important; }
}

/* ---------- Login / Create an account page ---------- */
#content.jpz-lp.jpz-xmp-lp {
	background: radial-gradient(120% 90% at 85% 10%, #4a0f22 0%, #141a2c 55%, #0b0f1a 100%) !important;
}
#content.jpz-xmp-lp .jpz-lp__spot {
	background: conic-gradient(from 200deg at 80% 0%, rgba(225, 29, 72, 0), rgba(225, 29, 72, .14), rgba(255, 210, 74, 0), rgba(31, 184, 90, .1), rgba(225, 29, 72, 0)) !important;
}
/* party balloons and confetti make way for Christmas floats and snow */
#content.jpz-xmp-lp .jpz-lp__flt:not(.jpz-xmp-lpf), #content.jpz-xmp-lp .jpz-lp__conf { display: none !important; }
#content.jpz-xmp-lp .jpz-xmp-lpf { opacity: .8; }
#content .jpz-xmp-lpsnow {
	position: absolute; top: -20px; width: var(--s, 4px) !important; height: var(--s, 4px) !important;
	border-radius: 50%; background: #fff; opacity: .7; will-change: transform;
	animation: jpz-xmp-lpfall var(--d, 16s) linear infinite; animation-delay: var(--dl, 0s);
}
#content .jpz-xmp-lpsnow.is-flake { background: none; opacity: .55; }
#content .jpz-xmp-lpsnow svg { display: block; width: 100%; height: 100%; }
@keyframes jpz-xmp-lpfall {
	from { transform: translate3d(0, 0, 0) rotate(0); }
	50%  { transform: translate3d(12px, 50vh, 0) rotate(90deg); }
	to   { transform: translate3d(-6px, calc(100vh + 120px), 0) rotate(180deg); }
}

#content .jpz-xmp-lplights { position: absolute; top: 0; left: 0; right: 0; z-index: 1; pointer-events: none; opacity: .9; }
#content .jpz-xmp-lplights svg { display: block; width: 100%; height: auto; max-height: 40px; }
#content .jpz-xmp-lpbulb { animation: jpz-xmp-lpglow 4s ease-in-out infinite; }
@keyframes jpz-xmp-lpglow { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }

#content .jpz-xmp-lpground {
	position: absolute; left: 0; right: 0; bottom: 0; height: 34px; z-index: 0; pointer-events: none; opacity: .22;
	background: no-repeat bottom / 100% 100% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 34' preserveAspectRatio='none'%3E%3Cpath d='M0 16Q40 4 90 13T190 10T290 15T400 9V34H0Z' fill='%23fff'/%3E%3C/svg%3E");
}

#content .jpz-xmp-lpholly { display: inline-block; width: 24px; margin: 0 8px 0 0; vertical-align: -5px; }
#content .jpz-xmp-lpholly svg { display: block; width: 100%; height: auto; }
#content .jpz-xmp-lpmerry { color: #ffd2dc; }
#content.jpz-xmp-lp .jpz-lp__inner { padding-top: 14px; }

@media (max-width: 767px) {
	/* "Join the fun · Merry Christmas" on one line, and the heading on one line too */
	#content.jpz-xmp-lp .jpz-lp__kicker { font-size: 2.75vw !important; letter-spacing: .45vw !important; white-space: nowrap; }
	#content .jpz-xmp-lpholly { width: 18px; margin-right: 5px; vertical-align: -4px; }
	#content.jpz-xmp-lp .jpz-lp__title { font-size: clamp(20px, 6.5vw, 31px) !important; white-space: nowrap; }
	#content.jpz-xmp-lp .jpz-lp__tabs button, #content.jpz-xmp-lp .jpz-lp__tabs a { font-size: clamp(10px, 3vw, 12px) !important; letter-spacing: .03em !important; white-space: nowrap; }
	#content.jpz-xmp-lp .jpz-xmp-lpf { opacity: .45; }
}
@media (prefers-reduced-motion: reduce) {
	#content .jpz-xmp-lpsnow, #content .jpz-xmp-lpbulb { animation: none; }
	#content .jpz-xmp-lpsnow { display: none; }
}
