/* Jackpotz Christmas v1.10: one fixed overlay, nothing clickable, nothing tied to page scroll. */

#jpz-xm {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	/* Large-viewport height: the mobile address bar showing/hiding never resizes the layer. */
	height: 100vh;
	height: 100lvh;
	z-index: 9990;
	pointer-events: none;
	overflow: hidden;
	contain: strict;
	-webkit-user-select: none;
	user-select: none;
	transform: translateZ(0);
}
#jpz-xm * { pointer-events: none !important; }

#jpz-xm canvas {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	display: block;
}

/* Holly in the bottom-left */
.jpz-xm-corner {
	position: absolute;
	left: 0;
	bottom: calc(var(--jpz-xm-floor, 0px));
	width: clamp(58px, 6.5vw, 92px);
	height: auto;
	opacity: .92;
}
.jpz-xm-corner svg { display: block; width: 100%; height: auto; overflow: visible; }

/* Tree and presents in the bottom-right corner */
.jpz-xm-tree {
	position: absolute;
	right: 8px;
	bottom: calc(var(--jpz-xm-floor, 0px));
	width: 156px;
	opacity: .95;
}
.jpz-xm-tree svg { display: block; width: 100%; height: auto; overflow: visible; }

/* Snow resting on top of the main buttons (span added by the script). */
/* The button's own overflow is left alone (so shine effects stay inside it); the cap
   sits on the very top edge. :where() keeps this weaker than any of the site's own rules. */
:where(.jpz-xm-capped) { position: relative; }
.jpz-xm-cap {
	position: absolute !important;
	top: -1px;
	left: 14%;
	right: 14%;
	height: 6px;
	margin: 0 !important;
	padding: 0 !important;
	background: no-repeat center / 100% 100%;
	filter: none;
	pointer-events: none;
	z-index: 20 !important;
	animation: none !important;
	transition: none !important;
	opacity: 1 !important;
	display: block !important;
	transform: none !important;
}

@media (max-width: 767px) {
	.jpz-xm-cap { top: -1px; height: 5px; }
	.jpz-xm-corner { width: 46px; opacity: .85; }
	.jpz-xm-tree { width: 104px; right: 4px; opacity: .9; }
}

/* ---------- Gingerbread man in the bottom-left corner ---------- */
/* Completely hidden (and untouchable) unless he is peeking. */
.jpz-xm-ginger {
	position: fixed; left: 0; bottom: calc(var(--jpz-xm-floor, 0px) + 4px); z-index: 9991;
	width: 56px; height: 74px; pointer-events: none; visibility: hidden;
}
.jpz-xm-ginger.is-shown { visibility: visible; }
.jpz-xm-ginger__man {
	width: 100%; transform: translateX(-180%) rotate(26deg); transform-origin: 0 100%;
	transition: transform .7s cubic-bezier(.3, .7, .3, 1); will-change: transform;
	-webkit-tap-highlight-color: transparent;
}
.jpz-xm-ginger__man svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .25)); }
.jpz-xm-ginger.is-in .jpz-xm-ginger__man { transform: translateX(-26%) rotate(12deg); pointer-events: auto; cursor: pointer; }
.jpz-xm-ginger.is-in.is-look .jpz-xm-ginger__man { transform: translateX(-26%) rotate(4deg); transition-duration: .45s; }
.jpz-xm-ginger__say {
	position: absolute; left: 36px; bottom: 58px; padding: 5px 10px; border-radius: 12px;
	background: #fff; color: #F843AA; font: 800 12px/1.25 Helvetica, Arial, sans-serif; white-space: nowrap;
	box-shadow: 0 3px 10px rgba(0, 0, 0, .2); opacity: 0; transform: scale(.4); transform-origin: 0 100%;
	transition: opacity .25s ease, transform .3s cubic-bezier(.3, 1.6, .5, 1); pointer-events: none;
}
.jpz-xm-ginger__say::after {
	content: ""; position: absolute; left: 6px; bottom: -6px; border: 6px solid transparent;
	border-top-color: #fff; border-left-color: #fff; border-bottom: 0;
}
.jpz-xm-ginger.is-talk .jpz-xm-ginger__say { opacity: 1; transform: scale(1); }
.jpz-xm-ginger.is-long .jpz-xm-ginger__say { white-space: normal; width: 215px; font-size: 12.5px; }
@media (max-width: 767px) {
	.jpz-xm-ginger { width: 44px; height: 58px; }
	.jpz-xm-ginger__say { left: 28px; bottom: 46px; font-size: 11.5px; }
	.jpz-xm-ginger.is-long .jpz-xm-ginger__say { width: 200px; font-size: 12px; }
}

