/*
 * Christmas bell hunt (v2.158.0) - inc/sm-hunt.php, assets/js/hunt.js.
 * Loaded only while at least one bell coupon is valid.
 */

/* ---- The bell ---------------------------------------------------------- */
.sm-hunt-host{position:relative;}
.sm-hunt-bell{
	position:absolute; z-index:6; display:grid; place-items:center;
	width:38px; height:38px; padding:0; margin:0; border:0; border-radius:50%;
	background:radial-gradient(circle at 50% 45%,rgba(255,236,180,.55),rgba(255,236,180,0) 68%);
	color:#c99a2e; cursor:pointer; -webkit-tap-highlight-color:transparent;
	opacity:0; transform:scale(.4); transition:opacity .5s ease,transform .5s cubic-bezier(.3,1.5,.5,1);
}
.sm-hunt-bell.is-in{opacity:1; transform:scale(1);}
.sm-hunt-bell i{
	font-size:24px; line-height:1; transform-origin:50% 12%;
	filter:drop-shadow(0 0 4px rgba(255,214,120,.9)) drop-shadow(0 2px 2px rgba(0,0,0,.25));
	animation:sm-hunt-swing 4.2s ease-in-out infinite;
}
.sm-hunt-bell__bow{position:absolute; top:3px; left:50%; width:12px; height:7px; margin-left:-6px; pointer-events:none;}
.sm-hunt-bell__bow::before,.sm-hunt-bell__bow::after{content:''; position:absolute; top:0; width:6px; height:6px; border-radius:50% 50% 50% 0; background:#d4233a;}
.sm-hunt-bell__bow::before{left:0; transform:rotate(-30deg);}
.sm-hunt-bell__bow::after{right:0; transform:scaleX(-1) rotate(-30deg);}
.sm-hunt-bell:hover i,.sm-hunt-bell:focus-visible i{animation-duration:1.1s;}
.sm-hunt-bell:focus-visible{outline:2px solid #c99a2e; outline-offset:2px;}
.sm-hunt-bell.is-ringing i{animation:sm-hunt-ring .35s ease-in-out infinite;}
.sm-hunt-bell.is-gone{opacity:0; transform:translateY(-12px) scale(1.7); transition-duration:.4s;}
@keyframes sm-hunt-swing{
	0%,68%,100%{transform:rotate(0);}
	72%{transform:rotate(16deg);} 77%{transform:rotate(-14deg);} 82%{transform:rotate(9deg);}
	87%{transform:rotate(-6deg);} 92%{transform:rotate(3deg);}
}
@keyframes sm-hunt-ring{0%,100%{transform:rotate(-18deg) scale(1.15);}50%{transform:rotate(18deg) scale(1.15);}}

/* positions inside the host element */
.sm-hunt-bell--tr{top:8px; right:8px;}
.sm-hunt-bell--tl{top:8px; left:8px;}
.sm-hunt-bell--br{bottom:8px; right:8px;}
.sm-hunt-bell--bl{bottom:8px; left:8px;}
.sm-hunt-bell--tc{top:8px; left:calc(50% - 19px);}
.sm-hunt-bell--after{top:calc(50% - 19px); left:100%; margin-left:6px;}

/* ---- Popup ------------------------------------------------------------- */
.sm-hunt{
	width:min(440px,92vw); max-width:none; padding:0; border:0; border-radius:22px; overflow:hidden;
	background:linear-gradient(170deg,#123a2e 0%,#06150f 100%); color:#f7f1e6;
	box-shadow:0 40px 100px -20px rgba(0,0,0,.7),inset 0 0 0 1px rgba(217,183,112,.28);
}
.sm-hunt::backdrop{background:rgba(4,14,10,.62); -webkit-backdrop-filter:blur(3px); backdrop-filter:blur(3px);}
.sm-hunt[open]{animation:sm-hunt-in .45s cubic-bezier(.3,1.35,.5,1);}
@keyframes sm-hunt-in{from{transform:translateY(26px) scale(.94); opacity:0;}to{transform:none; opacity:1;}}
html.sm-hunt-lock{overflow:hidden;}
.sm-hunt__in{position:relative; padding:34px 28px 26px; text-align:center;}
.sm-hunt__snow{
	position:absolute; inset:0; pointer-events:none; opacity:.45;
	background-image:
		radial-gradient(1.5px 1.5px at 20px 30px,#fff 50%,transparent 60%),
		radial-gradient(2px 2px at 110px 80px,#fff 50%,transparent 60%),
		radial-gradient(1.5px 1.5px at 170px 20px,#fff 50%,transparent 60%),
		radial-gradient(1px 1px at 60px 150px,#fff 50%,transparent 60%);
	background-size:200px 200px; animation:sm-hunt-snow 14s linear infinite;
}
@keyframes sm-hunt-snow{from{background-position:0 0;}to{background-position:0 200px;}}
.sm-hunt__in > *:not(.sm-hunt__snow):not(.sm-hunt__x){position:relative;}
.sm-hunt__x{position:absolute; top:12px; right:12px; z-index:2; display:grid; place-items:center; width:36px; height:36px; border:0; border-radius:50%; background:rgba(255,255,255,.1); color:#fff; font-size:18px; cursor:pointer;}
.sm-hunt__x:hover{background:rgba(255,255,255,.2);}
.sm-hunt__bellwrap{
	display:grid; place-items:center; width:78px; height:78px; margin:0 auto 14px; border-radius:50%;
	background:radial-gradient(circle,rgba(255,220,140,.28),rgba(255,220,140,0) 70%);
	box-shadow:0 0 0 1px rgba(217,183,112,.35),0 0 40px -6px rgba(255,214,120,.55);
}
.sm-hunt__bigbell{font-size:40px; color:#e3c37b; transform-origin:50% 12%; animation:sm-hunt-swing 3s ease-in-out infinite;}
.sm-hunt[open] .sm-hunt__bigbell{animation:sm-hunt-ring .3s ease-in-out 4,sm-hunt-swing 3s ease-in-out 1.2s infinite;}
.sm-hunt__kicker{display:inline-block; font-size:11px; font-weight:700; letter-spacing:.18em; text-transform:uppercase; color:#d9b770;}
.sm-hunt__t{margin:6px 0 0; font-size:24px; line-height:1.2; font-weight:700; color:#fff; text-wrap:balance;}
.sm-hunt__amount{margin:14px 0 0; font-size:52px; line-height:1; font-weight:800; letter-spacing:-.02em; color:#f2c14e; text-shadow:0 4px 24px rgba(242,193,78,.35);}
.sm-hunt__msg{margin:10px auto 0; max-width:320px; font-size:15px; line-height:1.5; color:rgba(247,241,230,.78);}
.sm-hunt__ticket{
	display:flex; align-items:center; gap:10px; margin:18px 0 0; padding:12px 12px 12px 16px;
	border-radius:14px; background:#fff8ec; color:#1a1a1a; border:2px dashed #d2ae66; text-align:left;
}
.sm-hunt__lbl{display:none;}
.sm-hunt__code{flex:1; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font:800 21px/1.2 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace; letter-spacing:.08em; color:#1d1608; background:none; padding:0;}
.sm-hunt__copy{flex:none; display:inline-flex; align-items:center; gap:6px; padding:9px 13px; border:0; border-radius:10px; background:#123a2e; color:#fff; font:inherit; font-size:13px; font-weight:700; cursor:pointer;}
.sm-hunt__copy.is-done{background:#1e9e5a;}
.sm-hunt__until{margin:10px 0 0; font-size:13px; color:rgba(247,241,230,.62);}
.sm-hunt__status{margin:14px 0 0; padding:10px 12px; border-radius:10px; background:rgba(255,255,255,.06); font-size:14px; line-height:1.45; color:rgba(247,241,230,.88);}
.sm-hunt__status.is-ok{background:rgba(30,158,90,.18); color:#c9f2d9;}
.sm-hunt__status:empty{display:none;}
.sm-hunt__acts{display:flex; flex-direction:column; align-items:center; gap:10px; margin-top:18px;}
.sm-hunt__btn{width:100%; min-height:48px; border:0; border-radius:12px; background:#d9b770; color:#1d1608; font:inherit; font-size:16px; font-weight:700; cursor:pointer;}
.sm-hunt__btn:hover{background:#e6c886;}
.sm-hunt__link{color:#e3c37b; font-weight:700; text-decoration:underline; text-underline-offset:3px;}
.sm-hunt__empty{margin:14px 0 4px; font-size:16px; line-height:1.5; color:rgba(247,241,230,.88);}
.sm-hunt [hidden]{display:none !important;}

@media (max-width:767px){
	.sm-hunt-bell{width:34px; height:34px;}
	.sm-hunt-bell i{font-size:21px;}
	.sm-hunt-bell--tc{left:calc(50% - 17px);}
	.sm-hunt-bell--after{top:calc(50% - 17px);}
	.sm-hunt__in{padding:30px 20px 22px;}
	.sm-hunt__amount{font-size:44px;}
	.sm-hunt__code{font-size:18px;}
}
@media (prefers-reduced-motion:reduce){
	.sm-hunt-bell i,.sm-hunt__bigbell,.sm-hunt__snow,.sm-hunt[open]{animation:none !important;}
	.sm-hunt-bell{transition:opacity .3s ease;}
}
