:root {
  --winter-pine: #789b89;
  --winter-ice: #c8dce2;
  --winter-berry: #bd7777;
}

.seasonal-snow {
  position: fixed;
  z-index: 40;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.38;
  background:
    radial-gradient(ellipse at 0 0, rgba(120, 155, 137, .12), transparent 28%),
    radial-gradient(ellipse at 100% 14%, rgba(189, 119, 119, .08), transparent 24%),
    radial-gradient(ellipse at 50% 100%, rgba(200, 220, 226, .07), transparent 34%);
}

.seasonal-snow::before,
.seasonal-snow::after {
  position: absolute;
  inset: -100% 0 0;
  height: 200%;
  content: "";
  background-repeat: repeat;
  will-change: transform;
}

.seasonal-snow::before {
  background-image:
    radial-gradient(1.5px 1.5px at 24px 30px, rgba(226, 238, 241, .82) 98%, transparent),
    radial-gradient(1px 1px at 104px 96px, rgba(226, 238, 241, .68) 98%, transparent),
    radial-gradient(2px 2px at 190px 178px, rgba(226, 238, 241, .76) 98%, transparent),
    radial-gradient(1px 1px at 58px 224px, rgba(226, 238, 241, .62) 98%, transparent),
    radial-gradient(1.5px 1.5px at 246px 62px, rgba(226, 238, 241, .7) 98%, transparent);
  background-size: 280px 280px;
  animation: new-year-snow 30s linear infinite;
}

.seasonal-snow::after {
  opacity: .68;
  background-image:
    radial-gradient(2px 2px at 48px 80px, rgba(215, 230, 233, .72) 98%, transparent),
    radial-gradient(1px 1px at 168px 218px, rgba(215, 230, 233, .62) 98%, transparent),
    radial-gradient(1.5px 1.5px at 286px 42px, rgba(215, 230, 233, .7) 98%, transparent),
    radial-gradient(2px 2px at 112px 292px, rgba(215, 230, 233, .76) 98%, transparent);
  background-size: 360px 360px;
  animation: new-year-snow-slow 44s linear infinite;
}

@keyframes new-year-snow {
  to { transform: translate3d(0, 280px, 0); }
}

@keyframes new-year-snow-slow {
  to { transform: translate3d(0, 360px, 0); }
}

body > header.site-header .nav {
  position: relative;
}

body > header.site-header .nav::before {
  position: absolute;
  z-index: 2;
  top: -12px;
  right: 4%;
  left: 4%;
  height: 34px;
  content: "";
  pointer-events: none;
  background: url("../img/new-year-garland.svg?v=3") center top / 360px 30px repeat-x;
  opacity: .72;
}

.adm-top::before,
.dash-page[data-auth-user="1"] .dash-side::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 30px;
  content: "";
  pointer-events: none;
  background: url("../img/new-year-garland.svg?v=3") center top / 360px 30px repeat-x;
  opacity: .66;
}

.site-hero {
  position: relative;
}

.site-hero-proxy-node {
  position: absolute;
  z-index: 2;
  right: max(12px, calc((100vw - 1120px) / 2 - 80px));
  bottom: 18px;
  width: 66px;
  height: auto;
  pointer-events: none;
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, .24));
}

.ww-footer.ww-footer--seasonal {
  position: relative;
  padding-top: 30px !important;
}

.seasonal-footer-garland {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 30px;
  pointer-events: none;
  background: url("../img/new-year-garland.svg?v=3") center top / 360px 30px repeat-x;
  opacity: .58;
}

.ww-footer--seasonal > .wrap {
  position: relative;
  z-index: 1;
}

.auth-page.login-page::before {
  position: fixed;
  z-index: 3;
  top: 0;
  right: 0;
  left: 0;
  height: 36px;
  content: "";
  pointer-events: none;
  background: url("../img/new-year-garland.svg?v=3") center top / 360px 30px repeat-x;
  opacity: .72;
}

.auth-aside .auth-seasonal-proxy-node {
  position: absolute;
  right: 18px;
  bottom: 12px;
  z-index: 1;
  width: 72px;
  height: auto;
  pointer-events: none;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .28));
}

.auth-aside .auth-aside-copy {
  padding: 0 54px 64px 0;
}

.dash-page[data-auth-user="1"] .dash-head,
.adm-page .adm-head {
  position: relative;
}

.dash-page[data-auth-user="1"] .dash-head::before,
.adm-page .adm-head::before {
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 140px;
  height: 1px;
  content: "";
  pointer-events: none;
  background: linear-gradient(90deg, rgba(120, 155, 137, .8), rgba(189, 119, 119, .55), transparent);
}

.dash-page[data-auth-user="1"] .dash-head::after,
.adm-page .adm-head::after {
  position: absolute;
  top: -18px;
  right: 2px;
  content: "✦";
  color: rgba(212, 184, 111, .55);
  font-size: 24px;
  line-height: 1;
  pointer-events: none;
}

@media (max-width: 640px) {
  .seasonal-snow { opacity: .3; }

  body > header.site-header .nav::before {
    top: -10px;
    right: 18px;
    left: 18px;
    height: 30px;
    background-size: 280px 24px;
  }
}

@media (max-width: 900px) {
  .site-hero-proxy-node {
    right: 16px;
    bottom: 8px;
    width: 50px;
    filter: drop-shadow(0 5px 10px rgba(0, 0, 0, .28));
  }

  .auth-page.login-page::after {
    position: fixed;
    right: 12px;
    bottom: 8px;
    z-index: 1;
    width: 42px;
    height: 56px;
    content: "";
    pointer-events: none;
    background: url("../img/new-year-proxy-node.svg?v=1") center / contain no-repeat;
    opacity: .42;
  }

  .auth-aside .auth-seasonal-proxy-node {
    display: none;
  }

  .auth-aside .auth-aside-copy {
    padding: 0;
  }

  .ww-footer.ww-footer--seasonal {
    padding-top: 30px !important;
  }
}

.pay-wait::before,
.tg-auth-bridge::before {
  position: fixed;
  z-index: 3;
  top: 0;
  right: 0;
  left: 0;
  height: 36px;
  content: "";
  pointer-events: none;
  background: url("../img/new-year-garland.svg?v=3") center top / 360px 30px repeat-x;
  opacity: .72;
}

.tg-auth-bridge {
  background:
    radial-gradient(ellipse at 50% 12%, rgba(120, 155, 137, .1), transparent 40%),
    #0a0a0a !important;
}

@media (min-width: 901px) and (max-width: 1100px) {
  .auth-aside .auth-seasonal-proxy-node {
    width: 52px;
    right: 12px;
  }

  .auth-aside .auth-aside-copy {
    padding: 0 34px 46px 0;
  }
}

@media (max-width: 480px) {
  .site-hero-proxy-node {
    width: 44px;
    right: 12px;
    bottom: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .seasonal-snow { display: none; }
}