/* ---------- Home page: snow resting along the top of the stats strip ---------- */
.jzh-trust__grid { position: relative; }
.jzh-trust__grid::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: -14px;
	height: 22px;
	background: repeat-x left top / 600px 22px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 22' preserveAspectRatio='none'%3E%3Crect x='-1' y='10.5' width='602' height='3.5' fill='%23fff'/%3E%3Cpath d='M0 11 C3.7 1.9 27.4 3.0 31.2 10.1 C33.7 7.0 49.9 6.7 52.4 9.2 C54.5 7.0 67.8 7.0 69.9 10.5 C73.6 7.2 97.3 6.3 101.1 11.1 C102.9 3.5 114.6 4.0 116.4 9.8 C119.0 8.4 135.3 8.6 137.8 10.7 C140.8 6.5 159.5 6.3 162.4 10.8 C165.1 8.3 182.4 9.4 185.1 10.0 C188.6 6.6 210.4 7.9 213.8 9.5 C215.7 3.0 227.9 3.5 229.8 9.2 C235.0 6.1 268.2 6.1 273.4 9.0 C279.3 8.7 316.6 9.7 322.5 9.1 C325.0 7.6 340.7 8.5 343.2 11.5 C346.8 8.0 369.6 9.2 373.2 9.0 C379.3 7.5 418.1 7.5 424.2 9.5 C429.8 7.4 465.1 7.0 470.7 9.5 C475.9 8.2 508.8 7.7 514.0 9.2 C518.6 4.7 547.6 5.1 552.2 9.3 C557.7 8.7 592.4 8.2 597.8 9.8 C602.3 7.2 595.5 7.9 600.0 11.0 V14 L556.6 14 C553.5 14.5 554.6 16.4 552.7 16.4 C550.7 16.4 551.9 14.5 548.7 14 L530.0 14 C527.8 14.5 528.6 18.6 527.2 18.6 C525.8 18.6 526.6 14.5 524.4 14 L491.3 14 C487.5 14.5 488.9 18.0 486.6 18.0 C484.2 18.0 485.6 14.5 481.9 14 L439.1 14 C434.9 14.5 436.5 18.5 433.9 18.5 C431.2 18.5 432.8 14.5 428.6 14 L379.2 14 C374.9 14.5 376.5 20.9 373.9 20.9 C371.2 20.9 372.8 14.5 368.6 14 L346.6 14 C343.4 14.5 344.6 19.3 342.7 19.3 C340.7 19.3 341.9 14.5 338.7 14 L278.4 14 C276.2 14.5 277.1 17.1 275.7 17.1 C274.3 17.1 275.2 14.5 273.0 14 L191.7 14 C187.9 14.5 189.3 16.3 186.9 16.3 C184.5 16.3 186.0 14.5 182.2 14 L138.1 14 C135.5 14.5 136.5 16.2 134.9 16.2 C133.3 16.2 134.2 14.5 131.6 14 L96.4 14 C93.1 14.5 94.3 20.9 92.3 20.9 C90.2 20.9 91.5 14.5 88.2 14 L66.5 14 C64.1 14.5 65.0 18.3 63.6 18.3 C62.1 18.3 63.0 14.5 60.6 14 L22.1 14 C18.3 14.5 19.8 18.6 17.4 18.6 C15.1 18.6 16.5 14.5 12.7 14 L0 14Z' fill='%23fff'/%3E%3Cpath d='M0 13.6H600' stroke='%23dbe6f4' stroke-width='.8'/%3E%3C/svg%3E");
	filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .25));
	pointer-events: none;
	z-index: 2;
}
@media (max-width: 767px) {
	.jzh-trust__grid::before { top: -11px; height: 18px; background-size: 490px 18px; }
}

