/* Dering Seasonal */

/* Snow: one canvas over the page, clicks go through it */
.dsn-snow { position: fixed; top: 0; left: 0; z-index: 9970; pointer-events: none; }

/* Garland along the top edge */
.dsn-garland { position: fixed; top: 0; left: 0; right: 0; z-index: 9985; height: 40px; pointer-events: none; overflow: hidden; }
.dsn-garland__svg { display: block; }
.dsn-bulb ellipse:first-of-type { filter: drop-shadow(0 0 3px currentColor); }
.dsn-bulb--0 { animation: dsn-twinkle 2.4s ease-in-out infinite; }
.dsn-bulb--1 { animation: dsn-twinkle 2.4s ease-in-out .8s infinite; }
.dsn-bulb--2 { animation: dsn-twinkle 2.4s ease-in-out 1.6s infinite; }
.dsn-fun .dsn-bulb--0 { animation-duration: 1.2s; }
.dsn-fun .dsn-bulb--1 { animation-duration: 1.2s; animation-delay: .4s; }
.dsn-fun .dsn-bulb--2 { animation-duration: 1.2s; animation-delay: .8s; }
@keyframes dsn-twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }

/* Santa hat on the logo */
.dsn-hat { position: absolute; z-index: 5; top: -24%; left: -12%; width: 58%; pointer-events: none; transform: rotate(-14deg); transform-origin: 70% 90%; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .25)); }
.dsn-hat svg { display: block; width: 100%; height: auto; overflow: visible; }

/* Baubles hanging from the top of a block */
.dsn-baubles { position: absolute; top: 0; left: 0; right: 0; height: 0; z-index: 20; pointer-events: none; }
.dsn-bauble {
	position: absolute; top: 0; width: var(--size, 30px); margin-left: calc(var(--size, 30px) / -2); padding: 0;
	display: flex; flex-direction: column; align-items: center;
	background: transparent; border: 0; cursor: pointer; pointer-events: auto;
	transform-origin: 50% 0; animation: dsn-swing var(--dur, 3.6s) ease-in-out infinite;
	-webkit-tap-highlight-color: transparent;
}
.dsn-bauble__string { position: relative; display: block; width: 1.5px; height: var(--len, 60px); background: rgba(90, 80, 50, .75); }
/* Small gold hook so the string does not start out of thin air */
.dsn-bauble__string::before { content: ""; position: absolute; left: 50%; top: -3px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #f1dfa6, #b39a58 70%); box-shadow: 0 1px 2px rgba(0,0,0,.35); }
.dsn-bauble__ball { display: block; width: var(--size, 30px); height: auto; margin-top: -1px; filter: drop-shadow(0 4px 5px rgba(0, 0, 0, .3)); }
.dsn-bauble.is-hit { animation: dsn-hit .9s ease-out; }
@keyframes dsn-swing { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(5deg); } }
@keyframes dsn-hit { 0% { transform: rotate(0); } 20% { transform: rotate(18deg); } 45% { transform: rotate(-14deg); } 70% { transform: rotate(8deg); } 100% { transform: rotate(-5deg); } }

/* Sparks (cursor trail and bauble bursts) */
.dsn-spark { position: fixed; z-index: 9995; pointer-events: none; line-height: 1; text-shadow: 0 0 6px currentColor; }

/* Countdown strip */
.dsn-bar { position: relative; z-index: 9; display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 16px 48px 8px; text-align: center; font: 600 16px/1.3 "Source Sans Pro", Arial, sans-serif; letter-spacing: .4px; }
.dsn-strict .dsn-bar { background: #18263C; color: #E5CF93; }
.dsn-fun .dsn-bar { background: linear-gradient(90deg, #d62828, #2f9e44 50%, #d62828); color: #fff; font-size: 18px; }
.dsn-bar__close { position: absolute; right: 12px; top: 50%; width: 30px; height: 30px; margin-top: -10px; padding: 0; color: inherit; background: transparent; border: 0; font-size: 24px; line-height: 1; cursor: pointer; opacity: .75; }
.dsn-bar__close:hover { opacity: 1; }

/* Greeting window */
.dsn-greet { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(24, 38, 60, .6); opacity: 0; transition: opacity .3s ease; }
.dsn-greet.is-open { opacity: 1; }
.dsn-greet__card { position: relative; width: 100%; max-width: 460px; padding: 44px 34px 36px; text-align: center; border-radius: 14px; background: #fff; color: #18263C; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .55); transform: translateY(24px) scale(.96); transition: transform .35s cubic-bezier(.2, .9, .3, 1.2); }
.dsn-greet.is-open .dsn-greet__card { transform: none; }
.dsn-greet__title { margin: 0 0 14px; font: 600 36px/1.15 "Source Serif Pro", Georgia, serif; color: inherit; }
.dsn-greet__text { margin: 0 0 26px; font: 400 19px/1.5 "Source Sans Pro", Arial, sans-serif; color: #151A23; }
.dsn-greet__btn { padding: 14px 34px; font: 400 18px/1 "Source Sans Pro", Arial, sans-serif; text-transform: uppercase; color: #fff; background: #18263C; border: 0; border-radius: 6px; cursor: pointer; transition: background .2s; }
.dsn-greet__btn:hover { background: #C5AB6E; }
.dsn-strict .dsn-greet__card { border-top: 5px solid #C5AB6E; }
.dsn-strict .dsn-greet__title { color: #18263C; }
.dsn-fun .dsn-greet__card { background: linear-gradient(180deg, #fff 0%, #fff6e5 100%); border: 4px solid #e5252a; }
.dsn-fun .dsn-greet__title { color: #d62828; font-size: 40px; }
.dsn-fun .dsn-greet__btn { background: #2f9e44; border-radius: 30px; }
.dsn-fun .dsn-greet__btn:hover { background: #d62828; }
.dsn-confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* Flying sleigh */
.dsn-sleigh { position: fixed; left: 0; z-index: 9986; width: 170px; pointer-events: none; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .25)); }
.dsn-sleigh svg { display: block; width: 100%; height: auto; overflow: visible; }

@media (max-width: 768px) {
	.dsn-bar { font-size: 14px; padding: 14px 40px 8px; }
	.dsn-fun .dsn-bar { font-size: 15px; }
	.dsn-greet__title { font-size: 30px; }
	.dsn-fun .dsn-greet__title { font-size: 32px; }
	.dsn-greet__card { padding: 36px 24px 28px; }
	.dsn-hat { top: -22%; left: -10%; }
}

@media (prefers-reduced-motion: reduce) {
	.dsn-bulb, .dsn-bauble { animation: none !important; }
	.dsn-greet, .dsn-greet__card { transition: none; }
}
