.christmas-scene { position: relative; isolation: isolate; overflow: hidden; }
.christmas-background { position: absolute; z-index: -1; width: var(--christmas-size); height: var(--christmas-size); opacity: .9; pointer-events: none; }
.christmas-size-tiny { --christmas-size: 58px; }
.christmas-size-small { --christmas-size: 90px; }
.christmas-size-medium { --christmas-size: 140px; }
.christmas-size-large { --christmas-size: 200px; }
.christmas-drawing { display: block; width: 100%; height: 100%; background-image: url('christmas-crayon.png'); background-size: 200% 200%; background-repeat: no-repeat; }
.christmas-hat { background-position: 0 0; }
.christmas-gift { background-position: 100% 0; }
.christmas-candy { background-position: 0 100%; }
.christmas-gingerbread { background-position: 100% 100%; }
.christmas-float { animation: christmas-float 14s ease-in-out infinite; animation-delay: var(--christmas-delay); animation-play-state: paused; }
.christmas-scene.is-christmas-visible .christmas-float { animation-play-state: running; }
html.christmas-paused .christmas-float { animation-play-state: paused; }
.christmas-top-right { top: -55px; right: -35px; }
.christmas-bottom-left { bottom: -35px; left: -45px; }
.christmas-bottom-right { bottom: -35px; right: -45px; }
.christmas-top-left { top: -25px; left: -15px; }
.christmas-top-center { top: -10px; left: 42%; }
.christmas-bottom-center { bottom: -20px; left: 64%; }
.christmas-middle-right { top: 47%; right: -35px; }
.hero .christmas-top-right { --christmas-size: 155px; top: 35px; right: -20px; }
.hero .christmas-bottom-left { --christmas-size: 180px; bottom: 65px; left: calc(50% - 140px); }
.hero .christmas-top-left { top: 5px; left: 12px; }
.hero .christmas-top-center { top: 20px; left: 43%; }
.hero .christmas-bottom-center { bottom: 90px; left: 24%; }
[data-theme="dark"] .christmas-background { opacity: .95; }
@keyframes christmas-float { 0%, 100% { transform: translateY(0) rotate(var(--christmas-tilt)); } 50% { transform: translateY(-7px) rotate(calc(var(--christmas-tilt) + 3deg)); } }
@media (max-width: 640px) { .christmas-size-tiny { --christmas-size: 42px; } .christmas-size-small { --christmas-size: 66px; } .christmas-size-medium { --christmas-size: 100px; } .christmas-size-large { --christmas-size: 145px; } .christmas-top-right { top: -40px; right: -30px; } .christmas-bottom-left { bottom: -35px; left: -40px; } .christmas-bottom-right { bottom: -35px; right: -40px; } .christmas-top-left { top: -20px; left: -20px; } .christmas-top-center { top: -10px; left: 48%; } .christmas-bottom-center { bottom: -15px; left: 46%; } .hero .christmas-top-right { --christmas-size: 115px; top: auto; bottom: 135px; right: -15px; } .hero .christmas-bottom-left { --christmas-size: 100px; bottom: 125px; left: -20px; } .hero .christmas-top-left { top: -6px; left: -15px; } .hero .christmas-top-center { top: 0; left: auto; right: 8px; } .hero .christmas-middle-right { --christmas-size: 75px; top: 54%; right: -22px; } .hero .christmas-bottom-center { display: none; } }
@media (prefers-reduced-motion: reduce) { .christmas-float { animation: none; } }