/* ---------- Christmas mobile menu ---------- */
/* The party balloons, presents and pinatas make way for Christmas things. */
.jzc-menu.jpz-xm-menu-on .jzc-menu-bg { display: none !important; }
.jzc-menu.jpz-xm-menu-on {
	background:
		radial-gradient(60% 40% at 0% 20%, rgba(225, 29, 72, .14) 0%, rgba(225, 29, 72, 0) 70%),
		radial-gradient(60% 40% at 100% 70%, rgba(31, 138, 76, .16) 0%, rgba(31, 138, 76, 0) 70%),
		linear-gradient(180deg, #0d1424 0%, #1b2236 60%, #232a3d 100%) !important;
}
.jpz-xm-menu { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; contain: strict; }
.jpz-xm-menu * { pointer-events: none; }
.jzc-menu.jpz-xm-menu-on .jzc-menu-in { z-index: 1; }

.jpz-xm-menu-lights { position: absolute; top: 0; left: -4px; right: -4px; }
.jpz-xm-menu-lights svg { display: block; width: 100%; height: auto; overflow: visible; }
.jpz-xm-menu .jpz-xm-bulb { animation: jpz-xm-glow 4s ease-in-out infinite; }

/* baubles hanging on the sides, away from the menu text */
.jpz-xm-bauble {
	position: absolute; top: 22px; width: 22px; margin-left: -11px;
	transform-origin: 50% 0; animation: jpz-xm-sway 7s ease-in-out infinite; opacity: .8;
}
.jpz-xm-bauble__str { display: block; width: 1px; height: var(--len, 40px); margin: 0 auto; background: rgba(255, 255, 255, .35); }
.jpz-xm-bauble svg { display: block; width: 100%; height: auto; margin-top: -2px; }

.jpz-xm-mflake { position: absolute; top: -12px; opacity: .45; animation: jpz-xm-mfall 20s linear infinite; will-change: transform; }
.jpz-xm-mflake svg { display: block; width: 100%; height: 100%; }

.jpz-xm-menu-ground {
	position: absolute; left: 0; right: 0; bottom: 0; height: 26px; opacity: .14;
	background: no-repeat bottom / 100% 100% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 26' preserveAspectRatio='none'%3E%3Cpath d='M0 12Q50 2 100 10T200 9T300 11T400 8V26H0Z' fill='%23fff'/%3E%3C/svg%3E");
}
.jpz-xm-menu-holly { position: absolute; left: 0; bottom: 0; width: 70px; opacity: .55; }
.jpz-xm-menu-tree { position: absolute; right: 4px; bottom: 0; width: 120px; opacity: .45; }
.jpz-xm-menu-holly svg, .jpz-xm-menu-tree svg { display: block; width: 100%; height: auto; }

/* leave room for the lights above the logo */
.jzc-menu.jpz-xm-menu-on .jzc-menu-in { padding-top: max(46px, env(safe-area-inset-top)); }
.jzc-menu.jpz-xm-menu-on .jzc-menu-x { top: max(30px, env(safe-area-inset-top)); }
.jzc-menu.jpz-xm-menu-on .jzc-menu-btn2 { position: relative; }

@keyframes jpz-xm-glow { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
@keyframes jpz-xm-sway { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }
@keyframes jpz-xm-mfall {
	from { transform: translate3d(0, 0, 0); }
	to   { transform: translate3d(14px, 105vh, 0); }
}

@media (prefers-reduced-motion: reduce) {
	.jpz-xm-ginger { display: none; }
	#jpz-xm *, .jpz-xm-menu * { animation: none !important; }
	.jpz-xm-mflake { display: none; }
}
@media print {
	#jpz-xm { display: none !important; }
}
