.nut-theme-dark {
  .nut-barrage {
    background-color: $dark6;
    color: $dark1;
    .barrage-item {
      background: linear-gradient(to right, $dark3, $dark10);
    }
  }
}

.nut-barrage {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  box-sizing: border-box;
  background-color: $background-color;
  color: $title-color;
  .barrage-item {
    width: 120px;
    // max-width: 150px;
    display: block;
    position: absolute;
    right: 0;
    padding: 3px 25px;
    border-radius: 50px;
    font-size: 12px;
    text-align: center;
    white-space: pre;
    transform: translateX(100%);
    background: linear-gradient(to right, $gray3, rgba(0, 0, 0, 0));
    box-sizing: border-box;
    &.move {
      will-change: transform;
      animation-name: moving;
      animation-timing-function: linear;
      animation-play-state: running;
    }
  }
  @keyframes moving {
    from {
      transform: translateX(100%);
    }
    to {
      // transform: translateX(-250%);
      // transform: translateX(-180%);
      transform: translateX(var(--move-distance));
    }
  }
  @-webkit-keyframes moving {
    from {
      -webkit-transform: translateX(100%);
    }
    to {
      transform: translateX(var(--move-distance));
    }
  }
}
