/* Festive decorations sit outside the reading area. The canvas is never interactive. */
#winter-sky {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 25;
  pointer-events: none;
  display: block;
}
.winter-switch {
  position: fixed;
  z-index: 26;
  right: 14px;
  bottom: 14px;
  background: #102336f2;
  color: #f5e5bb;
  border: 1px solid #d4af37aa;
  border-radius: 22px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  font-size: 12px;
  box-shadow: 0 3px 14px #0003;
  min-height: 40px;
}
.winter-switch[hidden] {
  display: none;
}
.winter-switch > span:first-child {
  font-size: 19px;
  line-height: 1;
}
.winter-switch:hover {
  background: #294863;
}
.holiday-trim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
  display: block;
}
.holiday-trim .tinsel {
  position: absolute;
  top: -22px;
  width: 365px;
  height: auto;
  filter: drop-shadow(0 3px 4px #0003);
  transform-origin: top center;
}
.holiday-trim .tinsel.left {
  left: -112px;
  transform: rotate(-12deg);
}
.holiday-trim .tinsel.right {
  right: -112px;
  transform: rotate(12deg);
}
.holiday-trim .corner-star {
  position: absolute;
  color: #d4af37;
  font-size: 21px;
  text-shadow: 0 0 12px #ffd97b;
  animation: star-glint 5s ease-in-out infinite;
  line-height: 1;
}
.holiday-trim .corner-star.left {
  top: 76px;
  left: 25px;
}
.holiday-trim .corner-star.right {
  top: 98px;
  right: 27px;
  animation-delay: -2.3s;
}
.holiday-trim .ornament {
  position: absolute;
  top: -3px;
  width: 30px;
  height: 95px;
  transform-origin: 50% 0;
  animation: ornament-sway 5.2s ease-in-out infinite;
  filter: drop-shadow(1px 3px 3px #0003);
}
.holiday-trim .ornament.left {
  left: 16px;
}
.holiday-trim .ornament.right {
  right: 17px;
  top: -13px;
  animation-delay: -2s;
}
.holiday-trim .light-string {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 46px;
  overflow: visible;
}
.light-string .bulb {
  animation: light-glow 3.8s ease-in-out infinite;
  animation-delay: var(--delay);
}
.hero-garland {
  display: none;
}
.hero .holiday-trim .tinsel {
  width: 430px;
  top: -21px;
}
.hero .holiday-trim .tinsel.left {
  left: -90px;
}
.hero .holiday-trim .tinsel.right {
  right: -90px;
}
.hero .holiday-trim .light-string {
  top: 14px;
  height: 55px;
}
.hero .hero-content {
  padding-top: 76px;
}
.hero .holiday-trim .corner-star {
  top: 100px;
}
.story .festive-decor,
.calculator .festive-decor,
.booking .festive-decor {
  background: url("winter-trim.svg") no-repeat left -30px bottom 5px/140px auto;
}
.story,
.calculator,
.booking,
.game,
.prices,
.occasions,
.discount-section {
  padding-top: 108px;
}
.discount-section {
  isolation: isolate;
}
.discount-section .wrap,
.game .wrap,
.booking .wrap,
.calculator .wrap,
.prices .wrap,
.story .wrap,
.occasions .wrap {
  position: relative;
  z-index: 2;
}
.streamers {
  transform-origin: 50% 0;
  animation: ribbon-sway 7s ease-in-out infinite;
}
.window-glow {
  animation: window-shimmer 7s ease-in-out infinite;
}
.live-dot {
  animation: live-pulse 2.8s ease-in-out infinite;
}
.hero-actions .primary,
.booking .primary {
  position: relative;
  overflow: hidden;
}
.hero-actions .primary::after,
.booking .primary::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 45%;
  background: linear-gradient(100deg, transparent, #fff8, transparent);
  transform: skewX(-19deg);
  animation: button-shine 8s ease-in-out infinite;
  pointer-events: none;
}
.letter-ornament img {
  animation: cookie-sway 7s ease-in-out infinite;
  transform-origin: 50% 85%;
}
.game-art img {
  animation: cookie-sway 6s ease-in-out infinite;
  transform-origin: 50% 85%;
}
@keyframes star-glint {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(0.85);
  }
  50% {
    opacity: 1;
    transform: scale(1.13);
  }
}
@keyframes ornament-sway {
  0%,
  100% {
    transform: rotate(-6deg);
  }
  50% {
    transform: rotate(6deg);
  }
}
@keyframes light-glow {
  0%,
  100% {
    opacity: 0.65;
  }
  50% {
    opacity: 1;
  }
}
@keyframes ribbon-sway {
  0%,
  100% {
    rotate: -1deg;
  }
  50% {
    rotate: 1deg;
  }
}
@keyframes window-shimmer {
  0%,
  100% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
}
@keyframes live-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 3px #43765d26;
  }
  50% {
    box-shadow: 0 0 0 6px #43765d08;
  }
}
@keyframes button-shine {
  0%,
  67% {
    left: -60%;
  }
  88%,
  100% {
    left: 125%;
  }
}
@keyframes cookie-sway {
  0%,
  100% {
    rotate: -3deg;
  }
  50% {
    rotate: 3deg;
  }
}
.effects-off #winter-sky {
  display: none;
}
.effects-off *,
.effects-off *::before,
.effects-off *::after {
  animation-play-state: paused !important;
}
.effects-off .sleigh {
  display: none;
}
@media (max-width: 760px) {
  .holiday-trim .tinsel,
  .hero .holiday-trim .tinsel {
    width: 205px;
    top: -12px;
  }
  .holiday-trim .tinsel.left,
  .hero .holiday-trim .tinsel.left {
    left: -70px;
  }
  .holiday-trim .tinsel.right,
  .hero .holiday-trim .tinsel.right {
    right: -70px;
  }
  .holiday-trim .light-string {
    height: 34px;
  }
  .hero .holiday-trim .light-string {
    height: 36px;
    top: 8px;
  }
  .hero .hero-content {
    padding-top: 42px;
  }
  .holiday-trim .ornament {
    width: 19px;
    height: 56px;
  }
  .holiday-trim .ornament.left {
    left: 4px;
  }
  .holiday-trim .ornament.right {
    right: 4px;
  }
  .holiday-trim .corner-star {
    display: none;
  }
  .story,
  .calculator,
  .booking,
  .game,
  .prices,
  .occasions,
  .discount-section {
    padding-top: 75px;
  }
  .winter-switch {
    right: 8px;
    bottom: 8px;
    padding: 6px 9px;
    min-height: 36px;
    font-size: 11px;
  }
  .winter-switch > span:first-child {
    font-size: 15px;
  }
  footer {
    padding-bottom: 48px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .holiday-trim *,
  .holiday-trim *::before,
  .holiday-trim *::after {
    animation: none !important;
  }
  #winter-sky {
    display: none;
  }
}
.holiday-trim .tinsel {
  animation: tinsel-shimmer 6s ease-in-out infinite;
}
.holiday-trim .tinsel.right {
  animation-delay: -3s;
}
@keyframes tinsel-shimmer {
  0%,
  100% {
    filter: drop-shadow(0 3px 4px #0003) brightness(0.93);
  }
  50% {
    filter: drop-shadow(0 3px 4px #0003) brightness(1.16);
  }
}
.effects-off .hero-actions .primary::after,
.effects-off .booking .primary::after {
  display: none;
}
.winter-switch:disabled {
  cursor: default;
  opacity: 0.8;
}
